make module module private

This commit is contained in:
Aleksey Kladov 2018-11-27 23:35:53 +03:00
parent b7049ea543
commit 93fae08261
5 changed files with 8 additions and 9 deletions

View file

@ -11,9 +11,9 @@ use rustc_hash::{FxHashMap};
use crate::{ use crate::{
db::{self, SyntaxDatabase}, db::{self, SyntaxDatabase},
hir::{ hir::
module::{ModuleDescriptor} ModuleDescriptor
}, ,
Cancelable, FilePosition Cancelable, FilePosition
}; };

View file

@ -11,7 +11,7 @@ use crate::{
db::RootDatabase, db::RootDatabase,
completion::CompletionItem, completion::CompletionItem,
hir::{ hir::{
module::{ModuleDescriptor}, ModuleDescriptor,
function::FnScopes, function::FnScopes,
Def, Def,
Path, Path,

View file

@ -6,7 +6,7 @@
//! applied. So, there relation between syntax and HIR is many-to-one. //! applied. So, there relation between syntax and HIR is many-to-one.
pub(crate) mod function; pub(crate) mod function;
pub(crate) mod module; mod module;
pub(crate) mod db; pub(crate) mod db;
mod path; mod path;
mod query_definitions; mod query_definitions;
@ -26,7 +26,7 @@ use crate::{
pub(crate) use self::{ pub(crate) use self::{
path::{Path, PathKind}, path::{Path, PathKind},
module::{ModuleDescriptor, nameres::FileItemId}, module::{ModuleDescriptor, ModuleId, Problem, nameres::FileItemId},
function::FunctionDescriptor, function::FunctionDescriptor,
}; };

View file

@ -22,7 +22,7 @@ use crate::{
hir::{ hir::{
FunctionDescriptor, ModuleDescriptor, FunctionDescriptor, ModuleDescriptor,
function::FnDescriptor, function::FnDescriptor,
module::{Problem}, Problem,
DeclarationDescriptor, DeclarationDescriptor,
}, },
input::{FilesDatabase, SourceRoot, SourceRootId, WORKSPACE}, input::{FilesDatabase, SourceRoot, SourceRootId, WORKSPACE},

View file

@ -9,8 +9,7 @@ use rustc_hash::FxHashMap;
use crate::{ use crate::{
FileId, FileId,
hir::FileItemId, hir::{FileItemId, ModuleId},
hir::module::ModuleId,
syntax_ptr::SyntaxPtr, syntax_ptr::SyntaxPtr,
input::SourceRootId, input::SourceRootId,
}; };