| Index: pkg/fasta/test/rasta/switch_execution_case_t02.dart.direct.expect
|
| diff --git a/pkg/fasta/test/rasta/switch_execution_case_t02.dart.direct.expect b/pkg/fasta/test/rasta/switch_execution_case_t02.dart.direct.expect
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..63f4c55cd357a50a8b3942a1ba952ed9a3d5f355
|
| --- /dev/null
|
| +++ b/pkg/fasta/test/rasta/switch_execution_case_t02.dart.direct.expect
|
| @@ -0,0 +1,59 @@
|
| +library;
|
| +import self as self;
|
| +import "dart:core" as core;
|
| +
|
| +static method test(dynamic value) → dynamic {
|
| + dynamic result;
|
| + #L1:
|
| + switch(value) {
|
| + #L2:
|
| + case 1:
|
| + {
|
| + result = 1;
|
| + break #L1;
|
| + }
|
| + #L3:
|
| + case 2:
|
| + {
|
| + result = 2;
|
| + throw core::_fallThroughError();
|
| + }
|
| + #L4:
|
| + case 3:
|
| + {
|
| + result = 3;
|
| + throw core::_fallThroughError();
|
| + }
|
| + #L5:
|
| + default:
|
| + result = 4;
|
| + }
|
| + return result;
|
| +}
|
| +static method testEmptyCases(dynamic value) → dynamic {
|
| + dynamic result;
|
| + #L6:
|
| + switch(value) {
|
| + #L7:
|
| + case 1:
|
| + case 2:
|
| + {
|
| + result = 1;
|
| + throw core::_fallThroughError();
|
| + }
|
| + #L8:
|
| + case 3:
|
| + case 4:
|
| + {
|
| + result = 2;
|
| + break #L6;
|
| + }
|
| + #L9:
|
| + case 5:
|
| + case 6:
|
| + default:
|
| + {}
|
| + }
|
| + return result;
|
| +}
|
| +static method main() → dynamic {}
|
|
|