diff options
author | ivan770 <[email protected]> | 2021-03-14 15:16:29 +0000 |
---|---|---|
committer | ivan770 <[email protected]> | 2021-03-14 17:00:41 +0000 |
commit | 7d48e04f316a384967d48a261f1e3b70b5f85a98 (patch) | |
tree | 76eb426dcfa87e3b32f3b0efb4f88ca4416c57af /crates/ide_db/src | |
parent | 8602f9573b3a450b6a29c23bb4bfb7bd4108a89c (diff) |
Introduce StructureNodeKind
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r-- | crates/ide_db/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ide_db/src/lib.rs b/crates/ide_db/src/lib.rs index d478841e2..e8cafba43 100644 --- a/crates/ide_db/src/lib.rs +++ b/crates/ide_db/src/lib.rs | |||
@@ -136,6 +136,12 @@ fn line_index(db: &dyn LineIndexDatabase, file_id: FileId) -> Arc<LineIndex> { | |||
136 | } | 136 | } |
137 | 137 | ||
138 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] | 138 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] |
139 | pub enum StructureNodeKind { | ||
140 | SymbolKind(SymbolKind), | ||
141 | Region, | ||
142 | } | ||
143 | |||
144 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] | ||
139 | pub enum SymbolKind { | 145 | pub enum SymbolKind { |
140 | Const, | 146 | Const, |
141 | ConstParam, | 147 | ConstParam, |
@@ -148,7 +154,6 @@ pub enum SymbolKind { | |||
148 | Local, | 154 | Local, |
149 | Macro, | 155 | Macro, |
150 | Module, | 156 | Module, |
151 | Region, | ||
152 | SelfParam, | 157 | SelfParam, |
153 | Static, | 158 | Static, |
154 | Struct, | 159 | Struct, |