diff options
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 4a3e0fed2..ccc53c454 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -10,7 +10,7 @@ use crate::{ | |||
10 | FnSignature, FnScopes, | 10 | FnSignature, FnScopes, |
11 | macros::MacroExpansion, | 11 | macros::MacroExpansion, |
12 | module_tree::{ModuleId, ModuleTree}, | 12 | module_tree::{ModuleId, ModuleTree}, |
13 | nameres::{ItemMap, lower::InputModuleItems}, | 13 | nameres::{ItemMap, lower::{InputModuleItems, LoweredModule, ImportSourceMap}}, |
14 | ty::{InferenceResult, Ty, method_resolution::CrateImplBlocks}, | 14 | ty::{InferenceResult, Ty, method_resolution::CrateImplBlocks}, |
15 | adt::{StructData, EnumData, EnumVariantData}, | 15 | adt::{StructData, EnumData, EnumVariantData}, |
16 | impl_block::ModuleImplBlocks, | 16 | impl_block::ModuleImplBlocks, |
@@ -65,6 +65,27 @@ pub trait HirDatabase: | |||
65 | module_id: ModuleId, | 65 | module_id: ModuleId, |
66 | ) -> Arc<InputModuleItems>; | 66 | ) -> Arc<InputModuleItems>; |
67 | 67 | ||
68 | #[salsa::invoke(crate::nameres::lower::LoweredModule::lower_module_query)] | ||
69 | fn lower_module( | ||
70 | &self, | ||
71 | source_root_id: SourceRootId, | ||
72 | module_id: ModuleId, | ||
73 | ) -> (Arc<LoweredModule>, Arc<ImportSourceMap>); | ||
74 | |||
75 | #[salsa::invoke(crate::nameres::lower::LoweredModule::lower_module_module_query)] | ||
76 | fn lower_module_module( | ||
77 | &self, | ||
78 | source_root_id: SourceRootId, | ||
79 | module_id: ModuleId, | ||
80 | ) -> Arc<LoweredModule>; | ||
81 | |||
82 | #[salsa::invoke(crate::nameres::lower::LoweredModule::lower_module_source_map_query)] | ||
83 | fn lower_module_source_map( | ||
84 | &self, | ||
85 | source_root_id: SourceRootId, | ||
86 | module_id: ModuleId, | ||
87 | ) -> Arc<ImportSourceMap>; | ||
88 | |||
68 | #[salsa::invoke(query_definitions::item_map)] | 89 | #[salsa::invoke(query_definitions::item_map)] |
69 | fn item_map(&self, source_root_id: SourceRootId) -> Arc<ItemMap>; | 90 | fn item_map(&self, source_root_id: SourceRootId) -> Arc<ItemMap>; |
70 | 91 | ||