[][src]Function rustc_parse::maybe_source_file_to_parser

pub(crate) fn maybe_source_file_to_parser(
    sess: &ParseSess,
    source_file: Lrc<SourceFile>
) -> Result<Parser<'_>, Vec<Diagnostic>>

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