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

Side by Side Diff: pkg/front_end/testcases/rasta/switch_fall_through.dart.direct.expect

Issue 2933763002: Update golden files. (Closed)
Patch Set: Add bug number for native_is_illegal. 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 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 main() → dynamic { 5 static method main() → dynamic {
6 #L1: 6 #L1:
7 switch(1) { 7 switch(1) {
8 #L2: 8 #L2:
9 case 1: 9 case 1:
10 { 10 {
11 { 11 {
12 "No fall-through error needed."; 12 "No fall-through error needed.";
13 break #L1; 13 break #L1;
14 ; 14 ;
15 } 15 }
16 throw new core::FallThroughError::•();
16 } 17 }
17 #L3: 18 #L3:
18 case 2: 19 case 2:
19 { 20 {
20 { 21 {
21 "Fall-through error needed."; 22 "Fall-through error needed.";
22 if(true) { 23 if(true) {
23 break #L1; 24 break #L1;
24 } 25 }
25 } 26 }
26 throw new core::FallThroughError::•(); 27 throw new core::FallThroughError::•();
27 } 28 }
28 #L4: 29 #L4:
29 case 3: 30 case 3:
30 { 31 {
31 try { 32 try {
32 "No fall-through error needed."; 33 "No fall-through error needed.";
33 } 34 }
34 finally { 35 finally {
35 break #L1; 36 break #L1;
36 } 37 }
38 throw new core::FallThroughError::•();
37 } 39 }
38 #L5: 40 #L5:
39 case 4: 41 case 4:
40 { 42 {
41 try { 43 try {
42 "No fall-through error needed."; 44 "No fall-through error needed.";
43 break #L1; 45 break #L1;
44 } 46 }
45 finally { 47 finally {
46 } 48 }
49 throw new core::FallThroughError::•();
47 } 50 }
48 #L6: 51 #L6:
49 case 5: 52 case 5:
50 { 53 {
51 try { 54 try {
52 "Fall-through error needed."; 55 "Fall-through error needed.";
53 } 56 }
54 finally { 57 finally {
55 } 58 }
56 throw new core::FallThroughError::•(); 59 throw new core::FallThroughError::•();
57 } 60 }
58 #L7: 61 #L7:
59 case 10000: 62 case 10000:
60 { 63 {
61 "Should be last. No fall-through error, falling through allowed here."; 64 "Should be last. No fall-through error, falling through allowed here.";
62 } 65 }
63 } 66 }
64 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698