< prev index next >

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

Print this page
*** 741,10 ***
--- 741,19 ---
          } catch (IOException e) {
              throw new UncheckedIOException(e);
          }
      }
  
+     public void visitDefaultValue(JCDefaultValue tree) {
+         try {
+             printExpr(tree.clazz, TreeInfo.postfixPrec);
+             print(".default");
+         } catch (IOException e) {
+             throw new UncheckedIOException(e);
+         }
+     }
+ 
      public void visitDoLoop(JCDoWhileLoop tree) {
          try {
              print("do ");
              printStat(tree.body);
              align();

*** 777,10 ***
--- 786,22 ---
          } 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)) {
< prev index next >