[−][src]Function rustc_ap_rustc_parse::maybe_new_parser_from_file
pub fn maybe_new_parser_from_file<'a>(
sess: &'a ParseSess,
path: &Path
) -> Result<Parser<'a>, Vec<Diagnostic>>
Creates a new parser, returning buffered diagnostics if the file doesn't exist, or from lexing the initial token stream.