mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
simplify
This commit is contained in:
parent
ed27bd8d77
commit
74beb5bfcb
5 changed files with 20 additions and 14 deletions
|
@ -2,10 +2,10 @@ use ra_db::FileId;
|
|||
use ra_syntax::{ast, SyntaxNode, TreeArc};
|
||||
|
||||
use crate::{
|
||||
Module, ModuleSource, Problem, ModuleDef,
|
||||
Crate, Name, Path, PerNs,
|
||||
Module, ModuleSource, Problem,
|
||||
Crate, Name,
|
||||
module_tree::ModuleId,
|
||||
nameres::{ModuleScope, lower::ImportId},
|
||||
nameres::{lower::ImportId},
|
||||
db::HirDatabase,
|
||||
};
|
||||
|
||||
|
@ -90,12 +90,6 @@ impl Module {
|
|||
Some(self.with_module_id(parent_id))
|
||||
}
|
||||
|
||||
/// Returns a `ModuleScope`: a set of items, visible in this module.
|
||||
pub(crate) fn scope_impl(&self, db: &impl HirDatabase) -> ModuleScope {
|
||||
let item_map = db.item_map(self.krate);
|
||||
item_map.per_module[&self.module_id].clone()
|
||||
}
|
||||
|
||||
pub(crate) fn problems_impl(
|
||||
&self,
|
||||
db: &impl HirDatabase,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue