aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libeditor/src')
-rw-r--r--crates/libeditor/src/lib.rs1
-rw-r--r--crates/libeditor/src/symbols.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs
index 1e88f1471..e5933cbd6 100644
--- a/crates/libeditor/src/lib.rs
+++ b/crates/libeditor/src/lib.rs
@@ -1,6 +1,7 @@
1extern crate libsyntax2; 1extern crate libsyntax2;
2extern crate superslice; 2extern crate superslice;
3extern crate itertools; 3extern crate itertools;
4extern crate smol_str;
4 5
5mod extend_selection; 6mod extend_selection;
6mod symbols; 7mod symbols;
diff --git a/crates/libeditor/src/symbols.rs b/crates/libeditor/src/symbols.rs
index 5cd781c80..03f2313f7 100644
--- a/crates/libeditor/src/symbols.rs
+++ b/crates/libeditor/src/symbols.rs
@@ -1,3 +1,4 @@
1use smol_str::SmolStr;
1use libsyntax2::{ 2use libsyntax2::{
2 SyntaxKind, SyntaxNodeRef, SyntaxRoot, AstNode, 3 SyntaxKind, SyntaxNodeRef, SyntaxRoot, AstNode,
3 ast::{self, NameOwner}, 4 ast::{self, NameOwner},
@@ -11,7 +12,7 @@ use TextRange;
11#[derive(Debug)] 12#[derive(Debug)]
12pub struct FileSymbol { 13pub struct FileSymbol {
13 pub parent: Option<usize>, 14 pub parent: Option<usize>,
14 pub name: String, 15 pub name: SmolStr,
15 pub name_range: TextRange, 16 pub name_range: TextRange,
16 pub node_range: TextRange, 17 pub node_range: TextRange,
17 pub kind: SyntaxKind, 18 pub kind: SyntaxKind,