Expand description
Helper types for expressions in Shape AST
Structs§
- Assign
Expr - Assignment expression that returns the assigned value
- Async
LetExpr - Async let expression:
async let name = exprSpawns a task and binds a future handle to a local variable. - Block
Expr - Block expression containing multiple statements
- Comprehension
Clause - A clause in a list comprehension
- Comptime
ForExpr - 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
- From
Query Expr - LINQ-style from query expression Syntax: from var in source [clauses…] select expr
- IfExpr
- If expression that returns a value
- Join
Branch - A branch in a join expression
- Join
Expr - Join expression:
join all|race|any|settle { branch, ... } - LetExpr
- Let binding expression
- List
Comprehension - List comprehension expression
- Loop
Expr - Loop expression (infinite loop with break)
- Match
Arm - Match arm
- Match
Expr - Match expression
- Order
BySpec - Order specification for order by clause
- While
Expr - While expression that returns a value
Enums§
- Block
Item - An item in a block expression
- Join
Kind - Join strategy for async join expressions
- Query
Clause - Query clause in a from expression