rust-analyzer/crates/ra_syntax/src
Aleksey Kladov 8a04372fec Fix panic in split_imports assist
The fix is admittedly quit literally just papering over.

Long-term, I see two more principled approaches:

* we switch to a fully tree-based impl, without parse . to_string
  step; with this approach, there shouldn't be any panics. The results
  might be nonsensical, but so was the original input.

* we preserve the invariant that re-parsing constructed node is an
  identity, and make all the `make_xxx` method return an `Option`.

closes #4044
2020-04-20 16:34:01 +02:00
..
ast Fix panic in split_imports assist 2020-04-20 16:34:01 +02:00
parsing Rename some tokens 2020-04-10 17:07:09 +02:00
validation ra_syntax: reshape SyntaxError for the sake of removing redundancy 2020-02-17 22:24:33 +02:00
algo.rs Fix panic in split_imports assist 2020-04-20 16:34:01 +02:00
ast.rs Align grammar for record patterns and literals 2020-04-12 00:00:15 +02:00
fuzz.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
lib.rs Remove dead code 2020-04-11 19:36:31 +02:00
parsing.rs ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review 2020-02-04 00:00:55 +02:00
ptr.rs Don't expose SyntaxNodePtr impl details 2020-04-16 21:01:04 +02:00
syntax_error.rs ra_syntax: remove message() method and use only Display trait in SyntaxError as per matklad 2020-02-17 23:13:38 +02:00
syntax_node.rs ra_syntax: moved reexport declaration after imports as per matklad 2020-02-17 22:24:38 +02:00
tests.rs Migrate tests .txt -> .rast 2020-04-06 14:04:26 +03:00
validation.rs Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00