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

Class Raw::MacroPat

INTERNAL: Do not use. A macro pattern, representing the invocation of a macro that produces a pattern.

For example:

macro_rules! my_macro {
    () => {
        Ok(_)
    };
}
match x {
    my_macro!() => "matched",
//  ^^^^^^^^^^^
    _ => "not matched",
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getMacroCall

Gets the macro call of this macro pattern, if it exists.

toString