Skip to main content

Module ast

Module ast 

Source
Expand description

A typed-ast layer

Structs§

BinaryExpr
Binary operation expression in the abstract syntax tree.
BlockExpr
Block expression in the abstract syntax tree.
Break
Break statement in the abstract syntax tree.
CatchArm
A single catch arm in a try-catch expression.
CatchType
Exception type specification for catch arms.
ChainExpr
Method chaining expression in the abstract syntax tree.
Class
Class declaration/expression in the abstract syntax tree.
Continue
Continue statement in the abstract syntax tree.
ElseBranch
A single else or else-if branch in an if expression.
Enum
Enum declaration/expression in the abstract syntax tree.
EnumVariant
A single variant in an enum definition.
EnumVariantField
A named field within an enum variant.
ForLoop
For loop expression in the abstract syntax tree.
Function
Function declaration/expression in the abstract syntax tree.
FunctionItem
Function declaration/expression in the abstract syntax tree.
FunctionSignature
Function signature specification.
Ident
An identifier in the abstract syntax tree.
IfElse
If expression in the abstract syntax tree.
ImportStmt
Import statement in the abstract syntax tree.
Literal
Simplified literal representation in the abstract syntax tree.
Match
Match expression in the abstract syntax tree.
MatchArm
A single arm in a match expression.
MemberConstructions
Collection of member constructions for classes, traits, and enums.
Modifiers
Represents various modifiers that can be applied to functions, classes, variables, and other declarations to control their visibility, accessibility, and behavior.
Parameter
Function parameter specification.
ParenExpr
Parenthesized expression in the abstract syntax tree.
Return
Return statement in the abstract syntax tree.
Throw
Throw statement in the abstract syntax tree.
Trait
Trait declaration/expression in the abstract syntax tree.
TraitImpl
Trait implementation block.
TryCatch
Try-catch expression in the abstract syntax tree.
TypeAlias
Type alias declaration/expression in the abstract syntax tree.
UnaryExpr
Unary operation expression in the abstract syntax tree.
VariableStmt
Variable declaration/expression in the abstract syntax tree.
While
While loop expression in the abstract syntax tree.

Enums§

BinaryOp
Binary operators available in expressions.
Expr
Core AST expression enum - simplified and semantic.
MatchPat
MatchPat for matching in match expressions and other MatchPat contexts.
Type
Type representation in the abstract syntax tree.
UnaryOp
Unary operators available in expressions.
Value

Traits§

Span
A trait for types that have a defined textual span within the source code.
ToAst
Converts a concrete syntax tree (CST) node to its corresponding abstract syntax tree (AST) representation.