< prev index next >

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

Print this page
@@ -196,10 +196,17 @@
      public JCTree visitContinue(ContinueTree node, P p) {
          JCContinue t = (JCContinue) node;
          return M.at(t.pos).Continue(t.label);
      }
  
+     @DefinedBy(Api.COMPILER_TREE)
+     public JCTree visitDefaultValue(DefaultValueTree node, P p) {
+         JCDefaultValue t = (JCDefaultValue) node;
+         JCExpression clazz = copy(t.clazz, p);
+         return M.at(t.pos).DefaultValue(clazz);
+     }
+ 
      @DefinedBy(Api.COMPILER_TREE)
      public JCTree visitDoWhileLoop(DoWhileLoopTree node, P p) {
          JCDoWhileLoop t = (JCDoWhileLoop) node;
          JCStatement body = copy(t.body, p);
          JCExpression cond = copy(t.cond, p);

@@ -240,11 +247,12 @@
      }
  
      @DefinedBy(Api.COMPILER_TREE)
      public JCTree visitIdentifier(IdentifierTree node, P p) {
          JCIdent t = (JCIdent) node;
-         return M.at(t.pos).Ident(t.name);
+         JCIdent ident = M.at(t.pos).Ident(t.name);
+         return ident;
      }
  
      @DefinedBy(Api.COMPILER_TREE)
      public JCTree visitIf(IfTree node, P p) {
          JCIf t = (JCIf) node;

@@ -356,11 +364,12 @@
  
      @DefinedBy(Api.COMPILER_TREE)
      public JCTree visitMemberSelect(MemberSelectTree node, P p) {
          JCFieldAccess t = (JCFieldAccess) node;
          JCExpression selected = copy(t.selected, p);
-         return M.at(t.pos).Select(selected, t.name);
+         JCFieldAccess select = M.at(t.pos).Select(selected, t.name);
+         return select;
      }
  
      @DefinedBy(Api.COMPILER_TREE)
      public JCTree visitMemberReference(MemberReferenceTree node, P p) {
          JCMemberReference t = (JCMemberReference) node;

@@ -545,10 +554,18 @@
          JCStatement body = copy(t.body, p);
          JCExpression cond = copy(t.cond, p);
          return M.at(t.pos).WhileLoop(cond, body);
      }
  
+     @DefinedBy(Api.COMPILER_TREE)
+     public JCTree visitWithField(WithFieldTree node, P p) {
+         JCWithField t = (JCWithField) node;
+         JCExpression field = copy(t.field, p);
+         JCExpression value = copy(t.value, p);
+         return M.at(t.pos).WithField(field, value);
+     }
+ 
      @DefinedBy(Api.COMPILER_TREE)
      public JCTree visitWildcard(WildcardTree node, P p) {
          JCWildcard t = (JCWildcard) node;
          TypeBoundKind kind = M.at(t.kind.pos).TypeBoundKind(t.kind.kind);
          JCTree inner = copy(t.inner, p);
< prev index next >