From 563a175fdb9073a548fc2e161d5de0a093b0d74d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 20 Jan 2021 15:25:34 +0100 Subject: Move SymbolKind to ide_db --- crates/ide/src/display/navigation_target.rs | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'crates/ide/src/display') diff --git a/crates/ide/src/display/navigation_target.rs b/crates/ide/src/display/navigation_target.rs index 00e601244..8d08e4763 100644 --- a/crates/ide/src/display/navigation_target.rs +++ b/crates/ide/src/display/navigation_target.rs @@ -7,6 +7,7 @@ use hir::{AssocItem, Documentation, FieldSource, HasAttrs, HasSource, InFile, Mo use ide_db::{ base_db::{FileId, FileRange, SourceDatabase}, symbol_index::FileSymbolKind, + SymbolKind, }; use ide_db::{defs::Definition, RootDatabase}; use syntax::{ @@ -18,30 +19,6 @@ use crate::FileSymbol; use super::short_label::ShortLabel; -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub enum SymbolKind { - Module, - Impl, - Field, - TypeParam, - ConstParam, - LifetimeParam, - ValueParam, - SelfParam, - Local, - Label, - Function, - Const, - Static, - Struct, - Enum, - Variant, - Union, - TypeAlias, - Trait, - Macro, -} - /// `NavigationTarget` represents and element in the editor's UI which you can /// click on to navigate to a particular piece of code. /// -- cgit v1.2.3