diff options
Diffstat (limited to 'crates/ra_ide_api_light')
-rw-r--r-- | crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap | 2 | ||||
-rw-r--r-- | crates/ra_ide_api_light/src/structure.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap index 413f4a5ff..8e4184b31 100644 --- a/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap +++ b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap | |||
@@ -111,7 +111,7 @@ expression: structure | |||
111 | label: "T", | 111 | label: "T", |
112 | navigation_range: [186; 187), | 112 | navigation_range: [186; 187), |
113 | node_range: [181; 193), | 113 | node_range: [181; 193), |
114 | kind: TYPE_DEF, | 114 | kind: TYPE_ALIAS_DEF, |
115 | detail: Some( | 115 | detail: Some( |
116 | "()" | 116 | "()" |
117 | ), | 117 | ), |
diff --git a/crates/ra_ide_api_light/src/structure.rs b/crates/ra_ide_api_light/src/structure.rs index 75afd1181..dea494daa 100644 --- a/crates/ra_ide_api_light/src/structure.rs +++ b/crates/ra_ide_api_light/src/structure.rs | |||
@@ -112,7 +112,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> { | |||
112 | .visit(decl::<ast::EnumVariant>) | 112 | .visit(decl::<ast::EnumVariant>) |
113 | .visit(decl::<ast::TraitDef>) | 113 | .visit(decl::<ast::TraitDef>) |
114 | .visit(decl::<ast::Module>) | 114 | .visit(decl::<ast::Module>) |
115 | .visit(|td: &ast::TypeDef| decl_with_type_ref(td, td.type_ref())) | 115 | .visit(|td: &ast::TypeAliasDef| decl_with_type_ref(td, td.type_ref())) |
116 | .visit(|cd: &ast::ConstDef| decl_with_type_ref(cd, cd.type_ref())) | 116 | .visit(|cd: &ast::ConstDef| decl_with_type_ref(cd, cd.type_ref())) |
117 | .visit(|sd: &ast::StaticDef| decl_with_type_ref(sd, sd.type_ref())) | 117 | .visit(|sd: &ast::StaticDef| decl_with_type_ref(sd, sd.type_ref())) |
118 | .visit(|im: &ast::ImplBlock| { | 118 | .visit(|im: &ast::ImplBlock| { |