CodeQL library for Rust
codeql/rust-all 0.2.12 (changelog, source)
Search

Class Raw::MacroRules

INTERNAL: Do not use. A macro definition using the macro_rules! syntax.

macro_rules! my_macro {
    () => {
        println!("This is a macro!");
    };
}

Import path

import codeql.rust.elements.internal.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this macro rules (0-based).

getName

Gets the name of this macro rules, if it exists.

getNumberOfAttrs

Gets the number of attrs of this macro rules.

getTokenTree

Gets the token tree of this macro rules, if it exists.

getVisibility

Gets the visibility of this macro rules, if it exists.

toString

Inherited predicates

getAttributeMacroExpansion

Gets the attribute macro expansion of this item, if it exists.

from Item