diff options
author | Aleksey Kladov <[email protected]> | 2019-06-30 14:35:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-30 14:35:40 +0100 |
commit | e7164e6aeb220e6859d13ee4b794635ba657cb02 (patch) | |
tree | 2dce50da2a5f39e2c7af098e671fb47098148138 /crates/ra_hir/src | |
parent | 0fd2879b4eaadbef442d8dbc8e7028daa400d654 (diff) |
put source maps first for better stats
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/db.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index b7d5ab5c6..eda22c0b0 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -95,27 +95,27 @@ pub trait DefDatabase: InternDatabase { | |||
95 | #[salsa::invoke(crate::traits::TraitItemsIndex::trait_items_index)] | 95 | #[salsa::invoke(crate::traits::TraitItemsIndex::trait_items_index)] |
96 | fn trait_items_index(&self, module: Module) -> crate::traits::TraitItemsIndex; | 96 | fn trait_items_index(&self, module: Module) -> crate::traits::TraitItemsIndex; |
97 | 97 | ||
98 | #[salsa::invoke(RawItems::raw_items_query)] | ||
99 | fn raw_items(&self, file_id: HirFileId) -> Arc<RawItems>; | ||
100 | |||
101 | #[salsa::invoke(RawItems::raw_items_with_source_map_query)] | 98 | #[salsa::invoke(RawItems::raw_items_with_source_map_query)] |
102 | fn raw_items_with_source_map( | 99 | fn raw_items_with_source_map( |
103 | &self, | 100 | &self, |
104 | file_id: HirFileId, | 101 | file_id: HirFileId, |
105 | ) -> (Arc<RawItems>, Arc<ImportSourceMap>); | 102 | ) -> (Arc<RawItems>, Arc<ImportSourceMap>); |
106 | 103 | ||
104 | #[salsa::invoke(RawItems::raw_items_query)] | ||
105 | fn raw_items(&self, file_id: HirFileId) -> Arc<RawItems>; | ||
106 | |||
107 | #[salsa::invoke(CrateDefMap::crate_def_map_query)] | 107 | #[salsa::invoke(CrateDefMap::crate_def_map_query)] |
108 | fn crate_def_map(&self, krate: Crate) -> Arc<CrateDefMap>; | 108 | fn crate_def_map(&self, krate: Crate) -> Arc<CrateDefMap>; |
109 | 109 | ||
110 | #[salsa::invoke(crate::impl_block::impls_in_module)] | ||
111 | fn impls_in_module(&self, module: Module) -> Arc<ModuleImplBlocks>; | ||
112 | |||
113 | #[salsa::invoke(crate::impl_block::impls_in_module_with_source_map_query)] | 110 | #[salsa::invoke(crate::impl_block::impls_in_module_with_source_map_query)] |
114 | fn impls_in_module_with_source_map( | 111 | fn impls_in_module_with_source_map( |
115 | &self, | 112 | &self, |
116 | module: Module, | 113 | module: Module, |
117 | ) -> (Arc<ModuleImplBlocks>, Arc<ImplSourceMap>); | 114 | ) -> (Arc<ModuleImplBlocks>, Arc<ImplSourceMap>); |
118 | 115 | ||
116 | #[salsa::invoke(crate::impl_block::impls_in_module)] | ||
117 | fn impls_in_module(&self, module: Module) -> Arc<ModuleImplBlocks>; | ||
118 | |||
119 | #[salsa::invoke(crate::generics::GenericParams::generic_params_query)] | 119 | #[salsa::invoke(crate::generics::GenericParams::generic_params_query)] |
120 | fn generic_params(&self, def: GenericDef) -> Arc<GenericParams>; | 120 | fn generic_params(&self, def: GenericDef) -> Arc<GenericParams>; |
121 | 121 | ||