aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/ptr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/syntax/src/ptr.rs')
-rw-r--r--crates/syntax/src/ptr.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/syntax/src/ptr.rs b/crates/syntax/src/ptr.rs
index 34e20464a..d3fb7a5d9 100644
--- a/crates/syntax/src/ptr.rs
+++ b/crates/syntax/src/ptr.rs
@@ -23,10 +23,6 @@ impl SyntaxNodePtr {
23 SyntaxNodePtr { range: node.text_range(), kind: node.kind() } 23 SyntaxNodePtr { range: node.text_range(), kind: node.kind() }
24 } 24 }
25 25
26 pub fn text_range(&self) -> TextRange {
27 self.range.clone()
28 }
29
30 pub fn to_node(&self, root: &SyntaxNode) -> SyntaxNode { 26 pub fn to_node(&self, root: &SyntaxNode) -> SyntaxNode {
31 assert!(root.parent().is_none()); 27 assert!(root.parent().is_none());
32 successors(Some(root.clone()), |node| { 28 successors(Some(root.clone()), |node| {