private void printForInit(ForInit s, CodeWriter w, PrettyPrinter tr, boolean printType) { boolean oldSemiColon = tr.appendSemicolon(false); boolean oldPrintType = tr.printType(printType); printBlock(s, w, tr); tr.printType(oldPrintType); tr.appendSemicolon(oldSemiColon); }
private void printForUpdate(ForUpdate s, CodeWriter w, PrettyPrinter tr) { boolean oldSemiColon = tr.appendSemicolon(false); printBlock(s, w, tr); tr.appendSemicolon(oldSemiColon); }