ide_db::helpers

Function visit_file_defs

source
pub fn visit_file_defs(
    sema: &Semantics<'_, RootDatabase>,
    file_id: FileId,
    cb: &mut dyn FnMut(Definition),
)
Expand description

Iterates all ModuleDefs and Impl blocks of the given file.