equal
deleted
inserted
replaced
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) { |