diff options
Diffstat (limited to 'crates/ra_analysis/src/syntax_ptr.rs')
-rw-r--r-- | crates/ra_analysis/src/syntax_ptr.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/ra_analysis/src/syntax_ptr.rs b/crates/ra_analysis/src/syntax_ptr.rs index e45934ce0..3168e82a7 100644 --- a/crates/ra_analysis/src/syntax_ptr.rs +++ b/crates/ra_analysis/src/syntax_ptr.rs | |||
@@ -56,11 +56,8 @@ impl LocalSyntaxPtr { | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | 58 | ||
59 | pub(crate) fn into_global(self, file_id: FileId) -> SyntaxPtr { | 59 | pub(crate) fn range(self) -> TextRange { |
60 | SyntaxPtr { | 60 | self.range |
61 | file_id, | ||
62 | local: self, | ||
63 | } | ||
64 | } | 61 | } |
65 | } | 62 | } |
66 | 63 | ||