equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 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 |
138 } |
138 } |
139 |
139 |
140 @DefinedBy(Api.COMPILER_TREE) |
140 @DefinedBy(Api.COMPILER_TREE) |
141 public JCTree visitBreak(BreakTree node, P p) { |
141 public JCTree visitBreak(BreakTree node, P p) { |
142 JCBreak t = (JCBreak) node; |
142 JCBreak t = (JCBreak) node; |
|
143 return M.at(t.pos).Break(t.label); |
|
144 } |
|
145 |
|
146 @DefinedBy(Api.COMPILER_TREE) |
|
147 @SuppressWarnings("removal") |
|
148 public JCTree visitYield(YieldTree node, P p) { |
|
149 JCYield t = (JCYield) node; |
143 JCExpression value = copy(t.value, p); |
150 JCExpression value = copy(t.value, p); |
144 return M.at(t.pos).Break(value); |
151 return M.at(t.pos).Yield(value); |
145 } |
152 } |
146 |
153 |
147 @DefinedBy(Api.COMPILER_TREE) |
154 @DefinedBy(Api.COMPILER_TREE) |
148 public JCTree visitCase(CaseTree node, P p) { |
155 public JCTree visitCase(CaseTree node, P p) { |
149 JCCase t = (JCCase) node; |
156 JCCase t = (JCCase) node; |