@Override public Boolean caseRichStringForLoop(RichStringForLoop object) { ForLoopStart start = factory.createForLoopStart(); start.setLoop(object); addToCurrentLine(start); doSwitch(object.getEachExpression()); ForLoopEnd end = factory.createForLoopEnd(); end.setStart(start); addToCurrentLine(end); return Boolean.TRUE; }
@Override public Boolean caseForLoopEnd(ForLoopEnd object) { popIndentationTwice(); acceptor.acceptEndFor( object.getStart().getLoop().getAfter(), indentationHandler.getTotalSemanticIndentation()); computeNextPart(object); return Boolean.TRUE; }