diff options
Diffstat (limited to 'crates/libeditor')
-rw-r--r-- | crates/libeditor/src/symbols.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/libeditor/src/symbols.rs b/crates/libeditor/src/symbols.rs index 03f2313f7..f1d5222f4 100644 --- a/crates/libeditor/src/symbols.rs +++ b/crates/libeditor/src/symbols.rs | |||
@@ -59,13 +59,13 @@ fn to_symbol(node: SyntaxNodeRef) -> Option<FileSymbol> { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | visitor() | 61 | visitor() |
62 | .visit(decl::<ast::Function<_>>) | 62 | .visit(decl::<ast::FnDef<_>>) |
63 | .visit(decl::<ast::Struct<_>>) | 63 | .visit(decl::<ast::StructDef<_>>) |
64 | .visit(decl::<ast::Enum<_>>) | 64 | .visit(decl::<ast::EnumDef<_>>) |
65 | .visit(decl::<ast::Trait<_>>) | 65 | .visit(decl::<ast::TraitDef<_>>) |
66 | .visit(decl::<ast::Module<_>>) | 66 | .visit(decl::<ast::Module<_>>) |
67 | .visit(decl::<ast::TypeItem<_>>) | 67 | .visit(decl::<ast::TypeDef<_>>) |
68 | .visit(decl::<ast::ConstItem<_>>) | 68 | .visit(decl::<ast::ConstDef<_>>) |
69 | .visit(decl::<ast::StaticItem<_>>) | 69 | .visit(decl::<ast::StaticDef<_>>) |
70 | .accept(node)? | 70 | .accept(node)? |
71 | } | 71 | } |