From f0e0a40a6106e979843f97001bb3db59ceb29557 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 24 Nov 2019 13:34:27 +0300 Subject: Reduce visbility --- crates/ra_hir_def/src/nameres.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 3b2e99647..68a0451a2 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs @@ -267,16 +267,6 @@ impl CrateDefMap { self.diagnostics.iter().for_each(|it| it.add_to(db, module, sink)) } - pub fn resolve_path( - &self, - db: &impl DefDatabase, - original_module: LocalModuleId, - path: &Path, - ) -> (PerNs, Option) { - let res = self.resolve_path_fp_with_macro(db, ResolveMode::Other, original_module, path); - (res.resolved_def, res.segment_index) - } - pub fn modules(&self) -> impl Iterator + '_ { self.modules.iter().map(|(id, _data)| id) } @@ -287,6 +277,16 @@ impl CrateDefMap { .filter(move |(_id, data)| data.definition == Some(file_id)) .map(|(id, _data)| id) } + + pub(crate) fn resolve_path( + &self, + db: &impl DefDatabase, + original_module: LocalModuleId, + path: &Path, + ) -> (PerNs, Option) { + let res = self.resolve_path_fp_with_macro(db, ResolveMode::Other, original_module, path); + (res.resolved_def, res.segment_index) + } } impl ModuleData { -- cgit v1.2.3