pub fn check_suite_decls(
types: &[TypeDecl],
consts: &[ConstDecl],
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
#3066: the type and const declarations of a suite, checked against the
case scope resolved (the view before they join it). A name already bound
in that scope (a target or used-commons declaration, a sum variant), or
repeated within the suite, is refused rather than shadowed; the rest join
resolved and are checked as a unit’s own are. Returns the initialisers’
expr_types and Callee classification for the emit path, which re-checks
with throwaway sinks.