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

Class Raw::MacroDef

INTERNAL: Do not use. A Rust 2.0 style declarative macro definition.

For example:

pub macro vec_of_two($element:expr) {
    vec![$element, $element]
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getArgs

Gets the arguments of this macro def, if it exists.

getAttr

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

getBody

Gets the body of this macro def, if it exists.

getName

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

getNumberOfAttrs

Gets the number of attrs of this macro def.

getVisibility

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

toString

Inherited predicates

getAttributeMacroExpansion

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

from Item