< prev index next >

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

Print this page

        

@@ -761,10 +761,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)) {

@@ -1304,10 +1316,12 @@
 
     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,10 +1341,12 @@
     }
 
     public void visitIdent(JCIdent tree) {
         try {
             print(tree.name);
+            if (tree.isQuestioned())
+                print('?');
         } catch (IOException e) {
             throw new UncheckedIOException(e);
         }
     }
 

@@ -1449,10 +1465,12 @@
         try {
             printExpr(tree.clazz);
             print("<");
             printExprs(tree.arguments);
             print(">");
+            if (tree.isQuestioned())
+                print('?');
         } catch (IOException e) {
             throw new UncheckedIOException(e);
         }
     }
 
< prev index next >