aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/symbol_index.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/symbol_index.rs')
-rw-r--r--crates/ra_ide_api/src/symbol_index.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/symbol_index.rs b/crates/ra_ide_api/src/symbol_index.rs
index 93bdf05d8..414327ac2 100644
--- a/crates/ra_ide_api/src/symbol_index.rs
+++ b/crates/ra_ide_api/src/symbol_index.rs
@@ -196,7 +196,7 @@ impl Query {
196 196
197fn is_type(kind: SyntaxKind) -> bool { 197fn is_type(kind: SyntaxKind) -> bool {
198 match kind { 198 match kind {
199 STRUCT_DEF | ENUM_DEF | TRAIT_DEF | TYPE_DEF => true, 199 STRUCT_DEF | ENUM_DEF | TRAIT_DEF | TYPE_ALIAS_DEF => true,
200 _ => false, 200 _ => false,
201 } 201 }
202} 202}
@@ -253,7 +253,7 @@ fn to_symbol(node: &SyntaxNode) -> Option<(SmolStr, SyntaxNodePtr, TextRange)> {
253 .visit(decl::<ast::EnumDef>) 253 .visit(decl::<ast::EnumDef>)
254 .visit(decl::<ast::TraitDef>) 254 .visit(decl::<ast::TraitDef>)
255 .visit(decl::<ast::Module>) 255 .visit(decl::<ast::Module>)
256 .visit(decl::<ast::TypeDef>) 256 .visit(decl::<ast::TypeAliasDef>)
257 .visit(decl::<ast::ConstDef>) 257 .visit(decl::<ast::ConstDef>)
258 .visit(decl::<ast::StaticDef>) 258 .visit(decl::<ast::StaticDef>)
259 .accept(node)? 259 .accept(node)?