mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
list enum variants in the outline
This commit is contained in:
parent
154ab4206d
commit
ba4c5021c4
2 changed files with 24 additions and 3 deletions
|
@ -103,6 +103,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
|
|||
.visit(decl::<ast::StructDef>)
|
||||
.visit(|nfd: &ast::NamedFieldDef| decl_with_type_ref(nfd, nfd.type_ref()))
|
||||
.visit(decl::<ast::EnumDef>)
|
||||
.visit(decl::<ast::EnumVariant>)
|
||||
.visit(decl::<ast::TraitDef>)
|
||||
.visit(decl::<ast::Module>)
|
||||
.visit(|td: &ast::TypeDef| decl_with_type_ref(td, td.type_ref()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue