/** * Shortcut method which avoids duplicating code for every type of loop. * Actually wraps the loopBlock of different types of loop statements. */ private void visitLoop(LoopingStatement loopStatement) { Statement statement = loopStatement.getLoopBlock(); loopStatement.setLoopBlock(wrapBlock(statement)); }
/** * Shortcut method which avoids duplicating code for every type of loop. * Actually wraps the loopBlock of different types of loop statements. */ private void visitLoop(LoopingStatement loopStatement) { Statement statement = loopStatement.getLoopBlock(); loopStatement.setLoopBlock(wrapBlock(statement)); }