Expand description
cyrs-ast — typed AST wrappers over the CST (spec 0001 §5).
AST nodes are zero-cost wrappers around cyrs_syntax::SyntaxNode.
A node’s methods navigate the underlying tree; no duplication, no
allocation. Per §5.2, the bulk of wrappers is generated from a
grammar description by a dev-only xtask; the output lives in the
checked-in generated module and is regenerated by
cargo xtask codegen.
Re-exports§
pub use generated::*;
Modules§
Structs§
- MapProjection
Item - Typed wrapper for one item inside a
MapProjection.
Enums§
- MapProjection
Item Kind - The four shapes a map-projection item can take.
Traits§
- AstNode
- Trait every typed AST wrapper conforms to. Modelled after the
rust-analyzer
AstNodepattern. Thegeneratedmodule emits plaincast/syntaxmethods directly (matching the spec §5.1 shape); this trait is the portable handle hand-written or macro-based wrappers use.