(self)
| 53 | } |
| 54 | |
| 55 | pub fn into_function(self) -> wasm_encoder::Function { |
| 56 | let mut f = wasm_encoder::Function::new_with_locals_types(self.wasm_locals); |
| 57 | for instruction in self.instructions { |
| 58 | f.instruction(&instruction); |
| 59 | } |
| 60 | f |
| 61 | } |
| 62 | |
| 63 | /// Returns the [`WasmRepr`][] for a Dada type. |
| 64 | pub fn wasm_repr_of_type(&self, ty: SymTy<'db>) -> WasmRepr { |