< prev index next >

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

Print this page

        

*** 283,292 **** --- 283,306 ---- * @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);
< prev index next >