From b70b6bce19981df5d0cda6a0193fb9b07da6ea51 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 21 Nov 2018 11:35:25 +0300 Subject: Move to top --- .../ra_analysis/src/descriptors/module/nameres.rs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'crates/ra_analysis') diff --git a/crates/ra_analysis/src/descriptors/module/nameres.rs b/crates/ra_analysis/src/descriptors/module/nameres.rs index a354fa54c..34127e78f 100644 --- a/crates/ra_analysis/src/descriptors/module/nameres.rs +++ b/crates/ra_analysis/src/descriptors/module/nameres.rs @@ -22,6 +22,19 @@ use crate::{ input::SourceRootId, }; +/// Item map is the result of the name resolution. Item map contains, for each +/// module, the set of visible items. +#[derive(Default, Debug, PartialEq, Eq)] +pub(crate) struct ItemMap { + per_module: FxHashMap, +} + +#[derive(Debug, Default, PartialEq, Eq)] +struct ModuleItems { + items: FxHashMap, + import_resolutions: FxHashMap, +} + /// A set of items and imports declared inside a module, without relation to /// other modules. /// @@ -101,19 +114,6 @@ pub(crate) fn item_map( Ok(Arc::new(res)) } -/// Item map is the result of the name resolution. Item map contains, for each -/// module, the set of visible items. -#[derive(Default, Debug, PartialEq, Eq)] -pub(crate) struct ItemMap { - per_module: FxHashMap, -} - -#[derive(Debug, Default, PartialEq, Eq)] -struct ModuleItems { - items: FxHashMap, - import_resolutions: FxHashMap, -} - /// Resolution is basically `DefId` atm, but it should account for stuff like /// multiple namespaces, ambiguity and errors. #[derive(Debug, Clone, PartialEq, Eq)] -- cgit v1.2.3