Skip to main content

Module expr_helpers

Module expr_helpers 

Source
Expand description

Helper types for expressions in Shape AST

Structs§

AssignExpr
Assignment expression that returns the assigned value
AsyncLetExpr
Async let expression: async let name = expr Spawns a task and binds a future handle to a local variable.
BlockExpr
Block expression containing multiple statements
ComprehensionClause
A clause in a list comprehension
ComptimeForExpr
Compile-time for loop: comptime for field in target.fields { ... } Unrolled at compile time — each iteration generates code with the loop variable substituted for the concrete field descriptor.
ForExpr
For expression that returns a value
FromQueryExpr
LINQ-style from query expression Syntax: from var in source [clauses…] select expr
IfExpr
If expression that returns a value
JoinBranch
A branch in a join expression
JoinExpr
Join expression: join all|race|any|settle { branch, ... }
LetExpr
Let binding expression
ListComprehension
List comprehension expression
LoopExpr
Loop expression (infinite loop with break)
MatchArm
Match arm
MatchExpr
Match expression
OrderBySpec
Order specification for order by clause
WhileExpr
While expression that returns a value

Enums§

BlockItem
An item in a block expression
JoinKind
Join strategy for async join expressions
QueryClause
Query clause in a from expression