aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-01-20 14:25:34 +0000
committerLukas Wirth <[email protected]>2021-01-20 14:25:34 +0000
commit563a175fdb9073a548fc2e161d5de0a093b0d74d (patch)
treed4fcf28abd1b9a83c439351adce0a42d919db33a /crates/ide_db
parent83e49200d82dccda54bbf376bba5a9c75da14cab (diff)
Move SymbolKind to ide_db
Diffstat (limited to 'crates/ide_db')
-rw-r--r--crates/ide_db/src/lib.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/crates/ide_db/src/lib.rs b/crates/ide_db/src/lib.rs
index 118c090d7..ee35d02f5 100644
--- a/crates/ide_db/src/lib.rs
+++ b/crates/ide_db/src/lib.rs
@@ -134,3 +134,27 @@ fn line_index(db: &dyn LineIndexDatabase, file_id: FileId) -> Arc<LineIndex> {
134 let text = db.file_text(file_id); 134 let text = db.file_text(file_id);
135 Arc::new(LineIndex::new(&*text)) 135 Arc::new(LineIndex::new(&*text))
136} 136}
137
138#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
139pub enum SymbolKind {
140 Module,
141 Impl,
142 Field,
143 TypeParam,
144 ConstParam,
145 LifetimeParam,
146 ValueParam,
147 SelfParam,
148 Local,
149 Label,
150 Function,
151 Const,
152 Static,
153 Struct,
154 Enum,
155 Variant,
156 Union,
157 TypeAlias,
158 Trait,
159 Macro,
160}