2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2021-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
@@ -20,7 +20,7 @@ extension RegexComponentBuilder {
20
20
accumulated: R0 , next: R1
21
21
) -> Regex < ( Substring , C1 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 ) {
22
22
let factory = makeFactory ( )
23
- return factory. accumulate ( accumulated, next)
23
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
24
24
}
25
25
}
26
26
@available ( SwiftStdlib 5 . 7 , * )
@@ -30,7 +30,7 @@ extension RegexComponentBuilder {
30
30
accumulated: R0 , next: R1
31
31
) -> Regex < ( Substring , C1 , C2 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 ) {
32
32
let factory = makeFactory ( )
33
- return factory. accumulate ( accumulated, next)
33
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
34
34
}
35
35
}
36
36
@available ( SwiftStdlib 5 . 7 , * )
@@ -40,7 +40,7 @@ extension RegexComponentBuilder {
40
40
accumulated: R0 , next: R1
41
41
) -> Regex < ( Substring , C1 , C2 , C3 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 ) {
42
42
let factory = makeFactory ( )
43
- return factory. accumulate ( accumulated, next)
43
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
44
44
}
45
45
}
46
46
@available ( SwiftStdlib 5 . 7 , * )
@@ -50,7 +50,7 @@ extension RegexComponentBuilder {
50
50
accumulated: R0 , next: R1
51
51
) -> Regex < ( Substring , C1 , C2 , C3 , C4 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 ) {
52
52
let factory = makeFactory ( )
53
- return factory. accumulate ( accumulated, next)
53
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
54
54
}
55
55
}
56
56
@available ( SwiftStdlib 5 . 7 , * )
@@ -60,7 +60,7 @@ extension RegexComponentBuilder {
60
60
accumulated: R0 , next: R1
61
61
) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 ) {
62
62
let factory = makeFactory ( )
63
- return factory. accumulate ( accumulated, next)
63
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
64
64
}
65
65
}
66
66
@available ( SwiftStdlib 5 . 7 , * )
@@ -70,7 +70,7 @@ extension RegexComponentBuilder {
70
70
accumulated: R0 , next: R1
71
71
) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 ) {
72
72
let factory = makeFactory ( )
73
- return factory. accumulate ( accumulated, next)
73
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
74
74
}
75
75
}
76
76
@available ( SwiftStdlib 5 . 7 , * )
@@ -80,7 +80,7 @@ extension RegexComponentBuilder {
80
80
accumulated: R0 , next: R1
81
81
) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
82
82
let factory = makeFactory ( )
83
- return factory. accumulate ( accumulated, next)
83
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
84
84
}
85
85
}
86
86
@available ( SwiftStdlib 5 . 7 , * )
@@ -90,7 +90,7 @@ extension RegexComponentBuilder {
90
90
accumulated: R0 , next: R1
91
91
) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
92
92
let factory = makeFactory ( )
93
- return factory. accumulate ( accumulated, next)
93
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
94
94
}
95
95
}
96
96
@available ( SwiftStdlib 5 . 7 , * )
@@ -100,7 +100,7 @@ extension RegexComponentBuilder {
100
100
accumulated: R0 , next: R1
101
101
) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 ) {
102
102
let factory = makeFactory ( )
103
- return factory. accumulate ( accumulated, next)
103
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
104
104
}
105
105
}
106
106
@available ( SwiftStdlib 5 . 7 , * )
@@ -110,7 +110,7 @@ extension RegexComponentBuilder {
110
110
accumulated: R0 , next: R1
111
111
) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 , C10 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 , C10 ) {
112
112
let factory = makeFactory ( )
113
- return factory. accumulate ( accumulated, next)
113
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
114
114
}
115
115
}
116
116
@available ( SwiftStdlib 5 . 7 , * )
@@ -565,123 +565,112 @@ extension RegexComponentBuilder {
565
565
}
566
566
@available ( SwiftStdlib 5 . 7 , * )
567
567
extension RegexComponentBuilder {
568
- @available ( SwiftStdlib 5 . 7 , * )
569
568
@_alwaysEmitIntoClient
570
569
public static func buildPartialBlock< W0, R0: RegexComponent , R1: RegexComponent > (
571
570
accumulated: R0 , next: R1
572
571
) -> Regex < Substring > where R0. RegexOutput == W0 {
573
572
let factory = makeFactory ( )
574
- return factory. accumulate ( accumulated, next)
573
+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, andAlso : next)
575
574
}
576
575
}
577
576
@available ( SwiftStdlib 5 . 7 , * )
578
577
extension RegexComponentBuilder {
579
- @available ( SwiftStdlib 5 . 7 , * )
580
578
@_alwaysEmitIntoClient
581
579
public static func buildPartialBlock< W0, C0, R0: RegexComponent , R1: RegexComponent > (
582
580
accumulated: R0 , next: R1
583
581
) -> Regex < ( Substring , C0 ) > where R0. RegexOutput == ( W0 , C0 ) {
584
582
let factory = makeFactory ( )
585
- return factory. accumulate ( accumulated, next)
583
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
586
584
}
587
585
}
588
586
@available ( SwiftStdlib 5 . 7 , * )
589
587
extension RegexComponentBuilder {
590
- @available ( SwiftStdlib 5 . 7 , * )
591
588
@_alwaysEmitIntoClient
592
589
public static func buildPartialBlock< W0, C0, C1, R0: RegexComponent , R1: RegexComponent > (
593
590
accumulated: R0 , next: R1
594
591
) -> Regex < ( Substring , C0 , C1 ) > where R0. RegexOutput == ( W0 , C0 , C1 ) {
595
592
let factory = makeFactory ( )
596
- return factory. accumulate ( accumulated, next)
593
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
597
594
}
598
595
}
599
596
@available ( SwiftStdlib 5 . 7 , * )
600
597
extension RegexComponentBuilder {
601
- @available ( SwiftStdlib 5 . 7 , * )
602
598
@_alwaysEmitIntoClient
603
599
public static func buildPartialBlock< W0, C0, C1, C2, R0: RegexComponent , R1: RegexComponent > (
604
600
accumulated: R0 , next: R1
605
601
) -> Regex < ( Substring , C0 , C1 , C2 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 ) {
606
602
let factory = makeFactory ( )
607
- return factory. accumulate ( accumulated, next)
603
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
608
604
}
609
605
}
610
606
@available ( SwiftStdlib 5 . 7 , * )
611
607
extension RegexComponentBuilder {
612
- @available ( SwiftStdlib 5 . 7 , * )
613
608
@_alwaysEmitIntoClient
614
609
public static func buildPartialBlock< W0, C0, C1, C2, C3, R0: RegexComponent , R1: RegexComponent > (
615
610
accumulated: R0 , next: R1
616
611
) -> Regex < ( Substring , C0 , C1 , C2 , C3 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 ) {
617
612
let factory = makeFactory ( )
618
- return factory. accumulate ( accumulated, next)
613
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
619
614
}
620
615
}
621
616
@available ( SwiftStdlib 5 . 7 , * )
622
617
extension RegexComponentBuilder {
623
- @available ( SwiftStdlib 5 . 7 , * )
624
618
@_alwaysEmitIntoClient
625
619
public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, R0: RegexComponent , R1: RegexComponent > (
626
620
accumulated: R0 , next: R1
627
621
) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 ) {
628
622
let factory = makeFactory ( )
629
- return factory. accumulate ( accumulated, next)
623
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
630
624
}
631
625
}
632
626
@available ( SwiftStdlib 5 . 7 , * )
633
627
extension RegexComponentBuilder {
634
- @available ( SwiftStdlib 5 . 7 , * )
635
628
@_alwaysEmitIntoClient
636
629
public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, R0: RegexComponent , R1: RegexComponent > (
637
630
accumulated: R0 , next: R1
638
631
) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 ) {
639
632
let factory = makeFactory ( )
640
- return factory. accumulate ( accumulated, next)
633
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
641
634
}
642
635
}
643
636
@available ( SwiftStdlib 5 . 7 , * )
644
637
extension RegexComponentBuilder {
645
- @available ( SwiftStdlib 5 . 7 , * )
646
638
@_alwaysEmitIntoClient
647
639
public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent , R1: RegexComponent > (
648
640
accumulated: R0 , next: R1
649
641
) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) {
650
642
let factory = makeFactory ( )
651
- return factory. accumulate ( accumulated, next)
643
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
652
644
}
653
645
}
654
646
@available ( SwiftStdlib 5 . 7 , * )
655
647
extension RegexComponentBuilder {
656
- @available ( SwiftStdlib 5 . 7 , * )
657
648
@_alwaysEmitIntoClient
658
649
public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent , R1: RegexComponent > (
659
650
accumulated: R0 , next: R1
660
651
) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
661
652
let factory = makeFactory ( )
662
- return factory. accumulate ( accumulated, next)
653
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
663
654
}
664
655
}
665
656
@available ( SwiftStdlib 5 . 7 , * )
666
657
extension RegexComponentBuilder {
667
- @available ( SwiftStdlib 5 . 7 , * )
668
658
@_alwaysEmitIntoClient
669
659
public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent , R1: RegexComponent > (
670
660
accumulated: R0 , next: R1
671
661
) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
672
662
let factory = makeFactory ( )
673
- return factory. accumulate ( accumulated, next)
663
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
674
664
}
675
665
}
676
666
@available ( SwiftStdlib 5 . 7 , * )
677
667
extension RegexComponentBuilder {
678
- @available ( SwiftStdlib 5 . 7 , * )
679
668
@_alwaysEmitIntoClient
680
669
public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent , R1: RegexComponent > (
681
670
accumulated: R0 , next: R1
682
671
) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 ) {
683
672
let factory = makeFactory ( )
684
- return factory. accumulate ( accumulated, next)
673
+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
685
674
}
686
675
}
687
676
@@ -6884,7 +6873,3 @@ extension TryCapture {
6884
6873
self . init ( factory. captureOptional ( componentBuilder ( ) , reference. _raw, transform) )
6885
6874
}
6886
6875
}
6887
-
6888
-
6889
-
6890
- // END AUTO-GENERATED CONTENT
0 commit comments