rustc_expand::mbe::macro_rules

Function compile_declarative_macro

Source
pub fn compile_declarative_macro(
    sess: &Session,
    features: &Features,
    macro_def: &MacroDef,
    ident: Ident,
    attrs: &[impl AttributeExt],
    span: Span,
    node_id: NodeId,
    edition: Edition,
) -> (SyntaxExtension, Vec<(usize, Span)>)
Expand description

Converts a macro item into a syntax extension.