aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/nameres
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-03-02 14:09:46 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-03-02 14:09:46 +0000
commitfd7240837b5fab6b2854bb63aa3b5c7771b4ddc0 (patch)
tree88b876a78136413b8fbdf59a524e1bcf12d17f78 /crates/ra_hir/src/nameres
parent30b87eb88073e48b8cde416ca7ff4eb59e408e20 (diff)
parentf0a9d026fcd8bea1944287b1fe7c6573ca62ca9d (diff)
Merge #915
915: Bring BodySyntaxMapping in line with other source-map instances r=flodiebold a=matklad * rename to SourceMap * don't store the actual body inline, just return a pair r? @flodiebold Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/nameres')
-rw-r--r--crates/ra_hir/src/nameres/lower.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/crates/ra_hir/src/nameres/lower.rs b/crates/ra_hir/src/nameres/lower.rs
index 2bc3eb60c..56262ad6d 100644
--- a/crates/ra_hir/src/nameres/lower.rs
+++ b/crates/ra_hir/src/nameres/lower.rs
@@ -60,21 +60,14 @@ impl ImportSourceMap {
60} 60}
61 61
62impl LoweredModule { 62impl LoweredModule {
63 pub(crate) fn lower_module_module_query( 63 pub(crate) fn lower_module_query(
64 db: &impl PersistentHirDatabase, 64 db: &impl PersistentHirDatabase,
65 module: Module, 65 module: Module,
66 ) -> Arc<LoweredModule> { 66 ) -> Arc<LoweredModule> {
67 db.lower_module(module).0 67 db.lower_module_with_source_map(module).0
68 }
69
70 pub(crate) fn lower_module_source_map_query(
71 db: &impl PersistentHirDatabase,
72 module: Module,
73 ) -> Arc<ImportSourceMap> {
74 db.lower_module(module).1
75 } 68 }
76 69
77 pub(crate) fn lower_module_query( 70 pub(crate) fn lower_module_with_source_map_query(
78 db: &impl PersistentHirDatabase, 71 db: &impl PersistentHirDatabase,
79 module: Module, 72 module: Module,
80 ) -> (Arc<LoweredModule>, Arc<ImportSourceMap>) { 73 ) -> (Arc<LoweredModule>, Arc<ImportSourceMap>) {