Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(file: &SourceFile, ids: &mut NodeIdGen) -> (Module, Vec<Diag>)
Expand description

Lexes and parses a whole source file, returning the module (complete even if there were errors, with Err nodes where parsing failed) and every diagnostic. Node ids are taken from ids.