aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-23 15:33:01 +0100
committerAleksey Kladov <[email protected]>2020-04-23 15:33:01 +0100
commit4176c03d1254a462da1c84a3a1185c8f2161e8a8 (patch)
tree2e10739d01c0eccf3c2b4eabc43470c0a815dc7e /crates/ra_ide_db
parent0502be3bf4539d24d34d24f3a4b9521d99a32aee (diff)
Remove SyntaxPtr::range from more places
Diffstat (limited to 'crates/ra_ide_db')
-rw-r--r--crates/ra_ide_db/src/symbol_index.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/symbol_index.rs b/crates/ra_ide_db/src/symbol_index.rs
index 937abb433..95be11134 100644
--- a/crates/ra_ide_db/src/symbol_index.rs
+++ b/crates/ra_ide_db/src/symbol_index.rs
@@ -313,6 +313,7 @@ pub struct FileSymbol {
313 pub file_id: FileId, 313 pub file_id: FileId,
314 pub name: SmolStr, 314 pub name: SmolStr,
315 pub kind: SyntaxKind, 315 pub kind: SyntaxKind,
316 pub range: TextRange,
316 pub ptr: SyntaxNodePtr, 317 pub ptr: SyntaxNodePtr,
317 pub name_range: Option<TextRange>, 318 pub name_range: Option<TextRange>,
318 pub container_name: Option<SmolStr>, 319 pub container_name: Option<SmolStr>,
@@ -379,6 +380,7 @@ fn to_file_symbol(node: &SyntaxNode, file_id: FileId) -> Option<FileSymbol> {
379 to_symbol(node).map(move |(name, ptr, name_range)| FileSymbol { 380 to_symbol(node).map(move |(name, ptr, name_range)| FileSymbol {
380 name, 381 name,
381 kind: node.kind(), 382 kind: node.kind(),
383 range: node.text_range(),
382 ptr, 384 ptr,
383 file_id, 385 file_id,
384 name_range: Some(name_range), 386 name_range: Some(name_range),