Skip to main content

emit_test_body

Function emit_test_body 

Source
pub fn emit_test_body(
    body: &Block,
    actions: &HashMap<String, u32>,
    dispatch_func_idx: u32,
    init_func_idx: u32,
    ctx: &mut FuncContext,
    f: &mut Function,
) -> CodegenResult<()>
Expand description

Compile a single test body into WASM instructions.

Emits:

  1. call init — reset state to defaults
  2. Compiled test body statements