MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / emit_const

Method emit_const

compiler/src/modules/parser/mod.rs:135–138  ·  view source on GitHub ↗
(&mut self, v: Value)

Source from the content-addressed store, hash-verified

133 }
134
135 pub(super) fn emit_const(&mut self, v: Value) {
136 let i = self.chunk.push_const(v);
137 self.chunk.emit(OpCode::LoadConst, i);
138 }
139
140 /* Emit a jump with a placeholder operand; returns its instruction index for later patching. */
141 pub(super) fn emit_jump(&mut self, op: OpCode) -> usize {

Callers 4

comprehension_loopMethod · 0.80
fstringMethod · 0.80
parse_atomMethod · 0.80
parse_numberMethod · 0.80

Calls 2

push_constMethod · 0.80
emitMethod · 0.80

Tested by

no test coverage detected