equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 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 |
375 public void visitBreak(JCBreak tree) { |
375 public void visitBreak(JCBreak tree) { |
376 SourceRange sr = new SourceRange(startPos(tree), endPos(tree)); |
376 SourceRange sr = new SourceRange(startPos(tree), endPos(tree)); |
377 result = sr; |
377 result = sr; |
378 } |
378 } |
379 |
379 |
|
380 public void visitYield(JCYield tree) { |
|
381 SourceRange sr = new SourceRange(startPos(tree), endPos(tree)); |
|
382 result = sr; |
|
383 } |
|
384 |
380 public void visitContinue(JCContinue tree) { |
385 public void visitContinue(JCContinue tree) { |
381 SourceRange sr = new SourceRange(startPos(tree), endPos(tree)); |
386 SourceRange sr = new SourceRange(startPos(tree), endPos(tree)); |
382 result = sr; |
387 result = sr; |
383 } |
388 } |
384 |
389 |