22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2021-2023 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
@@ -20,7 +20,7 @@ extension RegexComponentBuilder {
2020 accumulated: R0 , next: R1
2121 ) -> Regex < ( Substring , C1 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 ) {
2222 let factory = makeFactory ( )
23- return factory. accumulate ( accumulated, next)
23+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
2424 }
2525}
2626@available ( SwiftStdlib 5 . 7 , * )
@@ -30,7 +30,7 @@ extension RegexComponentBuilder {
3030 accumulated: R0 , next: R1
3131 ) -> Regex < ( Substring , C1 , C2 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 ) {
3232 let factory = makeFactory ( )
33- return factory. accumulate ( accumulated, next)
33+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
3434 }
3535}
3636@available ( SwiftStdlib 5 . 7 , * )
@@ -40,7 +40,7 @@ extension RegexComponentBuilder {
4040 accumulated: R0 , next: R1
4141 ) -> Regex < ( Substring , C1 , C2 , C3 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 ) {
4242 let factory = makeFactory ( )
43- return factory. accumulate ( accumulated, next)
43+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
4444 }
4545}
4646@available ( SwiftStdlib 5 . 7 , * )
@@ -50,7 +50,7 @@ extension RegexComponentBuilder {
5050 accumulated: R0 , next: R1
5151 ) -> Regex < ( Substring , C1 , C2 , C3 , C4 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 ) {
5252 let factory = makeFactory ( )
53- return factory. accumulate ( accumulated, next)
53+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
5454 }
5555}
5656@available ( SwiftStdlib 5 . 7 , * )
@@ -60,7 +60,7 @@ extension RegexComponentBuilder {
6060 accumulated: R0 , next: R1
6161 ) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 ) {
6262 let factory = makeFactory ( )
63- return factory. accumulate ( accumulated, next)
63+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
6464 }
6565}
6666@available ( SwiftStdlib 5 . 7 , * )
@@ -70,7 +70,7 @@ extension RegexComponentBuilder {
7070 accumulated: R0 , next: R1
7171 ) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 ) {
7272 let factory = makeFactory ( )
73- return factory. accumulate ( accumulated, next)
73+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
7474 }
7575}
7676@available ( SwiftStdlib 5 . 7 , * )
@@ -80,7 +80,7 @@ extension RegexComponentBuilder {
8080 accumulated: R0 , next: R1
8181 ) -> Regex < ( Substring , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R0. RegexOutput == W0 , R1. RegexOutput == ( W1 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
8282 let factory = makeFactory ( )
83- return factory. accumulate ( accumulated, next)
83+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
8484 }
8585}
8686@available ( SwiftStdlib 5 . 7 , * )
@@ -90,7 +90,7 @@ extension RegexComponentBuilder {
9090 accumulated: R0 , next: R1
9191 ) -> 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 ) {
9292 let factory = makeFactory ( )
93- return factory. accumulate ( accumulated, next)
93+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
9494 }
9595}
9696@available ( SwiftStdlib 5 . 7 , * )
@@ -100,7 +100,7 @@ extension RegexComponentBuilder {
100100 accumulated: R0 , next: R1
101101 ) -> 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 ) {
102102 let factory = makeFactory ( )
103- return factory. accumulate ( accumulated, next)
103+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
104104 }
105105}
106106@available ( SwiftStdlib 5 . 7 , * )
@@ -110,7 +110,7 @@ extension RegexComponentBuilder {
110110 accumulated: R0 , next: R1
111111 ) -> 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 ) {
112112 let factory = makeFactory ( )
113- return factory. accumulate ( accumulated, next)
113+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, next)
114114 }
115115}
116116@available ( SwiftStdlib 5 . 7 , * )
@@ -565,123 +565,112 @@ extension RegexComponentBuilder {
565565}
566566@available ( SwiftStdlib 5 . 7 , * )
567567extension RegexComponentBuilder {
568- @available ( SwiftStdlib 5 . 7 , * )
569568 @_alwaysEmitIntoClient
570569 public static func buildPartialBlock< W0, R0: RegexComponent , R1: RegexComponent > (
571570 accumulated: R0 , next: R1
572571 ) -> Regex < Substring > where R0. RegexOutput == W0 {
573572 let factory = makeFactory ( )
574- return factory. accumulate ( accumulated, next)
573+ return factory. accumulate ( ignoringOutputTypeOf : accumulated, andAlso : next)
575574 }
576575}
577576@available ( SwiftStdlib 5 . 7 , * )
578577extension RegexComponentBuilder {
579- @available ( SwiftStdlib 5 . 7 , * )
580578 @_alwaysEmitIntoClient
581579 public static func buildPartialBlock< W0, C0, R0: RegexComponent , R1: RegexComponent > (
582580 accumulated: R0 , next: R1
583581 ) -> Regex < ( Substring , C0 ) > where R0. RegexOutput == ( W0 , C0 ) {
584582 let factory = makeFactory ( )
585- return factory. accumulate ( accumulated, next)
583+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
586584 }
587585}
588586@available ( SwiftStdlib 5 . 7 , * )
589587extension RegexComponentBuilder {
590- @available ( SwiftStdlib 5 . 7 , * )
591588 @_alwaysEmitIntoClient
592589 public static func buildPartialBlock< W0, C0, C1, R0: RegexComponent , R1: RegexComponent > (
593590 accumulated: R0 , next: R1
594591 ) -> Regex < ( Substring , C0 , C1 ) > where R0. RegexOutput == ( W0 , C0 , C1 ) {
595592 let factory = makeFactory ( )
596- return factory. accumulate ( accumulated, next)
593+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
597594 }
598595}
599596@available ( SwiftStdlib 5 . 7 , * )
600597extension RegexComponentBuilder {
601- @available ( SwiftStdlib 5 . 7 , * )
602598 @_alwaysEmitIntoClient
603599 public static func buildPartialBlock< W0, C0, C1, C2, R0: RegexComponent , R1: RegexComponent > (
604600 accumulated: R0 , next: R1
605601 ) -> Regex < ( Substring , C0 , C1 , C2 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 ) {
606602 let factory = makeFactory ( )
607- return factory. accumulate ( accumulated, next)
603+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
608604 }
609605}
610606@available ( SwiftStdlib 5 . 7 , * )
611607extension RegexComponentBuilder {
612- @available ( SwiftStdlib 5 . 7 , * )
613608 @_alwaysEmitIntoClient
614609 public static func buildPartialBlock< W0, C0, C1, C2, C3, R0: RegexComponent , R1: RegexComponent > (
615610 accumulated: R0 , next: R1
616611 ) -> Regex < ( Substring , C0 , C1 , C2 , C3 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 ) {
617612 let factory = makeFactory ( )
618- return factory. accumulate ( accumulated, next)
613+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
619614 }
620615}
621616@available ( SwiftStdlib 5 . 7 , * )
622617extension RegexComponentBuilder {
623- @available ( SwiftStdlib 5 . 7 , * )
624618 @_alwaysEmitIntoClient
625619 public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, R0: RegexComponent , R1: RegexComponent > (
626620 accumulated: R0 , next: R1
627621 ) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 ) {
628622 let factory = makeFactory ( )
629- return factory. accumulate ( accumulated, next)
623+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
630624 }
631625}
632626@available ( SwiftStdlib 5 . 7 , * )
633627extension RegexComponentBuilder {
634- @available ( SwiftStdlib 5 . 7 , * )
635628 @_alwaysEmitIntoClient
636629 public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, R0: RegexComponent , R1: RegexComponent > (
637630 accumulated: R0 , next: R1
638631 ) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 ) {
639632 let factory = makeFactory ( )
640- return factory. accumulate ( accumulated, next)
633+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
641634 }
642635}
643636@available ( SwiftStdlib 5 . 7 , * )
644637extension RegexComponentBuilder {
645- @available ( SwiftStdlib 5 . 7 , * )
646638 @_alwaysEmitIntoClient
647639 public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent , R1: RegexComponent > (
648640 accumulated: R0 , next: R1
649641 ) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 ) {
650642 let factory = makeFactory ( )
651- return factory. accumulate ( accumulated, next)
643+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
652644 }
653645}
654646@available ( SwiftStdlib 5 . 7 , * )
655647extension RegexComponentBuilder {
656- @available ( SwiftStdlib 5 . 7 , * )
657648 @_alwaysEmitIntoClient
658649 public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent , R1: RegexComponent > (
659650 accumulated: R0 , next: R1
660651 ) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
661652 let factory = makeFactory ( )
662- return factory. accumulate ( accumulated, next)
653+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
663654 }
664655}
665656@available ( SwiftStdlib 5 . 7 , * )
666657extension RegexComponentBuilder {
667- @available ( SwiftStdlib 5 . 7 , * )
668658 @_alwaysEmitIntoClient
669659 public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent , R1: RegexComponent > (
670660 accumulated: R0 , next: R1
671661 ) -> Regex < ( Substring , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) > where R0. RegexOutput == ( W0 , C0 , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
672662 let factory = makeFactory ( )
673- return factory. accumulate ( accumulated, next)
663+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
674664 }
675665}
676666@available ( SwiftStdlib 5 . 7 , * )
677667extension RegexComponentBuilder {
678- @available ( SwiftStdlib 5 . 7 , * )
679668 @_alwaysEmitIntoClient
680669 public static func buildPartialBlock< W0, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent , R1: RegexComponent > (
681670 accumulated: R0 , next: R1
682671 ) -> 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 ) {
683672 let factory = makeFactory ( )
684- return factory. accumulate ( accumulated, next)
673+ return factory. accumulate ( accumulated, ignoringOutputTypeOf : next)
685674 }
686675}
687676
@@ -6884,7 +6873,3 @@ extension TryCapture {
68846873 self . init ( factory. captureOptional ( componentBuilder ( ) , reference. _raw, transform) )
68856874 }
68866875}
6887-
6888-
6889-
6890- // END AUTO-GENERATED CONTENT
0 commit comments