Rename a few crate_def_maps to def_map

These could all be block `DefMap`s instead of crate-level `DefMap`s
This commit is contained in:
Jonas Schievink 2021-03-07 00:20:13 +01:00
parent c44575b485
commit 6750c11df3
4 changed files with 19 additions and 19 deletions

View file

@ -74,8 +74,8 @@ impl ChildBySource for ImplId {
impl ChildBySource for ModuleId {
fn child_by_source(&self, db: &dyn DefDatabase) -> DynMap {
let crate_def_map = self.def_map(db);
let module_data = &crate_def_map[self.local_id];
let def_map = self.def_map(db);
let module_data = &def_map[self.local_id];
module_data.scope.child_by_source(db)
}
}