src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java
changeset 55306 ea43db53de91
parent 52455 bbbc110cdffe
child 58109 ee07de0d2c16
child 58713 ad69fd32778e
equal deleted inserted replaced
55305:6e432194ee97 55306:ea43db53de91
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 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
   331         JCExpressionStatement tree = new JCExpressionStatement(expr);
   331         JCExpressionStatement tree = new JCExpressionStatement(expr);
   332         tree.pos = pos;
   332         tree.pos = pos;
   333         return tree;
   333         return tree;
   334     }
   334     }
   335 
   335 
   336     public JCBreak Break(JCExpression label) {
   336     public JCBreak Break(Name label) {
   337         JCBreak tree = new JCBreak(label, null);
   337         JCBreak tree = new JCBreak(label, null);
       
   338         tree.pos = pos;
       
   339         return tree;
       
   340     }
       
   341 
       
   342     public JCYield Yield(JCExpression value) {
       
   343         JCYield tree = new JCYield(value, null);
   338         tree.pos = pos;
   344         tree.pos = pos;
   339         return tree;
   345         return tree;
   340     }
   346     }
   341 
   347 
   342     public JCContinue Continue(Name label) {
   348     public JCContinue Continue(Name label) {