< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java

Print this page

        

*** 761,770 **** --- 761,782 ---- } catch (IOException e) { throw new UncheckedIOException(e); } } + public void visitWithField(JCWithField tree) { + try { + print("__WithField("); + printExpr(tree.field); + print(", "); + printExpr(tree.value); + print(")"); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + } + public void visitForLoop(JCForLoop tree) { try { print("for ("); if (tree.init.nonEmpty()) { if (tree.init.head.hasTag(VARDEF)) {
*** 1304,1313 **** --- 1316,1327 ---- public void visitSelect(JCFieldAccess tree) { try { printExpr(tree.selected, TreeInfo.postfixPrec); print("." + tree.name); + if (tree.isQuestioned()) + print('?'); } catch (IOException e) { throw new UncheckedIOException(e); } }
*** 1327,1336 **** --- 1341,1352 ---- } public void visitIdent(JCIdent tree) { try { print(tree.name); + if (tree.isQuestioned()) + print('?'); } catch (IOException e) { throw new UncheckedIOException(e); } }
*** 1449,1458 **** --- 1465,1476 ---- try { printExpr(tree.clazz); print("<"); printExprs(tree.arguments); print(">"); + if (tree.isQuestioned()) + print('?'); } catch (IOException e) { throw new UncheckedIOException(e); } }
< prev index next >