Function rustc_ap_rustc_parse::maybe_new_parser_from_source_str[][src]

pub fn maybe_new_parser_from_source_str(
    sess: &ParseSess,
    name: FileName,
    source: String
) -> Result<Parser<'_>, Vec<Diagnostic>>
Expand description

Creates a new parser from a source string. Returns any buffered errors from lexing the initial token stream.