From 3f0cf6ebe1a42c3a38f3ab8a7b2e10110ed91ee1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 23 Mar 2019 15:37:04 +0300 Subject: rename persistent hir database -> def database --- crates/ra_hir/src/nameres/raw.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir/src/nameres/raw.rs') diff --git a/crates/ra_hir/src/nameres/raw.rs b/crates/ra_hir/src/nameres/raw.rs index 3226bbf0d..f8ba398ec 100644 --- a/crates/ra_hir/src/nameres/raw.rs +++ b/crates/ra_hir/src/nameres/raw.rs @@ -12,7 +12,7 @@ use ra_syntax::{ }; use crate::{ - PersistentHirDatabase, Name, AsName, Path, HirFileId, ModuleSource, + DefDatabase, Name, AsName, Path, HirFileId, ModuleSource, ids::{SourceFileItemId, SourceFileItems}, }; @@ -47,15 +47,12 @@ impl ImportSourceMap { } impl RawItems { - pub(crate) fn raw_items_query( - db: &impl PersistentHirDatabase, - file_id: FileId, - ) -> Arc { + pub(crate) fn raw_items_query(db: &impl DefDatabase, file_id: FileId) -> Arc { db.raw_items_with_source_map(file_id).0 } pub(crate) fn raw_items_with_source_map_query( - db: &impl PersistentHirDatabase, + db: &impl DefDatabase, file_id: FileId, ) -> (Arc, Arc) { let mut collector = RawItemsCollector { -- cgit v1.2.3