OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 package com.google.dart.compiler.resolver; | 5 package com.google.dart.compiler.resolver; |
6 | 6 |
7 public interface LabelElement extends Element { | 7 public interface LabelElement extends Element { |
| 8 |
| 9 public enum LabeledStatementType { |
| 10 STATEMENT, |
| 11 SWITCH_MEMBER_STATEMENT, |
| 12 SWITCH_STATEMENT, |
| 13 } |
| 14 |
8 /** | 15 /** |
9 * Returns the innermost function where this label is defined. | 16 * Returns the innermost function where this label is defined. |
10 */ | 17 */ |
11 public MethodElement getEnclosingFunction(); | 18 public MethodElement getEnclosingFunction(); |
| 19 |
| 20 public LabeledStatementType getStatementType(); |
12 } | 21 } |
OLD | NEW |