From 27dd0086ea0642cc36e2a388dcfd7e5f6a466ac5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 23 Apr 2020 21:23:36 +0200 Subject: Fully get rid of SyntaxNodePtr::range --- crates/ra_syntax/src/ptr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/src/ptr.rs') 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 { .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self)) } - pub fn range(&self) -> TextRange { - self.range - } + // pub fn range(&self) -> TextRange { + // self.range + // } pub fn cast(self) -> Option> { if !N::can_cast(self.kind) { -- cgit v1.2.3