pub fn build(
rast: Rast,
tenv: TyEnv,
) -> Result<(Tast, Diagnostics), Diagnostics>Expand description
Type the resolved AST rast on its data layer typed by build_data,
taking both over.
Returns the typed AST and the warnings.
The system (build_system), then every program (build_programs),
each stage reporting its faults before the next starts: a body’s
diagnostics follow the declarations’ fixes, and a reference checks its
arguments against another body’s parameters.
§Errors
As build_system, then build_programs.