pub fn visit_file_defs(
sema: &Semantics<'_, RootDatabase>,
file_id: FileId,
cb: &mut dyn FnMut(Definition),
)
Expand description
Iterates all ModuleDef
s and Impl
blocks of the given file.
pub fn visit_file_defs(
sema: &Semantics<'_, RootDatabase>,
file_id: FileId,
cb: &mut dyn FnMut(Definition),
)
Iterates all ModuleDef
s and Impl
blocks of the given file.