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

Unified Diff: frog/leg/elements/elements.dart

Issue 9632018: Switch-implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Finished implementation 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
« no previous file with comments | « no previous file | frog/leg/lib/js_helper.dart » ('j') | frog/leg/lib/js_helper.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/elements/elements.dart
diff --git a/frog/leg/elements/elements.dart b/frog/leg/elements/elements.dart
index 7c527ebdc9ba18df1d38e9e8803afd31c4d86d2a..e60e0c9a39dbd2116072ff6187f8ee8b67edf73e 100644
--- a/frog/leg/elements/elements.dart
+++ b/frog/leg/elements/elements.dart
@@ -861,5 +861,15 @@ class StatementElement extends Element {
return result;
}
+ String implicitLabel() => null;
+
Node parseNode(DiagnosticListener l) => statement;
ahe 2012/03/09 13:58:32 Unrelated note: I think it would be nice if you ov
Lasse Reichstein Nielsen 2012/03/12 13:05:23 Done.
}
+
+class SwitchStatementElement extends StatementElement {
Lasse Reichstein Nielsen 2012/03/12 13:05:23 Folded this into StatementElement, using nesting-l
+ final String uniqueId;
+ SwitchStatementElement(Statement statement, Element enclosingElement,
+ int implicitId)
+ : uniqueId = "$implicitId", super(statement, enclosingElement);
+ String implicitLabel() => uniqueId;
+}
« no previous file with comments | « no previous file | frog/leg/lib/js_helper.dart » ('j') | frog/leg/lib/js_helper.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698