Skip to main content

check_suite_fns

Function check_suite_fns 

Source
pub fn check_suite_fns(
    suite_fns: &[FnDecl],
    resolved: &mut ResolvedCommons,
    target: Option<&UnitTable>,
    errors: &mut Vec<CompileError>,
    refs: &mut RefSink,
    locals: &mut LocalsSink,
    tys: &Arc<Types>,
) -> (HashMap<ExprId, TypedExpr>, HashMap<ExprId, Callee>)
Expand description

#2834: check a suite’s helper fns. Each must be a free, pure function whose name no value in the case scope already uses and no sibling repeats; the helpers are then added to resolved (the suite’s view) and their bodies checked in it. Returns the bodies’ expr_types and Callee classification for the emit path, which re-checks with throwaway sinks.