aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-02 20:24:58 +0000
committerAleksey Kladov <[email protected]>2019-01-03 09:26:40 +0000
commit267a89bca2b606faafacfe69db7fda1ef27bb39f (patch)
treeaeba5501cce0417dd79b0be0cab653589354523c /crates/ra_analysis/src/lib.rs
parentf534d2132b90fca8c0646cc81f8a60fa20423fe1 (diff)
use LocalSyntaxPtr for file symbol
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r--crates/ra_analysis/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs
index 8247914c0..69d6754d6 100644
--- a/crates/ra_analysis/src/lib.rs
+++ b/crates/ra_analysis/src/lib.rs
@@ -231,9 +231,9 @@ impl NavigationTarget {
231 fn from_symbol(file_id: FileId, symbol: FileSymbol) -> NavigationTarget { 231 fn from_symbol(file_id: FileId, symbol: FileSymbol) -> NavigationTarget {
232 NavigationTarget { 232 NavigationTarget {
233 name: symbol.name.clone(), 233 name: symbol.name.clone(),
234 kind: symbol.kind.clone(), 234 kind: symbol.ptr.kind(),
235 file_id, 235 file_id,
236 range: symbol.node_range.clone(), 236 range: symbol.ptr.range(),
237 } 237 }
238 } 238 }
239 pub fn name(&self) -> &SmolStr { 239 pub fn name(&self) -> &SmolStr {