| OLD | NEW |
| 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 new 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 new core::FallThroughError::•(); |
| 26 } | 26 } |
| 27 #L5: | 27 #L5: |
| 28 default: | 28 default: |
| 29 { | 29 { |
| 30 result = 4; | 30 result = 4; |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 return result; | 33 return result; |
| 34 } | 34 } |
| 35 static method testEmptyCases(dynamic value) → dynamic { | 35 static method testEmptyCases(dynamic value) → dynamic { |
| 36 dynamic result; | 36 dynamic result; |
| 37 #L6: | 37 #L6: |
| 38 switch(value) { | 38 switch(value) { |
| 39 #L7: | 39 #L7: |
| 40 case 1: | 40 case 1: |
| 41 case 2: | 41 case 2: |
| 42 { | 42 { |
| 43 result = 1; | 43 result = 1; |
| 44 throw core::_fallThroughError(); | 44 throw new core::FallThroughError::•(); |
| 45 } | 45 } |
| 46 #L8: | 46 #L8: |
| 47 case 3: | 47 case 3: |
| 48 case 4: | 48 case 4: |
| 49 { | 49 { |
| 50 result = 2; | 50 result = 2; |
| 51 break #L6; | 51 break #L6; |
| 52 } | 52 } |
| 53 #L9: | 53 #L9: |
| 54 case 5: | 54 case 5: |
| 55 case 6: | 55 case 6: |
| 56 default: | 56 default: |
| 57 {} | 57 {} |
| 58 } | 58 } |
| 59 return result; | 59 return result; |
| 60 } | 60 } |
| 61 static method main() → dynamic {} | 61 static method main() → dynamic {} |
| OLD | NEW |