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

Class Raw::MacroItems

INTERNAL: Do not use. A sequence of items generated by a macro. For example:

mod foo{
    include!("common_definitions.rs");

    #[an_attribute_macro]
    fn foo() {
        println!("Hello, world!");
    }

    #[derive(Debug)]
    struct Bar;
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getItem

Gets the indexth item of this macro items (0-based).

getNumberOfItems

Gets the number of items of this macro items.

toString