mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Introduce StructureNodeKind
This commit is contained in:
parent
8602f9573b
commit
7d48e04f31
7 changed files with 110 additions and 57 deletions
|
@ -135,6 +135,12 @@ fn line_index(db: &dyn LineIndexDatabase, file_id: FileId) -> Arc<LineIndex> {
|
|||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue