pub fn check_suite_decls(
types: &[TypeDecl],
consts: &[ConstDecl],
input: &ResolvedCommons,
tys: &Arc<Types>,
errors: &mut Vec<CompileError>,
refs: &mut RefSink,
locals: &mut LocalsSink,
) -> (HashMap<ExprId, TypedExpr>, HashMap<ExprId, Callee>)Expand description
#3066: check the type and const declarations of a suite, already added to
input (the suite’s view). They are checked as a unit’s own are:
check_type_decl, a record’s field defaults, check_const_decl and the
cycles through the suite’s constants. Returns the initialisers’ expression
types and callee classifications for the emitter.