rustc_parse

Function new_parser_from_source_file

Source
pub(crate) fn new_parser_from_source_file(
    psess: &ParseSess,
    source_file: Lrc<SourceFile>,
) -> Result<Parser<'_>, Vec<Diag<'_>>>
Expand description

Given a session and a source_file, return a parser. Returns any buffered errors from lexing the initial token stream.