diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.expect index c139def3aa031..57e8b6efbf349 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & int? _ as double?: + case int? _ as double? & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.transformed.expect index c139def3aa031..57e8b6efbf349 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & int? _ as double?: + case int? _ as double? & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.expect index c139def3aa031..57e8b6efbf349 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & int? _ as double?: + case int? _ as double? & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.modular.expect index c139def3aa031..57e8b6efbf349 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & int? _ as double?: + case int? _ as double? & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.transformed.expect index c139def3aa031..57e8b6efbf349 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & int? _ as double?: + case int? _ as double? & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.expect index ed3efd813f134..bc1623ccbef64 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? & int? _: + case int? _ & double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.transformed.expect index ed3efd813f134..bc1623ccbef64 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? & int? _: + case int? _ & double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.expect index ed3efd813f134..bc1623ccbef64 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? & int? _: + case int? _ & double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.modular.expect index ed3efd813f134..bc1623ccbef64 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? & int? _: + case int? _ & double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.transformed.expect index ed3efd813f134..bc1623ccbef64 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? & int? _: + case int? _ & double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.expect index 727851035f433..9d8f70542dd09 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | int? _ as double?: + case int? _ as double? | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.transformed.expect index 727851035f433..9d8f70542dd09 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | int? _ as double?: + case int? _ as double? | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.expect index 727851035f433..9d8f70542dd09 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | int? _ as double?: + case int? _ as double? | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.modular.expect index 727851035f433..9d8f70542dd09 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | int? _ as double?: + case int? _ as double? | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.transformed.expect index 727851035f433..9d8f70542dd09 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | int? _ as double?: + case int? _ as double? | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.expect index cf769c5ee4c14..da227aeae44f1 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? | int? _: + case int? _ | double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.transformed.expect index cf769c5ee4c14..da227aeae44f1 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? | int? _: + case int? _ | double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.expect index cf769c5ee4c14..da227aeae44f1 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? | int? _: + case int? _ | double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.modular.expect index cf769c5ee4c14..da227aeae44f1 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? | int? _: + case int? _ | double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.transformed.expect index cf769c5ee4c14..da227aeae44f1 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case double? _ as Object? | int? _: + case int? _ | double? _ as Object?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.expect index 2d69c0911ae3e..d74f6d65860c4 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ & int? _: + case int? _ & double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.transformed.expect index 2d69c0911ae3e..d74f6d65860c4 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ & int? _: + case int? _ & double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.expect index 2d69c0911ae3e..d74f6d65860c4 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ & int? _: + case int? _ & double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.modular.expect index 2d69c0911ae3e..d74f6d65860c4 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ & int? _: + case int? _ & double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.transformed.expect index 2d69c0911ae3e..d74f6d65860c4 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ & int? _: + case int? _ & double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.expect index f25adf4ded6c3..ec2a55d3384a5 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ & int? _: + case int? _ & double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.transformed.expect index f25adf4ded6c3..ec2a55d3384a5 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ & int? _: + case int? _ & double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.expect index f25adf4ded6c3..ec2a55d3384a5 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ & int? _: + case int? _ & double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.modular.expect index f25adf4ded6c3..ec2a55d3384a5 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ & int? _: + case int? _ & double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.transformed.expect index f25adf4ded6c3..ec2a55d3384a5 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ & int? _: + case int? _ & double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.expect index a300fc995efa3..e06d3f3dcc370 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ | int? _: + case int? _ | double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.transformed.expect index a300fc995efa3..e06d3f3dcc370 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ | int? _: + case int? _ | double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.expect index a300fc995efa3..e06d3f3dcc370 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ | int? _: + case int? _ | double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.modular.expect index a300fc995efa3..e06d3f3dcc370 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ | int? _: + case int? _ | double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.transformed.expect index a300fc995efa3..e06d3f3dcc370 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ & double? _ | int? _: + case int? _ | double? _ & Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.expect index e66ee7efb0221..23cbc89ed331c 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ | int? _: + case int? _ | double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.transformed.expect index e66ee7efb0221..23cbc89ed331c 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ | int? _: + case int? _ | double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.expect index e66ee7efb0221..23cbc89ed331c 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ | int? _: + case int? _ | double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.modular.expect index e66ee7efb0221..23cbc89ed331c 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ | int? _: + case int? _ | double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.transformed.expect index e66ee7efb0221..23cbc89ed331c 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case Object? _ | double? _ | int? _: + case int? _ | double? _ | Object? _: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.expect index 7058715600557..76979dc0090d1 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1!: + case 1! & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.transformed.expect index 7058715600557..76979dc0090d1 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1!: + case 1! & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.expect index 7058715600557..76979dc0090d1 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1!: + case 1! & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.modular.expect index 7058715600557..76979dc0090d1 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1!: + case 1! & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.transformed.expect index 7058715600557..76979dc0090d1 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1!: + case 1! & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.expect index d22c4579f080e..a60174a756222 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! & 1: + case 1 & 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.transformed.expect index d22c4579f080e..a60174a756222 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! & 1: + case 1 & 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.expect index d22c4579f080e..a60174a756222 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! & 1: + case 1 & 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.modular.expect index d22c4579f080e..a60174a756222 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! & 1: + case 1 & 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.transformed.expect index d22c4579f080e..a60174a756222 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! & 1: + case 1 & 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.expect index ad90f9dc27c85..c4f5723636de0 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1!: + case 1! | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.transformed.expect index ad90f9dc27c85..c4f5723636de0 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1!: + case 1! | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.expect index ad90f9dc27c85..c4f5723636de0 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1!: + case 1! | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.modular.expect index ad90f9dc27c85..c4f5723636de0 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1!: + case 1! | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.transformed.expect index ad90f9dc27c85..c4f5723636de0 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1!: + case 1! | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.expect index 3ced4601e6e0d..a468ac72ad09b 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! | 1: + case 1 | 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.transformed.expect index 3ced4601e6e0d..a468ac72ad09b 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! | 1: + case 1 | 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.expect index 3ced4601e6e0d..a468ac72ad09b 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! | 1: + case 1 | 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.modular.expect index 3ced4601e6e0d..a468ac72ad09b 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! | 1: + case 1 | 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.transformed.expect index 3ced4601e6e0d..a468ac72ad09b 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2! | 1: + case 1 | 2!: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.expect index ec9cd81ed0b28..dba8dd6bc26a1 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1?: + case 1? & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.transformed.expect index ec9cd81ed0b28..dba8dd6bc26a1 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1?: + case 1? & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.expect index ec9cd81ed0b28..dba8dd6bc26a1 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1?: + case 1? & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.modular.expect index ec9cd81ed0b28..dba8dd6bc26a1 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1?: + case 1? & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.transformed.expect index ec9cd81ed0b28..dba8dd6bc26a1 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & 1?: + case 1? & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.expect index 43fd677ba93f6..029edc73fac4b 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? & 1: + case 1 & 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.transformed.expect index 43fd677ba93f6..029edc73fac4b 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? & 1: + case 1 & 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.expect index 43fd677ba93f6..029edc73fac4b 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? & 1: + case 1 & 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.modular.expect index 43fd677ba93f6..029edc73fac4b 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? & 1: + case 1 & 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.transformed.expect index 43fd677ba93f6..029edc73fac4b 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? & 1: + case 1 & 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.expect index a076817706944..92b6f95b292e2 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1?: + case 1? | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.transformed.expect index a076817706944..92b6f95b292e2 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1?: + case 1? | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.expect index a076817706944..92b6f95b292e2 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1?: + case 1? | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.modular.expect index a076817706944..92b6f95b292e2 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1?: + case 1? | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.transformed.expect index a076817706944..92b6f95b292e2 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | 1?: + case 1? | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.expect index 08f72b123c720..ebf55a2fd4404 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? | 1: + case 1 | 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.transformed.expect index 08f72b123c720..ebf55a2fd4404 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? | 1: + case 1 | 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.expect index 08f72b123c720..ebf55a2fd4404 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? | 1: + case 1 | 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.modular.expect index 08f72b123c720..ebf55a2fd4404 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? | 1: + case 1 | 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.transformed.expect index 08f72b123c720..ebf55a2fd4404 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2? | 1: + case 1 | 2?: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.expect index 88f416e07a1db..c1c15a6f70f40 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & == 1: + case == 1 & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.transformed.expect index 88f416e07a1db..c1c15a6f70f40 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & == 1: + case == 1 & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.expect index 88f416e07a1db..c1c15a6f70f40 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & == 1: + case == 1 & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.modular.expect index 88f416e07a1db..c1c15a6f70f40 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & == 1: + case == 1 & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.transformed.expect index 88f416e07a1db..c1c15a6f70f40 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & == 1: + case == 1 & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.expect index e439ecb7c5a11..c72bd66cd3323 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 & 1: + case 1 & == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.transformed.expect index e439ecb7c5a11..c72bd66cd3323 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 & 1: + case 1 & == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.expect index e439ecb7c5a11..c72bd66cd3323 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 & 1: + case 1 & == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.modular.expect index e439ecb7c5a11..c72bd66cd3323 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 & 1: + case 1 & == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.transformed.expect index e439ecb7c5a11..c72bd66cd3323 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 & 1: + case 1 & == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.expect index 7155c2273e176..c7eaac135b941 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | == 1: + case == 1 | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.transformed.expect index 7155c2273e176..c7eaac135b941 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | == 1: + case == 1 | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.expect index 7155c2273e176..c7eaac135b941 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | == 1: + case == 1 | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.modular.expect index 7155c2273e176..c7eaac135b941 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | == 1: + case == 1 | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.transformed.expect index 7155c2273e176..c7eaac135b941 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | == 1: + case == 1 | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.expect index 2c08df0d55c8a..d08bf65d46815 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 | 1: + case 1 | == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.transformed.expect index 2c08df0d55c8a..d08bf65d46815 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 | 1: + case 1 | == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.expect index 2c08df0d55c8a..d08bf65d46815 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 | 1: + case 1 | == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.modular.expect index 2c08df0d55c8a..d08bf65d46815 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 | 1: + case 1 | == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.transformed.expect index 2c08df0d55c8a..d08bf65d46815 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case == 2 | 1: + case 1 | == 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.expect index d30507f83db0b..9bc60d1f47372 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & int as: + case int as & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.transformed.expect index d30507f83db0b..9bc60d1f47372 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & int as: + case int as & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.expect index d30507f83db0b..9bc60d1f47372 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & int as: + case int as & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.modular.expect index d30507f83db0b..9bc60d1f47372 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & int as: + case int as & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.transformed.expect index d30507f83db0b..9bc60d1f47372 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 & int as: + case int as & 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.expect index 8b680d764bd12..80567889c4781 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as & 1: + case 1 & int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.transformed.expect index 8b680d764bd12..80567889c4781 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as & 1: + case 1 & int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.expect index 8b680d764bd12..80567889c4781 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as & 1: + case 1 & int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.modular.expect index 8b680d764bd12..80567889c4781 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as & 1: + case 1 & int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.transformed.expect index 8b680d764bd12..80567889c4781 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as & 1: + case 1 & int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.expect index 5f58b50305347..15f2d2910254f 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | int as: + case int as | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.transformed.expect index 5f58b50305347..15f2d2910254f 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | int as: + case int as | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.expect index 5f58b50305347..15f2d2910254f 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | int as: + case int as | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.modular.expect index 5f58b50305347..15f2d2910254f 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | int as: + case int as | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.transformed.expect index 5f58b50305347..15f2d2910254f 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case 2 | int as: + case int as | 2: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.expect index a93d7f2ba15b7..3960db67b113e 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as | 1: + case 1 | int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.transformed.expect index a93d7f2ba15b7..3960db67b113e 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.strong.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as | 1: + case 1 | int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.expect index a93d7f2ba15b7..3960db67b113e 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as | 1: + case 1 | int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.modular.expect index a93d7f2ba15b7..3960db67b113e 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.modular.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as | 1: + case 1 | int as: break label0; })"; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.transformed.expect index a93d7f2ba15b7..3960db67b113e 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart.weak.transformed.expect @@ -4,7 +4,7 @@ import self as self; static method test(dynamic x) → dynamic { #L1: invalid-expression "PatternSwitchStatement(switch (x) { - case int as | 1: + case 1 | int as: break label0; })"; }