rust/crates
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
..
ra_arena cleanup 2019-08-06 10:57:16 +02:00
ra_assists Create an assist for applying De Morgan's law 2019-10-03 22:48:35 +02:00
ra_batch Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_cli Update pico-args 2019-10-02 10:58:15 -04:00
ra_db Merge branch 'master' into feature/issue/1856 2019-09-30 12:07:26 +03:00
ra_fmt fix hir for new block syntax 2019-09-02 21:23:19 +03:00
ra_hir Handle divergence in type inference for blocks 2019-10-02 17:31:34 +03:00
ra_ide_api Merge branch 'master' into feature/issue/1856 2019-09-30 12:07:26 +03:00
ra_lsp_server Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_mbe Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_parser Fix parsing of block expressions in "forbid_structs" contexts. 2019-10-03 00:39:52 -07:00
ra_prof Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_project_model Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_syntax Fix parsing of block expressions in "forbid_structs" contexts. 2019-10-03 00:39:52 -07:00
ra_text_edit Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_tools Update pico-args 2019-10-02 10:58:15 -04:00
ra_tt Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
ra_vfs_glob add option to disable notify 2019-09-06 17:21:29 +03:00
test_utils Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00