mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
make module module private
This commit is contained in:
parent
b7049ea543
commit
93fae08261
5 changed files with 8 additions and 9 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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},
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue