Skip to main content

Module ast

Module ast 

Source

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.
ConstDef
EventDef
EventField
File
A parsed .tri file — either a program or a library module.
FnDef
MatchArm
A single arm in a match statement.
ModulePath
A dotted module path, e.g. std.hash["std", "hash"].
Param
StructDef
StructField
StructPatternField
A field in a struct destructuring pattern.

Enums§

ArraySize
Array size: a compile-time expression over literals and generic size parameters.
BinOp
Declaration
Program I/O declarations.
Expr
Expressions.
FieldPattern
What a struct pattern field matches against.
FileKind
Item
Top-level items in a module.
Literal
MatchPattern
A pattern in a match arm.
Pattern
A binding pattern for let statements.
Place
L-value places (can appear on left side of assignment).
Stmt
Statements.
Type
Syntactic types (as written in source).