diff options
author | Aleksey Kladov <[email protected]> | 2020-04-23 20:23:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-23 20:23:36 +0100 |
commit | 27dd0086ea0642cc36e2a388dcfd7e5f6a466ac5 (patch) | |
tree | 010df87b397c403f41852bd500185514f261ebb0 /crates/ra_syntax | |
parent | 29bc218fba2e52711b038562ff23bbb76a002380 (diff) |
Fully get rid of SyntaxNodePtr::range
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/ptr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/ptr.rs b/crates/ra_syntax/src/ptr.rs index 3be648c2a..8d9812d24 100644 --- a/crates/ra_syntax/src/ptr.rs +++ b/crates/ra_syntax/src/ptr.rs | |||
@@ -30,9 +30,9 @@ impl SyntaxNodePtr { | |||
30 | .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self)) | 30 | .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self)) |
31 | } | 31 | } |
32 | 32 | ||
33 | pub fn range(&self) -> TextRange { | 33 | // pub fn range(&self) -> TextRange { |
34 | self.range | 34 | // self.range |
35 | } | 35 | // } |
36 | 36 | ||
37 | pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> { | 37 | pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> { |
38 | if !N::can_cast(self.kind) { | 38 | if !N::can_cast(self.kind) { |