bors 7ca45dcf04 Auto merge of #15410 - alibektas:15240/invalid-demorgan, r=Veykril
internal : rewrite DeMorgan assist

fixes #15239 , #15240 . This PR is a rewrite of the DeMorgan assist that essentially rids of all the string manipulation and modifies syntax trees to apply demorgan on a binary expr. The main reason for the rewrite is that I wanted to use `Expr::needs_parens_in` method to see if the expr on which the assist is applied would still need the parens it had once the parent expression's operator had equal precedence with that of the expression. I used `.clone_(subtree|for_update)` left and right and probably more than I should have, so I would also be happy to hear how I could have prevented redundant cloning.
2023-08-15 07:29:28 +00:00
..
2023-08-02 11:52:55 +02:00
2023-08-08 15:54:58 +02:00
2023-03-28 16:32:26 +02:00
2023-07-03 20:34:09 +02:00
2023-07-11 17:32:12 -04:00
2023-07-05 16:45:54 +02:00
2023-04-19 09:45:55 -04:00
2023-08-09 17:54:34 +03:00
2023-01-17 16:31:34 +02:00
2023-07-03 20:34:09 +02:00