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

Unified Diff: pkg/fasta/test/rasta/switch_fall_through.dart.direct.expect

Issue 2650913007: Import rasta tests. (Closed)
Patch Set: Address comment. Created 3 years, 11 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: pkg/fasta/test/rasta/switch_fall_through.dart.direct.expect
diff --git a/pkg/fasta/test/rasta/switch_fall_through.dart.direct.expect b/pkg/fasta/test/rasta/switch_fall_through.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..060c252c33ee11b5ac77cc7442dd2b680fcbdde8
--- /dev/null
+++ b/pkg/fasta/test/rasta/switch_fall_through.dart.direct.expect
@@ -0,0 +1,56 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ #L1:
+ switch(1) {
+ #L2:
+ case 1:
+ {
+ "No fall-through error needed.";
+ break #L1;
+ ;
+ }
+ #L3:
+ case 2:
+ {
+ {
+ "Fall-through error needed.";
+ if(true) {
+ break #L1;
+ }
+ }
+ throw core::_fallThroughError();
+ }
+ #L4:
+ case 3:
+ try {
+ "No fall-through error needed.";
+ }
+ finally {
+ break #L1;
+ }
+ #L5:
+ case 4:
+ try {
+ "No fall-through error needed.";
+ break #L1;
+ }
+ finally {
+ }
+ #L6:
+ case 5:
+ {
+ try {
+ "Fall-through error needed.";
+ }
+ finally {
+ }
+ throw core::_fallThroughError();
+ }
+ #L7:
+ case 10000:
+ "Should be last. No fall-through error, falling through allowed here.";
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698