crates/oxc_ast_macros/README.md
Procedural macros for generating AST-related code and ensuring memory layout consistency.
This crate provides procedural macros that generate boilerplate code for AST nodes, ensuring consistent memory layout and providing derived traits automatically.
#[ast] attribute: Marks types as AST nodes and generates required traits#[repr(C)] for predictable memory layoutDebug, Clone, etc.#[ast] Macro Does#[repr(C)]: Ensures predictable memory layout across platformsThis macro system enables:
oxc_ast_tools to generate visitor codeThe macros are designed to be transparent and generate minimal, efficient code.