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

Method def_constant

cranelift/reader/src/sourcemap.rs:188–190  ·  view source on GitHub ↗

Define the jump table `entity`.

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

Source from the content-addressed store, hash-verified

186
187 /// Define the jump table `entity`.
188 pub fn def_constant(&mut self, entity: Constant, loc: Location) -> ParseResult<()> {
189 self.def_entity(entity.into(), loc)
190 }
191
192 /// Define an entity. This can be used for instructions whose numbers never
193 /// appear in source, or implicitly defined signatures.

Callers 1

add_constantMethod · 0.80

Calls 1

def_entityMethod · 0.80

Tested by

no test coverage detected