Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/LabelElement.java

Issue 10725002: Validate the target of break and continue statments from within a switch (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: # Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698