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

Side by Side Diff: pkg/front_end/testcases/rasta/switch_execution_case_t02.dart.dartk.expect

Issue 2980883003: Remove code associated with the old "kompile" functionality. (Closed)
Patch Set: Created 3 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
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 static method test(dynamic value) → dynamic {
6 dynamic result;
7 #L1:
8 switch(value) {
9 #L2:
10 case 1:
11 {
12 result = 1;
13 break #L1;
14 }
15 #L3:
16 case 2:
17 {
18 result = 2;
19 throw core::_fallThroughError();
20 }
21 #L4:
22 case 3:
23 {
24 result = 3;
25 throw core::_fallThroughError();
26 }
27 #L5:
28 default:
29 result = 4;
30 }
31 return result;
32 }
33 static method testEmptyCases(dynamic value) → dynamic {
34 dynamic result;
35 #L6:
36 switch(value) {
37 #L7:
38 case 1:
39 case 2:
40 {
41 result = 1;
42 throw core::_fallThroughError();
43 }
44 #L8:
45 case 3:
46 case 4:
47 {
48 result = 2;
49 break #L6;
50 }
51 #L9:
52 case 5:
53 case 6:
54 default:
55 {}
56 }
57 return result;
58 }
59 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698