Skip to main content

emit_expr

Function emit_expr 

Source
pub fn emit_expr(
    emitter: &mut FunctionEmitter<'_>,
    ctx: &CodegenCtx<'_>,
    id: ExprId,
) -> Result<(), CompilerFailure>
Expand description

Emit code for the expression at id, leaving its result on the Wasm stack. Records the expression’s source span against the emitter so the DWARF wiring task can recover instruction-offset → source-position mappings later.