Skip to content

Commit

Permalink
[cfe] Update patterns expectations
Browse files Browse the repository at this point in the history
Change-Id: I08de1fff9096b64d1e838c975a1659f4a960fc9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/272181
Commit-Queue: Johnni Winther <[email protected]>
Reviewed-by: Chloe Stefantsova <[email protected]>
  • Loading branch information
johnniwinther authored and Commit Queue committed Nov 25, 2022
1 parent 3f1b69c commit 076c856
Show file tree
Hide file tree
Showing 120 changed files with 120 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
})";
}
Loading

0 comments on commit 076c856

Please sign in to comment.