aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/db
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-08 11:18:47 +0100
committerAleksey Kladov <[email protected]>2018-10-15 19:20:20 +0100
commitd783371b862c15d6d402d68e8edce4e37d63796c (patch)
tree927354d027fc6778aeb520ec0b74673d446e525d /crates/ra_analysis/src/db
parentd8aee31a600a8a8a56ddee0ee2ff1c5d5ba2320b (diff)
migrate modue map to salsa
Diffstat (limited to 'crates/ra_analysis/src/db')
-rw-r--r--crates/ra_analysis/src/db/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/db/mod.rs b/crates/ra_analysis/src/db/mod.rs
index 4b3e0fc90..c54d50252 100644
--- a/crates/ra_analysis/src/db/mod.rs
+++ b/crates/ra_analysis/src/db/mod.rs
@@ -9,7 +9,8 @@ use ra_syntax::File;
9use ra_editor::{LineIndex}; 9use ra_editor::{LineIndex};
10use crate::{ 10use crate::{
11 symbol_index::SymbolIndex, 11 symbol_index::SymbolIndex,
12 FileId, FileResolverImp 12 module_map::{ModulesDatabase, ModuleTreeQuery, ModuleDescriptorQuery},
13 FileId, FileResolverImp,
13}; 14};
14 15
15#[derive(Default)] 16#[derive(Default)]
@@ -40,6 +41,10 @@ salsa::database_storage! {
40 fn file_lines() for FileLinesQuery; 41 fn file_lines() for FileLinesQuery;
41 fn file_symbols() for FileSymbolsQuery; 42 fn file_symbols() for FileSymbolsQuery;
42 } 43 }
44 impl ModulesDatabase {
45 fn module_tree() for ModuleTreeQuery;
46 fn module_descriptor() for ModuleDescriptorQuery;
47 }
43 } 48 }
44} 49}
45 50