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

Unified Diff: pkg/front_end/testcases/inference/switch_continue.dart.strong.expect

Issue 2962583002: Add type inference for break and continue statements. (Closed)
Patch Set: Created 3 years, 6 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/front_end/testcases/inference/switch_continue.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/switch_continue.dart.strong.expect b/pkg/front_end/testcases/inference/switch_continue.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..9a02ec6307930de76d792aef446047944979b621
--- /dev/null
+++ b/pkg/front_end/testcases/inference/switch_continue.dart.strong.expect
@@ -0,0 +1,22 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method test(core::int x, () → void f) → void {
+ #L1:
+ switch(x) {
+ #L2:
+ case 0:
+ {
+ f.call();
+ continue #L3;
+ }
+ #L3:
+ case 1:
+ {
+ f.call();
+ break #L1;
+ }
+ }
+}
+static method main() → dynamic {}
« no previous file with comments | « pkg/front_end/testcases/inference/switch_continue.dart.outline.expect ('k') | pkg/front_end/testcases/kompile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698