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

Method def_fn

cranelift/reader/src/sourcemap.rs:178–180  ·  view source on GitHub ↗

Define the external function `entity`.

(&mut self, entity: FuncRef, loc: Location)

Source from the content-addressed store, hash-verified

176
177 /// Define the external function `entity`.
178 pub fn def_fn(&mut self, entity: FuncRef, loc: Location) -> ParseResult<()> {
179 self.def_entity(entity.into(), loc)
180 }
181
182 /// Define the jump table `entity`.
183 pub fn def_jt(&mut self, entity: JumpTable, loc: Location) -> ParseResult<()> {

Callers 1

add_fnMethod · 0.80

Calls 1

def_entityMethod · 0.80

Tested by

no test coverage detected