[][src]Function rustc_parse::maybe_new_parser_from_source_str

pub fn maybe_new_parser_from_source_str(
    sess: &ParseSess,
    name: FileName,
    source: String
) -> Result<Parser, Vec<Diagnostic>>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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