aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-15 09:26:58 +0000
committerGitHub <[email protected]>2021-03-15 09:26:58 +0000
commitcec676d08236076a48a9fdae28cf0e716ae99b16 (patch)
tree6fb2e73e2d8ba57779f986fd02856e9fda30679e /crates/ide_db
parentde360275416ca095102f2b17d6ca1de3bd091fdb (diff)
parentd6977550dd3cdfa012d30c12d8b89776070ab7af (diff)
Merge #7975
7975: Provide regions in file structure r=ivan770 a=ivan770 Closes #7913 https://user-images.githubusercontent.com/14003886/110819163-96b3c080-8296-11eb-993e-a7cdb574a12d.mp4 Co-authored-by: ivan770 <[email protected]>
Diffstat (limited to 'crates/ide_db')
-rw-r--r--crates/ide_db/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ide_db/src/lib.rs b/crates/ide_db/src/lib.rs
index 88ee4a87d..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)]
139pub enum StructureNodeKind {
140 SymbolKind(SymbolKind),
141 Region,
142}
143
144#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
139pub enum SymbolKind { 145pub enum SymbolKind {
140 Const, 146 Const,
141 ConstParam, 147 ConstParam,