Modules§
- display
- Pretty-printing utilities for AST nodes.
- navigate
- AST navigation: find functions by name or content hash.
Structs§
- Block
- A block of statements with an optional trailing expression.
- Const
Def - Event
Def - Event
Field - File
- A parsed
.trifile — either a program or a library module. - FnDef
- Match
Arm - A single arm in a match statement.
- Module
Path - A dotted module path, e.g.
std.hash→["std", "hash"]. - Param
- Struct
Def - Struct
Field - Struct
Pattern Field - A field in a struct destructuring pattern.
Enums§
- Array
Size - Array size: a compile-time expression over literals and generic size parameters.
- BinOp
- Declaration
- Program I/O declarations.
- Expr
- Expressions.
- Field
Pattern - What a struct pattern field matches against.
- File
Kind - Item
- Top-level items in a module.
- Literal
- Match
Pattern - A pattern in a match arm.
- Pattern
- A binding pattern for
letstatements. - Place
- L-value places (can appear on left side of assignment).
- Stmt
- Statements.
- Type
- Syntactic types (as written in source).