diff options
author | Aleksey Kladov <[email protected]> | 2018-08-17 13:37:17 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-17 13:37:17 +0100 |
commit | 081c16c77642a5c86ed72c5fbd11deccc2edd5d5 (patch) | |
tree | 90ddf4f92954fcb00f4c20a46968932c5f0bbdea /crates/libeditor/src/symbols.rs | |
parent | 55e87e0b742b46d40b1a5ef1598804e48e45f0e0 (diff) |
initial mod resolve
Diffstat (limited to 'crates/libeditor/src/symbols.rs')
-rw-r--r-- | crates/libeditor/src/symbols.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libeditor/src/symbols.rs b/crates/libeditor/src/symbols.rs index 2585d9579..ce870430e 100644 --- a/crates/libeditor/src/symbols.rs +++ b/crates/libeditor/src/symbols.rs | |||
@@ -9,7 +9,7 @@ use libsyntax2::{ | |||
9 | }; | 9 | }; |
10 | use TextRange; | 10 | use TextRange; |
11 | 11 | ||
12 | #[derive(Debug)] | 12 | #[derive(Debug, Clone)] |
13 | pub struct StructureNode { | 13 | pub struct StructureNode { |
14 | pub parent: Option<usize>, | 14 | pub parent: Option<usize>, |
15 | pub label: String, | 15 | pub label: String, |
@@ -18,7 +18,7 @@ pub struct StructureNode { | |||
18 | pub kind: SyntaxKind, | 18 | pub kind: SyntaxKind, |
19 | } | 19 | } |
20 | 20 | ||
21 | #[derive(Debug)] | 21 | #[derive(Debug, Clone)] |
22 | pub struct FileSymbol { | 22 | pub struct FileSymbol { |
23 | pub name: SmolStr, | 23 | pub name: SmolStr, |
24 | pub node_range: TextRange, | 24 | pub node_range: TextRange, |