Expand description
FunctionEmitter — single-pass builder for the body of one Wasm function.
Modules§
- cast
- Box / unbox helpers — the unified mechanism for moving values
between language types and the universal
(ref $Object)slot type used by arrays,unknown, and erased generics. - expr
- Recursive emitter for typed expressions.
- json
- Codegen for the
JSON.stringifyandJSON.parsecompiler intrinsics. - mcp
- Codegen for
@mcp/<server>.<tool>(...)calls. - stmt
Structs§
Enums§
- Expr
Context - Return
Target - Where a
returnin a body coerces to. Exactly one applies to any body.
Functions§
- emit_
closure_ function - ABI:
(func (param (ref any) N×(ref $Object)) (result (ref $Object)?))— env at slot 0, every user param erased to(ref $Object), result erased. - emit_
function