rust/crates/ra_assists/src
Lúcás Meier e769a54502 Create an assist for applying De Morgan's law
Fixes #1807

This assist can transform expressions of the form `!x || !y` into
`!(x && y)`. This also works with `&&`.

This assist will only trigger if the cursor is on the central logical
operator.

The main limitation of this current implementation is that both operands
need to be an explicit negation, either of the form `!x`, or `x != y`.
More operands could be accepted, but this would complicate the implementation
quite a bit.
2019-10-03 22:48:35 +02:00
..
assists Create an assist for applying De Morgan's law 2019-10-03 22:48:35 +02:00
assist_ctx.rs Merge branch 'master' into feature/issue/1856 2019-09-30 12:07:26 +03:00
lib.rs WIP: Add demorgan application with naive negation 2019-10-03 22:19:46 +02:00
marks.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00