Emit a jump with a placeholder operand; returns its instruction index for later patching. */
(&mut self, op: OpCode)
| 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) { |
no test coverage detected