toWasm static method
Returns this as a WASM canonical abi value.
Implementation
static (int, Object?) toWasm(ExternType value) => switch (value) {
MemoryType() => (0, value.toWasm()),
TableType() => (1, value.toWasm()),
GlobalType() => (2, value.toWasm()),
FunctionType() => (3, value.toWasm()),
TagType() => (4, value.toWasm()),
};