(&mut self, ir_program: &mut IrProgram, block: &Block)
| 39 | statements: rewrite_continue_with_step(&then_block.statements, step), |
| 40 | stmt_lines: then_block.stmt_lines.clone(), |
| 41 | }, |
| 42 | else_branch: else_branch |
| 43 | .as_ref() |
| 44 | .map(|branch| Box::new(rewrite_stmt(branch, step))), |
| 45 | }, |
| 46 | // Nested `while`/`for` own their own `continue`; do not descend. |
| 47 | other => other.clone(), |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | impl HighLevelCompiler { |
| 52 | pub(super) fn lower_block(&mut self, ir_program: &mut IrProgram, block: &Block) { |
| 53 | for (index, statement) in block.statements.iter().enumerate() { |
| 54 | if let Some(b) = &self.current_block |
| 55 | && b.terminator.is_some() |
| 56 | { |
no test coverage detected