Skip to main content

Module function_emitter

Module function_emitter 

Source
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.stringify and JSON.parse compiler intrinsics.
mcp
Codegen for @mcp/<server>.<tool>(...) calls.
stmt

Structs§

FunctionEmitter

Enums§

ExprContext
ReturnTarget
Where a return in 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