diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-29 07:40:39 +0100 |
commit | 7a1cae59acf72f821343b2ba10ef69fb92a5b952 (patch) | |
tree | 26e606ccd132a24e9bc89cf174e4adadf60c5992 /crates/ra_ide_api/src/folding_ranges.rs | |
parent | b0d84cb8faefedde7ace4ff152a2a13408e79e5d (diff) | |
parent | 80a17251473bd6213a4c8a51ea7f732394d173c5 (diff) |
Merge #1337
1337: Move syntax errors our of syntax tree r=matklad a=matklad
I am not really sure if it's a good idea, but `SyntaxError` do not really belong to a `SyntaxTree`. So let's just store them on the side?
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/folding_ranges.rs')
-rw-r--r-- | crates/ra_ide_api/src/folding_ranges.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/folding_ranges.rs b/crates/ra_ide_api/src/folding_ranges.rs index 6987fcc9e..b50bbee38 100644 --- a/crates/ra_ide_api/src/folding_ranges.rs +++ b/crates/ra_ide_api/src/folding_ranges.rs | |||
@@ -191,7 +191,7 @@ mod tests { | |||
191 | 191 | ||
192 | fn do_check(text: &str, fold_kinds: &[FoldKind]) { | 192 | fn do_check(text: &str, fold_kinds: &[FoldKind]) { |
193 | let (ranges, text) = extract_ranges(text, "fold"); | 193 | let (ranges, text) = extract_ranges(text, "fold"); |
194 | let file = SourceFile::parse(&text); | 194 | let file = SourceFile::parse(&text).tree; |
195 | let folds = folding_ranges(&file); | 195 | let folds = folding_ranges(&file); |
196 | 196 | ||
197 | assert_eq!( | 197 | assert_eq!( |