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

Method emit_jump

compiler/src/modules/parser/mod.rs:141–144  ·  view source on GitHub ↗

Emit a jump with a placeholder operand; returns its instruction index for later patching. */

(&mut self, op: OpCode)

Source from the content-addressed store, hash-verified

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 {
142 self.chunk.emit(op, 0);
143 self.chunk.instructions.len() - 1
144 }
145
146 pub(super) fn store_name(&mut self, name: String) {
147 if self.globals_decl.contains(&name) {

Callers 14

stmtMethod · 0.80
emit_yieldMethod · 0.80
comprehension_loopMethod · 0.80
if_bodyMethod · 0.80
match_stmtMethod · 0.80
parse_patternMethod · 0.80
parse_simple_patternMethod · 0.80
while_stmtMethod · 0.80
for_stmt_innerMethod · 0.80
try_stmtMethod · 0.80
with_stmt_innerMethod · 0.80

Calls 2

emitMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected