(reftype: wasmparser::RefType)
| 204 | } |
| 205 | |
| 206 | pub(crate) fn convert_reftype(reftype: wasmparser::RefType) -> Result<WasmType> { |
| 207 | match reftype { |
| 208 | _ if reftype.is_func_ref() => Ok(WasmType::RefFunc), |
| 209 | _ if reftype.is_extern_ref() => Ok(WasmType::RefExtern), |
| 210 | _ => Err(crate::ParseError::UnsupportedOperator(format!( |
| 211 | "Unsupported reference type: {reftype:?}, {:?}", |
| 212 | reftype.heap_type() |
| 213 | ))), |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | pub(crate) fn convert_valtype(valtype: &wasmparser::ValType) -> Result<WasmType> { |
| 218 | match valtype { |
no outgoing calls
no test coverage detected