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

Side by Side Diff: pkg/front_end/test/fasta/rasta/switch_execution_case_t02.dart.direct.expect

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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 {
30 result = 4;
31 }
32 }
33 return result;
34 }
35 static method testEmptyCases(dynamic value) → dynamic {
36 dynamic result;
37 #L6:
38 switch(value) {
39 #L7:
40 case 1:
41 case 2:
42 {
43 result = 1;
44 throw core::_fallThroughError();
45 }
46 #L8:
47 case 3:
48 case 4:
49 {
50 result = 2;
51 break #L6;
52 }
53 #L9:
54 case 5:
55 case 6:
56 default:
57 {}
58 }
59 return result;
60 }
61 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698