aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_node.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-05-13 17:39:06 +0100
committerAleksey Kladov <[email protected]>2019-05-13 17:39:06 +0100
commit549728bba87ed8f4375f27bb9a77223bf8f65452 (patch)
tree7d2711f243047a5e7ee74d7181905a36ae2c033d /crates/ra_syntax/src/syntax_node.rs
parent033a32f34944d7e07facd900a78db59b35e6698c (diff)
make AstId untyped
Diffstat (limited to 'crates/ra_syntax/src/syntax_node.rs')
-rw-r--r--crates/ra_syntax/src/syntax_node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs
index 92c15234e..80054f529 100644
--- a/crates/ra_syntax/src/syntax_node.rs
+++ b/crates/ra_syntax/src/syntax_node.rs
@@ -392,7 +392,7 @@ impl SyntaxNode {
392 // `range` private afterwards 392 // `range` private afterwards
393 let mut ptr = SyntaxNodePtr::new(self); 393 let mut ptr = SyntaxNodePtr::new(self);
394 ptr.range = TextRange::offset_len(ptr.range().start(), len); 394 ptr.range = TextRange::offset_len(ptr.range().start(), len);
395 return ptr.to_node(&file).to_owned(); 395 return ptr.to_node(file.syntax()).to_owned();
396 } 396 }
397 397
398 fn position_of_child(&self, child: SyntaxElement) -> usize { 398 fn position_of_child(&self, child: SyntaxElement) -> usize {