From 7edab6ae6b4c5d0c411e88f10e923b91dca31de3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Aug 2018 19:27:30 +0300 Subject: nodes for blocks --- crates/libeditor/src/symbols.rs | 2 +- crates/libeditor/tests/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/libeditor') diff --git a/crates/libeditor/src/symbols.rs b/crates/libeditor/src/symbols.rs index b2b05bc6a..37cef6389 100644 --- a/crates/libeditor/src/symbols.rs +++ b/crates/libeditor/src/symbols.rs @@ -93,7 +93,7 @@ fn structure_node(node: SyntaxNodeRef) -> Option { visitor() .visit(decl::) .visit(decl::) - .visit(decl::) + .visit(decl::) .visit(decl::) .visit(decl::) .visit(decl::) diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index 858c6c4a6..4f7c2e07a 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs @@ -104,7 +104,7 @@ impl fmt::Debug for E {} let symbols = file_structure(&file); assert_eq_dbg( r#"[StructureNode { parent: None, label: "Foo", navigation_range: [8; 11), node_range: [1; 26), kind: STRUCT_DEF }, - StructureNode { parent: Some(0), label: "x", navigation_range: [18; 19), node_range: [18; 24), kind: NAMED_FIELD }, + StructureNode { parent: Some(0), label: "x", navigation_range: [18; 19), node_range: [18; 24), kind: NAMED_FIELD_DEF }, StructureNode { parent: None, label: "m", navigation_range: [32; 33), node_range: [28; 53), kind: MODULE }, StructureNode { parent: Some(2), label: "bar", navigation_range: [43; 46), node_range: [40; 51), kind: FN_DEF }, StructureNode { parent: None, label: "E", navigation_range: [60; 61), node_range: [55; 75), kind: ENUM_DEF }, -- cgit v1.2.3