Skip to main content

collect_generic_decls

Function collect_generic_decls 

Source
pub fn collect_generic_decls(
    modules: &[(&AIRModule, &Path)],
) -> GenericDeclRegistry
Expand description

Pre-scan every reached module and build the GenericDeclRegistry. Records the generic parameters declared on each top-level RecordDecl, EnumDecl, and ClassDecl. Non-generic decls are recorded with an empty parameter list (their presence still lets a backend distinguish a known concrete type from an unknown one).