< prev index next >

src/jdk.compiler/share/classes/com/sun/source/util/TreeScanner.java

Print this page
@@ -312,10 +312,24 @@
       * @param node  {@inheritDoc}
       * @param p  {@inheritDoc}
       * @return the result of scanning
       */
      @Override
+     public R visitWithField(WithFieldTree node, P p) {
+         R r = scan(node.getField(), p);
+         r = scanAndReduce(node.getValue(), p, r);
+         return r;
+     }
+ 
+     /**
+      * {@inheritDoc} This implementation scans the children in left to right order.
+      *
+      * @param node  {@inheritDoc}
+      * @param p  {@inheritDoc}
+      * @return the result of scanning
+      */
+     @Override
      public R visitForLoop(ForLoopTree node, P p) {
          R r = scan(node.getInitializer(), p);
          r = scanAndReduce(node.getCondition(), p, r);
          r = scanAndReduce(node.getUpdate(), p, r);
          r = scanAndReduce(node.getStatement(), p, r);

@@ -406,10 +420,22 @@
  
      /**
       * {@inheritDoc}
       *
       * @implSpec This implementation scans the children in left to right order.
+      *
+      * @param node  {@inheritDoc}
+      * @param p  {@inheritDoc}
+      * @return the result of scanning
+      */
+     @Override
+     public R visitDefaultValue(DefaultValueTree node, P p) {
+         return scan(node.getType(), p);
+     }
+ 
+     /**
+      * {@inheritDoc} This implementation scans the children in left to right order.
       *
       * @param node  {@inheritDoc}
       * @param p  {@inheritDoc}
       * @return the result of scanning
       */
< prev index next >