Add prefix file_ to Semantics's to_module_defs()/to_module_def() methods

This commit is contained in:
Vincent Esche 2024-02-28 10:13:31 +01:00
parent 0ac05c0527
commit 6112ddfabb
12 changed files with 16 additions and 16 deletions

View file

@ -48,7 +48,7 @@ pub(crate) fn parent_module(db: &RootDatabase, position: FilePosition) -> Vec<Na
.flat_map(|module| NavigationTarget::from_module_to_decl(db, module))
.collect(),
None => sema
.to_module_defs(position.file_id)
.file_to_module_defs(position.file_id)
.flat_map(|module| NavigationTarget::from_module_to_decl(db, module))
.collect(),
}