aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/reparsing.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-02 15:07:12 +0100
committerAleksey Kladov <[email protected]>2018-10-02 15:09:23 +0100
commita261a1836ba02a1c091c5165795dc165ca399a87 (patch)
treee8bab3ea497a8e7207a24e481361bdd56ed81eaa /crates/ra_syntax/src/reparsing.rs
parentcd9c5f4ab205e092b87be6affe6d7e78d877dbf0 (diff)
Move to rowan for syntax tree impl
Diffstat (limited to 'crates/ra_syntax/src/reparsing.rs')
-rw-r--r--crates/ra_syntax/src/reparsing.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/reparsing.rs b/crates/ra_syntax/src/reparsing.rs
index da44913c5..e3c200d1e 100644
--- a/crates/ra_syntax/src/reparsing.rs
+++ b/crates/ra_syntax/src/reparsing.rs
@@ -1,11 +1,11 @@
1use algo; 1use algo;
2use grammar; 2use grammar;
3use lexer::{tokenize, Token}; 3use lexer::{tokenize, Token};
4use text_unit::{TextRange, TextUnit}; 4use yellow::{self, GreenNode, SyntaxNodeRef, SyntaxError};
5use yellow::{self, SyntaxNodeRef, GreenNode, SyntaxError};
6use parser_impl; 5use parser_impl;
7use parser_api::Parser; 6use parser_api::Parser;
8use { 7use {
8 TextUnit, TextRange,
9 SyntaxKind::*, 9 SyntaxKind::*,
10}; 10};
11use text_utils::replace_range; 11use text_utils::replace_range;
@@ -65,7 +65,7 @@ fn reparse_leaf<'node>(
65 return None; 65 return None;
66 } 66 }
67 67
68 let green = GreenNode::new_leaf(node.kind(), &text); 68 let green = GreenNode::new_leaf(node.kind(), text.into());
69 let new_errors = vec![]; 69 let new_errors = vec![];
70 Some((node, green, new_errors)) 70 Some((node, green, new_errors))
71 } 71 }
@@ -340,4 +340,4 @@ enum Foo {
340} 340}
341", "Clone"); 341", "Clone");
342 } 342 }
343} \ No newline at end of file 343}