mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Rename module_id -> local_id
This commit is contained in:
parent
47ec2ceb12
commit
d9a36a736b
13 changed files with 47 additions and 47 deletions
|
@ -73,9 +73,9 @@ impl TestDB {
|
|||
pub fn module_for_file(&self, file_id: FileId) -> ModuleId {
|
||||
for &krate in self.relevant_crates(file_id).iter() {
|
||||
let crate_def_map = self.crate_def_map(krate);
|
||||
for (module_id, data) in crate_def_map.modules.iter() {
|
||||
for (local_id, data) in crate_def_map.modules.iter() {
|
||||
if data.definition == Some(file_id) {
|
||||
return ModuleId { krate, module_id };
|
||||
return ModuleId { krate, local_id };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue