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

Unified Diff: frog/leg/warnings.dart

Issue 9632018: Switch-implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add missing handling of default in unparser. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: frog/leg/warnings.dart
diff --git a/frog/leg/warnings.dart b/frog/leg/warnings.dart
index 20f4d57089e6a341a74d9c032dac51304c31134a..973e609794237ab5fe525f17f3478e9763dee1cf 100644
--- a/frog/leg/warnings.dart
+++ b/frog/leg/warnings.dart
@@ -116,8 +116,12 @@ class MessageKind {
'unused label #{1}');
static final INVALID_CONTINUE = const MessageKind(
'target of continue is not a loop or switch case');
+ static final INVALID_BREAK = const MessageKind(
+ 'target of break is not a statement');
static final INVALID_USE_OF_SUPER = const MessageKind(
'super not allowed here');
+ static final INVALID_CASE_DEFAULT = const MessageKind(
+ 'default only allowed on last case of a switch');
static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
'not a compile-time constant');

Powered by Google App Engine
This is Rietveld 408576698