diff options
author | Igor Aleksanov <[email protected]> | 2020-10-08 07:27:38 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-10-12 09:05:00 +0100 |
commit | fb0ab9f7456018ff0bac628e05366f976c5af1a7 (patch) | |
tree | 681abdb0ab856c42a586d8851c9708a7ec6f8b88 /crates/syntax/src | |
parent | 66cea8cbaa3320653e760e7b4ce839e055976acf (diff) |
Keep SyntaxNodePtr::range private
Diffstat (limited to 'crates/syntax/src')
-rw-r--r-- | crates/syntax/src/ptr.rs | 4 |
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| { |