MCPcopy Create free account
hub / github.com/dada-lang/dada / into_function

Method into_function

components/dada-codegen/src/cx/generate_expr.rs:55–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

codegen_fnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected