MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / declare_anonymous_function

Method declare_anonymous_function

cranelift/module/src/module.rs:764–774  ·  view source on GitHub ↗

Declare an anonymous function in this module.

(
        &mut self,
        signature: &ir::Signature,
    )

Source from the content-addressed store, hash-verified

762
763 /// Declare an anonymous function in this module.
764 pub fn declare_anonymous_function(
765 &mut self,
766 signature: &ir::Signature,
767 ) -> ModuleResult<FuncId> {
768 let id = self.functions.push(FunctionDeclaration {
769 name: None,
770 linkage: Linkage::Local,
771 signature: signature.clone(),
772 });
773 Ok(id)
774 }
775
776 /// Declare a data object in this module.
777 pub fn declare_data(

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
pushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected