rustc_expand::mbe::transcribe

Function extract_symbol_from_pnr

source
fn extract_symbol_from_pnr<'a>(
    dcx: DiagCtxtHandle<'a>,
    pnr: &ParseNtResult,
    span_err: Span,
) -> PResult<'a, Symbol>
Expand description

Extracts an metavariable symbol that can be an identifier, a token tree or a literal.