pub fn parse_file(sm: &SourceMap, file: FileId) -> (Program, Vec<Diagnostic>)Expand description
Parse one file. Lexer and parser diagnostics are returned together; the program is returned even when there are errors (with the failing declarations dropped) so that later phases can still report on the rest.