@@ -189,12 +189,12 @@ Future<void> doTestAwaitCatchError(
189
189
// For: --causal-async-stacks
190
190
Future <void > doTestsCausal () async {
191
191
final allYieldExpected = const < String > [
192
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
193
- r'^#1 allYield3 \(.*/utils.dart:(39|39 :3)\)$' ,
192
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
193
+ r'^#1 allYield3 \(.*/utils.dart:39( :3)? \)$' ,
194
194
r'^<asynchronous suspension>$' ,
195
- r'^#2 allYield2 \(.*/utils.dart:(34|34 :9)\)$' ,
195
+ r'^#2 allYield2 \(.*/utils.dart:34( :9)? \)$' ,
196
196
r'^<asynchronous suspension>$' ,
197
- r'^#3 allYield \(.*/utils.dart:(29|29 :9)\)$' ,
197
+ r'^#3 allYield \(.*/utils.dart:29( :9)? \)$' ,
198
198
r'^<asynchronous suspension>$' ,
199
199
];
200
200
await doTestAwait (
@@ -234,10 +234,10 @@ Future<void> doTestsCausal() async {
234
234
]);
235
235
236
236
final noYieldsExpected = const < String > [
237
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
238
- r'^#1 noYields3 \(.*/utils.dart:(54|54 :3)\)$' ,
239
- r'^#2 noYields2 \(.*/utils.dart:(50|50 :9)\)$' ,
240
- r'^#3 noYields \(.*/utils.dart:(46|46 :9)\)$' ,
237
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
238
+ r'^#1 noYields3 \(.*/utils.dart:54( :3)? \)$' ,
239
+ r'^#2 noYields2 \(.*/utils.dart:50( :9)? \)$' ,
240
+ r'^#3 noYields \(.*/utils.dart:46( :9)? \)$' ,
241
241
];
242
242
await doTestAwait (
243
243
noYields,
@@ -277,12 +277,12 @@ Future<void> doTestsCausal() async {
277
277
]);
278
278
279
279
final mixedYieldsExpected = const < String > [
280
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
280
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
281
281
r'^<asynchronous suspension>$' ,
282
- r'^#1 mixedYields3 \(.*/utils.dart:(70|70 :10)\)$' ,
283
- r'^#2 mixedYields2 \(.*/utils.dart:(66|66 :9)\)$' ,
282
+ r'^#1 mixedYields3 \(.*/utils.dart:70( :10)? \)$' ,
283
+ r'^#2 mixedYields2 \(.*/utils.dart:66( :9)? \)$' ,
284
284
r'^<asynchronous suspension>$' ,
285
- r'^#3 mixedYields \(.*/utils.dart:(61|61 :9)\)$' ,
285
+ r'^#3 mixedYields \(.*/utils.dart:61( :9)? \)$' ,
286
286
];
287
287
await doTestAwait (
288
288
mixedYields,
@@ -322,12 +322,12 @@ Future<void> doTestsCausal() async {
322
322
]);
323
323
324
324
final syncSuffixExpected = const < String > [
325
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
325
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
326
326
r'^<asynchronous suspension>$' ,
327
- r'^#1 syncSuffix3 \(.*/utils.dart:(86|86 :10)\)$' ,
328
- r'^#2 syncSuffix2 \(.*/utils.dart:(82|82 :9)\)$' ,
327
+ r'^#1 syncSuffix3 \(.*/utils.dart:86( :10)? \)$' ,
328
+ r'^#2 syncSuffix2 \(.*/utils.dart:82( :9)? \)$' ,
329
329
r'^<asynchronous suspension>$' ,
330
- r'^#3 syncSuffix \(.*/utils.dart:(77|77 :9)\)$' ,
330
+ r'^#3 syncSuffix \(.*/utils.dart:77( :9)? \)$' ,
331
331
];
332
332
await doTestAwait (
333
333
syncSuffix,
@@ -367,7 +367,7 @@ Future<void> doTestsCausal() async {
367
367
]);
368
368
369
369
final nonAsyncNoStackExpected = const < String > [
370
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
370
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
371
371
r'^<asynchronous suspension>$' ,
372
372
r'^#1 nonAsyncNoStack2.<anonymous closure> ' ,
373
373
r'^#2 _RootZone.runUnary ' ,
@@ -387,8 +387,8 @@ Future<void> doTestsCausal() async {
387
387
await doTestAwaitCatchError (nonAsyncNoStack, nonAsyncNoStackExpected);
388
388
389
389
final asyncStarThrowSyncExpected = const < String > [
390
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
391
- r'^#1 asyncStarThrowSync \(.*/utils.dart:( 112|112 :11)\)$' ,
390
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
391
+ r'^#1 asyncStarThrowSync \(.*/utils.dart:112( :11)? \)$' ,
392
392
r'^<asynchronous suspension>$' ,
393
393
r'^#2 awaitEveryAsyncStarThrowSync \(.+\)$' ,
394
394
];
@@ -430,9 +430,9 @@ Future<void> doTestsCausal() async {
430
430
]);
431
431
432
432
final asyncStarThrowAsyncExpected = const < String > [
433
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
433
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
434
434
r'^<asynchronous suspension>$' ,
435
- r'^#1 asyncStarThrowAsync \(.*/utils.dart:( 126|126 :11)\)$' ,
435
+ r'^#1 asyncStarThrowAsync \(.*/utils.dart:126( :11)? \)$' ,
436
436
r'^<asynchronous suspension>$' ,
437
437
r'^#2 awaitEveryAsyncStarThrowAsync \(.+\)$' ,
438
438
];
@@ -477,8 +477,8 @@ Future<void> doTestsCausal() async {
477
477
// For: --no-causal-async-stacks
478
478
Future <void > doTestsNoCausal () async {
479
479
final allYieldExpected = const < String > [
480
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
481
- r'^#1 allYield3 \(.*/utils.dart:(39|39 :3)\)$' ,
480
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
481
+ r'^#1 allYield3 \(.*/utils.dart:39( :3)? \)$' ,
482
482
r'^#2 _RootZone.runUnary ' ,
483
483
r'^#3 _FutureListener.handleValue ' ,
484
484
r'^#4 Future._propagateToListeners.handleValueCallback ' ,
@@ -496,16 +496,16 @@ Future<void> doTestsNoCausal() async {
496
496
await doTestAwaitCatchError (allYield, allYieldExpected);
497
497
498
498
final noYieldsExpected = const < String > [
499
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
500
- r'^#1 noYields3 \(.*/utils.dart:(54|54 :3)\)$' ,
499
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
500
+ r'^#1 noYields3 \(.*/utils.dart:54( :3)? \)$' ,
501
501
r'^#2 _AsyncAwaitCompleter.start ' ,
502
- r'^#3 noYields3 \(.*/utils.dart:(53|53 :23)\)$' ,
503
- r'^#4 noYields2 \(.*/utils.dart:(50|50 :9)\)$' ,
502
+ r'^#3 noYields3 \(.*/utils.dart:53( :23)? \)$' ,
503
+ r'^#4 noYields2 \(.*/utils.dart:50( :9)? \)$' ,
504
504
r'^#5 _AsyncAwaitCompleter.start ' ,
505
- r'^#6 noYields2 \(.*/utils.dart:(49|49 :23)\)$' ,
506
- r'^#7 noYields \(.*/utils.dart:(46|46 :9)\)$' ,
505
+ r'^#6 noYields2 \(.*/utils.dart:49( :23)? \)$' ,
506
+ r'^#7 noYields \(.*/utils.dart:46( :9)? \)$' ,
507
507
r'^#8 _AsyncAwaitCompleter.start ' ,
508
- r'^#9 noYields \(.*/utils.dart:(45|45 :22)\)$' ,
508
+ r'^#9 noYields \(.*/utils.dart:45( :22)? \)$' ,
509
509
];
510
510
await doTestAwait (
511
511
noYields,
@@ -652,7 +652,7 @@ Future<void> doTestsNoCausal() async {
652
652
]);
653
653
654
654
final mixedYieldsExpected = const < String > [
655
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
655
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
656
656
r'^#1 _RootZone.runUnary ' ,
657
657
r'^#2 _FutureListener.handleValue ' ,
658
658
r'^#3 Future._propagateToListeners.handleValueCallback ' ,
@@ -670,7 +670,7 @@ Future<void> doTestsNoCausal() async {
670
670
await doTestAwaitCatchError (mixedYields, mixedYieldsExpected);
671
671
672
672
final syncSuffixExpected = const < String > [
673
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
673
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
674
674
r'^#1 _RootZone.runUnary ' ,
675
675
r'^#2 _FutureListener.handleValue ' ,
676
676
r'^#3 Future._propagateToListeners.handleValueCallback ' ,
@@ -688,7 +688,7 @@ Future<void> doTestsNoCausal() async {
688
688
await doTestAwaitCatchError (syncSuffix, syncSuffixExpected);
689
689
690
690
final nonAsyncNoStackExpected = const < String > [
691
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
691
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
692
692
r'^#1 _RootZone.runUnary ' ,
693
693
r'^#2 _FutureListener.handleValue ' ,
694
694
r'^#3 Future._propagateToListeners.handleValueCallback ' ,
@@ -706,8 +706,8 @@ Future<void> doTestsNoCausal() async {
706
706
await doTestAwaitCatchError (nonAsyncNoStack, nonAsyncNoStackExpected);
707
707
708
708
final asyncStarThrowSyncExpected = const < String > [
709
- r'^#0 throwSync \(.+/utils.dart:(16|16 :3)\)$' ,
710
- r'^#1 asyncStarThrowSync \(.+/utils.dart:( 112|112 :11)\)$' ,
709
+ r'^#0 throwSync \(.+/utils.dart:16( :3)? \)$' ,
710
+ r'^#1 asyncStarThrowSync \(.+/utils.dart:112( :11)? \)$' ,
711
711
r'^#2 _RootZone.runUnary \(.+\)$' ,
712
712
r'^#3 _FutureListener.handleValue \(.+\)$' ,
713
713
r'^#4 Future._propagateToListeners.handleValueCallback \(.+\)$' ,
@@ -727,7 +727,7 @@ Future<void> doTestsNoCausal() async {
727
727
awaitEveryAsyncStarThrowSync, asyncStarThrowSyncExpected);
728
728
729
729
final asyncStarThrowAsyncExpected = const < String > [
730
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
730
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
731
731
r'^#1 _RootZone.runUnary ' ,
732
732
r'^#2 _FutureListener.handleValue ' ,
733
733
r'^#3 Future._propagateToListeners.handleValueCallback ' ,
@@ -750,12 +750,12 @@ Future<void> doTestsNoCausal() async {
750
750
// For: --lazy-async-stacks
751
751
Future <void > doTestsLazy () async {
752
752
final allYieldExpected = const < String > [
753
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
754
- r'^#1 allYield3 \(.*/utils.dart:(39|39 :3)\)$' ,
753
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
754
+ r'^#1 allYield3 \(.*/utils.dart:39( :3)? \)$' ,
755
755
r'^<asynchronous suspension>$' ,
756
- r'^#2 allYield2 \(.*/utils.dart:(0|34|34 :3)\)$' ,
756
+ r'^#2 allYield2 \(.*/utils.dart:34( :3)? \)$' ,
757
757
r'^<asynchronous suspension>$' ,
758
- r'^#3 allYield \(.*/utils.dart:(0|29|29 :3)\)$' ,
758
+ r'^#3 allYield \(.*/utils.dart:29( :3)? \)$' ,
759
759
r'^<asynchronous suspension>$' ,
760
760
];
761
761
await doTestAwait (
@@ -786,17 +786,17 @@ Future<void> doTestsLazy() async {
786
786
]);
787
787
788
788
final noYieldsExpected = const < String > [
789
- r'^#0 throwSync \(.*/utils.dart:(16|16 :3)\)$' ,
790
- r'^#1 noYields3 \(.*/utils.dart:(54|54 :3)\)$' ,
789
+ r'^#0 throwSync \(.*/utils.dart:16( :3)? \)$' ,
790
+ r'^#1 noYields3 \(.*/utils.dart:54( :3)? \)$' ,
791
791
// TODO(dart-vm): Figure out why this frame is flaky:
792
792
r'^#2 _AsyncAwaitCompleter.start ' ,
793
- r'^#3 noYields3 \(.*/utils.dart:(53|53 :23)\)$' ,
794
- r'^#4 noYields2 \(.*/utils.dart:(50|50 :9)\)$' ,
793
+ r'^#3 noYields3 \(.*/utils.dart:53( :23)? \)$' ,
794
+ r'^#4 noYields2 \(.*/utils.dart:50( :9)? \)$' ,
795
795
r'^#5 _AsyncAwaitCompleter.start ' ,
796
- r'^#6 noYields2 \(.*/utils.dart:(49|49 :23)\)$' ,
797
- r'^#7 noYields \(.*/utils.dart:(46|46 :9)\)$' ,
796
+ r'^#6 noYields2 \(.*/utils.dart:49( :23)? \)$' ,
797
+ r'^#7 noYields \(.*/utils.dart:46( :9)? \)$' ,
798
798
r'^#8 _AsyncAwaitCompleter.start ' ,
799
- r'^#9 noYields \(.*/utils.dart:(45|45 :22)\)$' ,
799
+ r'^#9 noYields \(.*/utils.dart:45( :22)? \)$' ,
800
800
];
801
801
await doTestAwait (
802
802
noYields,
@@ -839,11 +839,11 @@ Future<void> doTestsLazy() async {
839
839
]);
840
840
841
841
final mixedYieldsExpected = const < String > [
842
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
842
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
843
843
r'^<asynchronous suspension>$' ,
844
- r'^#1 mixedYields2 \(.*/utils.dart:(0|66|66 :3)\)$' ,
844
+ r'^#1 mixedYields2 \(.*/utils.dart:66( :3)? \)$' ,
845
845
r'^<asynchronous suspension>$' ,
846
- r'^#2 mixedYields \(.*/utils.dart:(0|61|61 :3)\)$' ,
846
+ r'^#2 mixedYields \(.*/utils.dart:61( :3)? \)$' ,
847
847
r'^<asynchronous suspension>$' ,
848
848
];
849
849
await doTestAwait (
@@ -874,11 +874,11 @@ Future<void> doTestsLazy() async {
874
874
]);
875
875
876
876
final syncSuffixExpected = const < String > [
877
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
877
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
878
878
r'^<asynchronous suspension>$' ,
879
- r'^#1 syncSuffix2 \(.*/utils.dart:(0|82|82 :3)\)$' ,
879
+ r'^#1 syncSuffix2 \(.*/utils.dart:82( :3)? \)$' ,
880
880
r'^<asynchronous suspension>$' ,
881
- r'^#2 syncSuffix \(.*/utils.dart:(0|77|77 :3)\)$' ,
881
+ r'^#2 syncSuffix \(.*/utils.dart:77( :3)? \)$' ,
882
882
r'^<asynchronous suspension>$' ,
883
883
];
884
884
await doTestAwait (
@@ -909,11 +909,11 @@ Future<void> doTestsLazy() async {
909
909
]);
910
910
911
911
final nonAsyncNoStackExpected = const < String > [
912
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
912
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
913
913
r'^<asynchronous suspension>$' ,
914
- r'^#1 nonAsyncNoStack1 \(.*/utils.dart:(0|95|95 :36)\)$' ,
914
+ r'^#1 nonAsyncNoStack1 \(.*/utils.dart:95( :36)? \)$' ,
915
915
r'^<asynchronous suspension>$' ,
916
- r'^#2 nonAsyncNoStack \(.*/utils.dart:(0|93|93 :35)\)$' ,
916
+ r'^#2 nonAsyncNoStack \(.*/utils.dart:93( :35)? \)$' ,
917
917
r'^<asynchronous suspension>$' ,
918
918
];
919
919
await doTestAwait (
@@ -944,8 +944,8 @@ Future<void> doTestsLazy() async {
944
944
]);
945
945
946
946
final asyncStarThrowSyncExpected = const < String > [
947
- r'^#0 throwSync \(.+/utils.dart:(16|16 :3)\)$' ,
948
- r'^#1 asyncStarThrowSync \(.+/utils.dart:( 112|112 :11)\)$' ,
947
+ r'^#0 throwSync \(.+/utils.dart:16( :3)? \)$' ,
948
+ r'^#1 asyncStarThrowSync \(.+/utils.dart:112( :11)? \)$' ,
949
949
r'^<asynchronous suspension>$' ,
950
950
// Non-visible _onData frame.
951
951
r'^<asynchronous suspension>$' ,
@@ -958,9 +958,9 @@ Future<void> doTestsLazy() async {
958
958
awaitEveryAsyncStarThrowSync, asyncStarThrowSyncExpected);
959
959
960
960
final asyncStarThrowAsyncExpected = const < String > [
961
- r'^#0 throwAsync \(.*/utils.dart:(21|21 :3)\)$' ,
961
+ r'^#0 throwAsync \(.*/utils.dart:21( :3)? \)$' ,
962
962
r'^<asynchronous suspension>$' ,
963
- r'^#1 asyncStarThrowAsync \(.*/utils.dart:(0| 126|126 :5)\)$' ,
963
+ r'^#1 asyncStarThrowAsync \(.*/utils.dart:126( :5)? \)$' ,
964
964
r'^<asynchronous suspension>$' ,
965
965
// Non-visible _onData frame.
966
966
r'^<asynchronous suspension>$' ,
0 commit comments