diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api/src/navigation_target.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs index 8b29c3a97..b955bbe42 100644 --- a/crates/ra_ide_api/src/navigation_target.rs +++ b/crates/ra_ide_api/src/navigation_target.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use ra_db::{FileId, LocalSyntaxPtr, Cancelable}; | 1 | use ra_db::{FileId, Cancelable}; |
2 | use ra_syntax::{ | 2 | use ra_syntax::{ |
3 | SyntaxNode, AstNode, SmolStr, TextRange, ast, | 3 | SyntaxNode, AstNode, SmolStr, TextRange, ast, |
4 | SyntaxKind::{self, NAME}, | 4 | SyntaxKind::{self, NAME}, |
@@ -19,8 +19,6 @@ pub struct NavigationTarget { | |||
19 | kind: SyntaxKind, | 19 | kind: SyntaxKind, |
20 | full_range: TextRange, | 20 | full_range: TextRange, |
21 | focus_range: Option<TextRange>, | 21 | focus_range: Option<TextRange>, |
22 | // Should be DefId ideally | ||
23 | ptr: Option<LocalSyntaxPtr>, | ||
24 | } | 22 | } |
25 | 23 | ||
26 | impl NavigationTarget { | 24 | impl NavigationTarget { |
@@ -55,7 +53,6 @@ impl NavigationTarget { | |||
55 | kind: symbol.ptr.kind(), | 53 | kind: symbol.ptr.kind(), |
56 | full_range: symbol.ptr.range(), | 54 | full_range: symbol.ptr.range(), |
57 | focus_range: None, | 55 | focus_range: None, |
58 | ptr: Some(symbol.ptr.clone()), | ||
59 | } | 56 | } |
60 | } | 57 | } |
61 | 58 | ||
@@ -69,7 +66,6 @@ impl NavigationTarget { | |||
69 | full_range: entry.ptr().range(), | 66 | full_range: entry.ptr().range(), |
70 | focus_range: None, | 67 | focus_range: None, |
71 | kind: NAME, | 68 | kind: NAME, |
72 | ptr: None, | ||
73 | } | 69 | } |
74 | } | 70 | } |
75 | 71 | ||
@@ -157,7 +153,7 @@ impl NavigationTarget { | |||
157 | kind: node.kind(), | 153 | kind: node.kind(), |
158 | full_range: node.range(), | 154 | full_range: node.range(), |
159 | focus_range, | 155 | focus_range, |
160 | ptr: Some(LocalSyntaxPtr::new(node)), | 156 | // ptr: Some(LocalSyntaxPtr::new(node)), |
161 | } | 157 | } |
162 | } | 158 | } |
163 | } | 159 | } |