diff options
author | Aleksey Kladov <[email protected]> | 2018-10-23 17:15:31 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-23 18:44:23 +0100 |
commit | dc477db757247d5184250bffe9dd0c38dd867778 (patch) | |
tree | 1eebf0ff17462a44668f95b3e042de09d09985d0 /crates/ra_analysis/src/db.rs | |
parent | 1d574ed6543936af7d1d16c4b4ea9b4bd858aa41 (diff) |
Introduce ModuleId
Previously, module was synonym with a file, and so a module could have
had several parents. This commit introduces a separate module concept,
such that each module has only one parent, but a single file can
correspond to different modules.
Diffstat (limited to 'crates/ra_analysis/src/db.rs')
-rw-r--r-- | crates/ra_analysis/src/db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/db.rs b/crates/ra_analysis/src/db.rs index 956cbe162..b527cde61 100644 --- a/crates/ra_analysis/src/db.rs +++ b/crates/ra_analysis/src/db.rs | |||
@@ -12,7 +12,7 @@ use salsa; | |||
12 | use crate::{ | 12 | use crate::{ |
13 | db, | 13 | db, |
14 | Cancelable, Canceled, | 14 | Cancelable, Canceled, |
15 | module_map::{ModuleDescriptorQuery, ModuleTreeQuery, ModulesDatabase}, | 15 | descriptors::module::{SubmodulesQuery, ModuleTreeQuery, ModulesDatabase}, |
16 | symbol_index::SymbolIndex, | 16 | symbol_index::SymbolIndex, |
17 | FileId, FileResolverImp, | 17 | FileId, FileResolverImp, |
18 | }; | 18 | }; |
@@ -69,7 +69,7 @@ salsa::database_storage! { | |||
69 | } | 69 | } |
70 | impl ModulesDatabase { | 70 | impl ModulesDatabase { |
71 | fn module_tree() for ModuleTreeQuery; | 71 | fn module_tree() for ModuleTreeQuery; |
72 | fn module_descriptor() for ModuleDescriptorQuery; | 72 | fn module_descriptor() for SubmodulesQuery; |
73 | } | 73 | } |
74 | } | 74 | } |
75 | } | 75 | } |