Skip to main content

extra

Attribute Macro extra 

Source
#[extra]
Expand description

This annotation marks a node as extra, which can safely be skipped while parsing. This is useful for handling whitespace/newlines/comments.

§Example

#[adze::extra]
struct Whitespace {
    #[adze::leaf(pattern = r"\s")]
    _whitespace: (),
}