src/jdk.compiler/share/classes/com/sun/source/util/TreeScanner.java
changeset 55306 ea43db53de91
parent 51563 de411d537aae
child 58109 ee07de0d2c16
child 58713 ad69fd32778e
equal deleted inserted replaced
55305:6e432194ee97 55306:ea43db53de91
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   465      * @param node  {@inheritDoc}
   465      * @param node  {@inheritDoc}
   466      * @param p  {@inheritDoc}
   466      * @param p  {@inheritDoc}
   467      * @return the result of scanning
   467      * @return the result of scanning
   468      */
   468      */
   469     @Override
   469     @Override
   470     @SuppressWarnings("removal")
       
   471     public R visitBreak(BreakTree node, P p) {
   470     public R visitBreak(BreakTree node, P p) {
   472         return scan(node.getValue(), p);
   471         return null;
   473     }
   472     }
   474 
   473 
   475     /**
   474     /**
   476      * {@inheritDoc} This implementation returns {@code null}.
   475      * {@inheritDoc} This implementation returns {@code null}.
   477      *
   476      *
   933      */
   932      */
   934     @Override
   933     @Override
   935     public R visitErroneous(ErroneousTree node, P p) {
   934     public R visitErroneous(ErroneousTree node, P p) {
   936         return null;
   935         return null;
   937     }
   936     }
       
   937 
       
   938     /**
       
   939      * {@inheritDoc} This implementation returns {@code null}.
       
   940      *
       
   941      * @param node  {@inheritDoc}
       
   942      * @param p  {@inheritDoc}
       
   943      * @return the result of scanning
       
   944      *
       
   945      * @deprecated
       
   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      */
       
   950     @Override
       
   951     @Deprecated(forRemoval=true, since="13")
       
   952     @SuppressWarnings("removal")
       
   953     public R visitYield(YieldTree node, P p) {
       
   954         return scan(node.getValue(), p);
       
   955     }
   938 }
   956 }