use LocalSyntaxPtr for file symbol

This commit is contained in:
Aleksey Kladov 2019-01-02 23:24:58 +03:00
parent f534d2132b
commit 267a89bca2
3 changed files with 47 additions and 51 deletions

View file

@ -231,9 +231,9 @@ impl NavigationTarget {
fn from_symbol(file_id: FileId, symbol: FileSymbol) -> NavigationTarget {
NavigationTarget {
name: symbol.name.clone(),
kind: symbol.kind.clone(),
kind: symbol.ptr.kind(),
file_id,
range: symbol.node_range.clone(),
range: symbol.ptr.range(),
}
}
pub fn name(&self) -> &SmolStr {