src/jdk.compiler/share/classes/com/sun/source/util/TreeScanner.java
branchJDK-8226585-branch
changeset 58440 4c8a6d1d066c
parent 58109 ee07de0d2c16
equal deleted inserted replaced
58342:ebb1ff3d6707 58440:4c8a6d1d066c
   333         r = scanAndReduce(node.getCases(), p, r);
   333         r = scanAndReduce(node.getCases(), p, r);
   334         return r;
   334         return r;
   335     }
   335     }
   336 
   336 
   337     /**
   337     /**
   338      * {@inheritDoc} This implementation scans the children in left to right order.
   338      * {@preview Associated with switch expressions, a preview feature of
   339      *
   339      *           the Java language.
   340      * @param node  {@inheritDoc}
   340      *
   341      * @param p  {@inheritDoc}
   341      *           This method is associated with <i>switch expressions</i>, a preview
   342      * @return the result of scanning
   342      *           feature of the Java language. Preview features
   343      *
   343      *           may be removed in a future release, or upgraded to permanent
   344      * @preview
   344      *           features of the Java language.}
   345      * This method is modeling switch expressions,
   345      *
   346      * which are part of a preview feature and may be removed
   346      * {@inheritDoc} This implementation scans the children in left to right order.
   347      * if the preview feature is removed.
   347      *
       
   348      * @param node  {@inheritDoc}
       
   349      * @param p  {@inheritDoc}
       
   350      * @return the result of scanning
   348      */
   351      */
   349     @Override
   352     @Override
   350     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
   353     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
   351     @SuppressWarnings("preview")
   354     @SuppressWarnings("preview")
   352     public R visitSwitchExpression(SwitchExpressionTree node, P p) {
   355     public R visitSwitchExpression(SwitchExpressionTree node, P p) {
   934     public R visitErroneous(ErroneousTree node, P p) {
   937     public R visitErroneous(ErroneousTree node, P p) {
   935         return null;
   938         return null;
   936     }
   939     }
   937 
   940 
   938     /**
   941     /**
       
   942      * {@preview Associated with switch expressions, a preview feature of
       
   943      *           the Java language.
       
   944      *
       
   945      *           This method is associated with <i>switch expressions</i>, a preview
       
   946      *           feature of the Java language. Preview features
       
   947      *           may be removed in a future release, or upgraded to permanent
       
   948      *           features of the Java language.}
       
   949      *
   939      * {@inheritDoc} This implementation returns {@code null}.
   950      * {@inheritDoc} This implementation returns {@code null}.
   940      *
   951      *
   941      * @param node  {@inheritDoc}
   952      * @param node  {@inheritDoc}
   942      * @param p  {@inheritDoc}
   953      * @param p  {@inheritDoc}
   943      * @return the result of scanning
   954      * @return the result of scanning
   944      *
       
   945      * @preview
       
   946      * This method is modeling switch expressions,
       
   947      * which are part of a preview feature and may be removed
       
   948      * if the preview feature is removed.
       
   949      */
   955      */
   950     @Override
   956     @Override
   951     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
   957     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
   952     @SuppressWarnings("preview")
   958     @SuppressWarnings("preview")
   953     public R visitYield(YieldTree node, P p) {
   959     public R visitYield(YieldTree node, P p) {