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

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

Issue 2658093007: Update rasta direct expectations. (Closed)
Patch Set: Rebased on 5f1092d494bc8cae2b10917fc41c46764e867923. Created 3 years, 10 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
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 static method test(dynamic value) → dynamic { 5 static method test(dynamic value) → dynamic {
6 dynamic result; 6 dynamic result;
7 #L1: 7 #L1:
8 switch(value) { 8 switch(value) {
9 #L2: 9 #L2:
10 case 1: 10 case 1:
11 { 11 {
12 result = 1; 12 result = 1;
13 break #L1; 13 break #L1;
14 } 14 }
15 #L3: 15 #L3:
16 case 2: 16 case 2:
17 { 17 {
18 result = 2; 18 result = 2;
19 throw core::_fallThroughError(); 19 throw core::_fallThroughError();
20 } 20 }
21 #L4: 21 #L4:
22 case 3: 22 case 3:
23 { 23 {
24 result = 3; 24 result = 3;
25 throw core::_fallThroughError(); 25 throw core::_fallThroughError();
26 } 26 }
27 #L5: 27 #L5:
28 default: 28 default:
29 result = 4; 29 {
30 result = 4;
31 }
30 } 32 }
31 return result; 33 return result;
32 } 34 }
33 static method testEmptyCases(dynamic value) → dynamic { 35 static method testEmptyCases(dynamic value) → dynamic {
34 dynamic result; 36 dynamic result;
35 #L6: 37 #L6:
36 switch(value) { 38 switch(value) {
37 #L7: 39 #L7:
38 case 1: 40 case 1:
39 case 2: 41 case 2:
(...skipping 10 matching lines...) Expand all
50 } 52 }
51 #L9: 53 #L9:
52 case 5: 54 case 5:
53 case 6: 55 case 6:
54 default: 56 default:
55 {} 57 {}
56 } 58 }
57 return result; 59 return result;
58 } 60 }
59 static method main() → dynamic {} 61 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698