From 7d48e04f316a384967d48a261f1e3b70b5f85a98 Mon Sep 17 00:00:00 2001 From: ivan770 Date: Sun, 14 Mar 2021 17:16:29 +0200 Subject: Introduce StructureNodeKind --- crates/ide_db/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crates/ide_db/src/lib.rs') 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 @@ -135,6 +135,12 @@ fn line_index(db: &dyn LineIndexDatabase, file_id: FileId) -> Arc { Arc::new(LineIndex::new(&*text)) } +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] +pub enum StructureNodeKind { + SymbolKind(SymbolKind), + Region, +} + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub enum SymbolKind { Const, @@ -148,7 +154,6 @@ pub enum SymbolKind { Local, Macro, Module, - Region, SelfParam, Static, Struct, -- cgit v1.2.3