MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / emit_constant

Method emit_constant

aiscript-vm/src/compiler/codegen.rs:1585–1588  ·  view source on GitHub ↗
(&mut self, value: Value<'gc>)

Source from the content-addressed store, hash-verified

1583 }
1584
1585 fn emit_constant(&mut self, value: Value<'gc>) {
1586 let constant = self.make_constant(value);
1587 self.emit(OpCode::Constant(constant as u8));
1588 }
1589
1590 fn emit_return(&mut self) {
1591 if self.fn_type == FunctionType::Constructor {

Callers 2

generate_exprMethod · 0.80
generate_matchMethod · 0.80

Calls 2

make_constantMethod · 0.80
emitMethod · 0.80

Tested by

no test coverage detected