MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / visit_ref_null

Method visit_ref_null

crates/parser/src/visit.rs:423–430  ·  view source on GitHub ↗

Reference Types

(&mut self, ty: wasmparser::HeapType)

Source from the content-addressed store, hash-verified

421
422 // Reference Types
423 fn visit_ref_null(&mut self, ty: wasmparser::HeapType) -> Self::Output {
424 match convert_heaptype(ty) {
425 Ok(ty) => self.instructions.push(Instruction::RefNull(ty)),
426 Err(err) => {
427 self.error.get_or_insert(err);
428 }
429 };
430 }
431
432 fn visit_typed_select_multi(&mut self, tys: Vec<wasmparser::ValType>) -> Self::Output {
433 let (c32, c64, c128) = Self::label_keep_counts(&tys);

Callers

nothing calls this directly

Calls 2

convert_heaptypeFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected