Skip to main content

collect_unit_methods

Function collect_unit_methods 

Source
pub fn collect_unit_methods(
    indices: &[usize],
    parsed: &[ParsedFile],
) -> HashMap<String, Vec<FnDecl>>
Expand description

Phase 8c: collect every method authored anywhere in one unit, keyed by its attached type’s name — so a type’s methods surface in the file that declares the type even when the method lives in a sibling file. The collection loop has no continues, so it lifts out whole.