pub fn compile(parsed: &[&Parsed]) -> Result<Program, Vec<Diagnostic>>Expand description
Checks a program’s parsed files and returns the program; the first is the entry file.
§Errors
Returns the syntax errors if any file didn’t parse, and otherwise the type errors. Type checking only runs on files that parse, so one syntax error doesn’t cause a cascade of confusing type errors.