Patch a jump to an explicit target; bounds-safe so instruction overflow (`emit` freezes at MAX_INSTRUCTIONS) can't panic on a stale index. */
(&mut self, pos: usize, target: u16)
| 387 | |
| 388 | /* Patch a jump to an explicit target; bounds-safe so instruction overflow (`emit` freezes at MAX_INSTRUCTIONS) can't panic on a stale index. */ |
| 389 | pub(super) fn patch_to(&mut self, pos: usize, target: u16) { |
| 390 | if let Some(ins) = self.chunk.instructions.get_mut(pos) { ins.operand = target; } |
| 391 | } |
| 392 | |
| 393 | /* Consumes kind or emits diagnostic; for missing closers anchors at opener and drops cascade. */ |
| 394 | pub(super) fn eat(&mut self, kind: TokenType) { |
no test coverage detected