aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-04-23 20:24:20 +0100
committerGitHub <[email protected]>2020-04-23 20:24:20 +0100
commit189ac4abbf6037419cb195c0a36a179544496ced (patch)
treee9b7f3efaa7997bedfdd8dab39d93026d26040a7 /crates/ra_syntax/src
parentd283f87f6d48239f73cb5a436efb62bef79dbc54 (diff)
parent27dd0086ea0642cc36e2a388dcfd7e5f6a466ac5 (diff)
Merge #4108
4108: Fully get rid of SyntaxNodePtr::range r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/ptr.rs6
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) {