From 6d0fb5ab388aa171934d00cea4e7bd9c15882369 Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 09:19:51 -0600 Subject: [PATCH 1/7] wip: simple nested test --- Tests/RegexTests/MatchTests.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Tests/RegexTests/MatchTests.swift b/Tests/RegexTests/MatchTests.swift index dab53cc1c..cb12c7c48 100644 --- a/Tests/RegexTests/MatchTests.swift +++ b/Tests/RegexTests/MatchTests.swift @@ -1549,5 +1549,20 @@ extension RegexTests { // TODO: Add test for implied grapheme cluster requirement at group boundaries // TODO: Add test for grapheme boundaries at start/end of match + + func testNestedOptional() { + let regex: Regex<(Substring, Substring??)> = try! Regex(#""" + ab|(c|)? + """#) + + XCTAssertEqual("", "".wholeMatch(of: regex)!.0) + XCTAssertEqual("ab", "ab".wholeMatch(of: regex)!.0) + XCTAssertEqual("c", "c".wholeMatch(of: regex)!.0) + + XCTAssertEqual(.some(.some("c")), "c".wholeMatch(of: regex)!.1) + XCTAssertEqual(.some(.some("")), "".wholeMatch(of: regex)!.1) + XCTAssertEqual(.some(nil), "ab".wholeMatch(of: regex)!.1) + + } } From f1105ff5713b303ab9793edf7d4c5183749b4688 Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 10:10:56 -0600 Subject: [PATCH 2/7] wip --- .../VariadicsGenerator.swift | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/Sources/VariadicsGenerator/VariadicsGenerator.swift b/Sources/VariadicsGenerator/VariadicsGenerator.swift index f57cd8caa..3fb186b9c 100644 --- a/Sources/VariadicsGenerator/VariadicsGenerator.swift +++ b/Sources/VariadicsGenerator/VariadicsGenerator.swift @@ -58,6 +58,13 @@ struct Permutations: Sequence { } } +func captureTypeList(_ arity: Int) -> String { + (0..<arity).map { "C\($0)" }.joined(separator: ", ") +} +func optionalCaptureTypeList(_ arity: Int) -> String { + (0..<arity).map { "C\($0)?" }.joined(separator: ", ") +} + func output(_ content: String) { print(content, terminator: "") } @@ -344,20 +351,19 @@ struct VariadicsGenerator: ParsableCommand { self.genericParams = { var result = "" if arity > 0 { - result += "W" - result += (0..<arity).map { ", C\($0)" }.joined() + result += "W, " + result += captureTypeList(arity) result += ", " } result += "Component: \(regexComponentProtocolName)" return result }() - - let captures = (0..<arity).map { "C\($0)" } - let capturesJoined = captures.joined(separator: ", ") + + let capturesJoined = captureTypeList(arity) self.quantifiedCaptures = { switch kind { case .zeroOrOne, .zeroOrMore: - return captures.map { "\($0)?" }.joined(separator: ", ") + return optionalCaptureTypeList(arity) case .oneOrMore: return capturesJoined } @@ -434,15 +440,14 @@ struct VariadicsGenerator: ParsableCommand { let genericParams: String = { var result = "" if arity > 0 { - result += "W" - result += (0..<arity).map { ", C\($0)" }.joined() + result += "W, " + result += captureTypeList(arity) result += ", " } result += "Component: \(regexComponentProtocolName)" return result }() - let captures = (0..<arity).map { "C\($0)" } - let capturesJoined = captures.joined(separator: ", ") + let capturesJoined = captureTypeList(arity) let matchType = arity == 0 ? baseMatchTypeName : "(\(baseMatchTypeName), \(capturesJoined))" @@ -586,7 +591,7 @@ struct VariadicsGenerator: ParsableCommand { func emitUnaryAlternationBuildBlock(arity: Int) { assert(arity > 0) - let captures = (0..<arity).map { "C\($0)" }.joined(separator: ", ") + let captures = captureTypeList(arity) let genericParams: String = { if arity == 0 { return "R" @@ -597,7 +602,7 @@ struct VariadicsGenerator: ParsableCommand { where R: \(regexComponentProtocolName), \ R.\(outputAssociatedTypeName) == (W, \(captures)) """ - let resultCaptures = (0..<arity).map { "C\($0)?" }.joined(separator: ", ") + let resultCaptures = optionalCaptureTypeList(arity) output(""" \(defaultAvailableAttr) extension \(altBuilderName) { @@ -614,14 +619,14 @@ struct VariadicsGenerator: ParsableCommand { let disfavored = arity == 0 ? "@_disfavoredOverload\n" : "" let genericParams = arity == 0 ? "R: \(regexComponentProtocolName), W" - : "R: \(regexComponentProtocolName), W, " + (0..<arity).map { "C\($0)" }.joined(separator: ", ") + : "R: \(regexComponentProtocolName), W, " + captureTypeList(arity) let matchType = arity == 0 ? "W" - : "(W, " + (0..<arity).map { "C\($0)" }.joined(separator: ", ") + ")" + : "(W, " + captureTypeList(arity) + ")" func newMatchType(newCaptureType: String) -> String { return arity == 0 ? "(\(baseMatchTypeName), \(newCaptureType))" - : "(\(baseMatchTypeName), \(newCaptureType), " + (0..<arity).map { "C\($0)" }.joined(separator: ", ") + ")" + : "(\(baseMatchTypeName), \(newCaptureType), " + captureTypeList(arity) + ")" } let rawNewMatchType = newMatchType(newCaptureType: "W") let transformedNewMatchType = newMatchType(newCaptureType: "NewCapture") From 08f7404bd1980d7ec36ae6dd3864737a34e7b398 Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 10:14:52 -0600 Subject: [PATCH 3/7] Number captures consistently --- Sources/RegexBuilder/Variadics.swift | 1020 ++++++++--------- .../VariadicsGenerator.swift | 4 +- 2 files changed, 512 insertions(+), 512 deletions(-) diff --git a/Sources/RegexBuilder/Variadics.swift b/Sources/RegexBuilder/Variadics.swift index 356853ec5..7df502b7a 100644 --- a/Sources/RegexBuilder/Variadics.swift +++ b/Sources/RegexBuilder/Variadics.swift @@ -745,10 +745,10 @@ extension Repeat { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -757,10 +757,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -769,19 +769,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?)> where Component.RegexOutput == (W, C0) { + ) -> Regex<(Substring, C1?)> where Component.RegexOutput == (W, C1) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -790,10 +790,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -803,10 +803,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -815,10 +815,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -828,50 +828,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0), R.Bound == Int { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?), Component.RegexOutput == (W, C0), R.Bound == Int { + ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -880,10 +880,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -892,19 +892,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?)> where Component.RegexOutput == (W, C0, C1) { + ) -> Regex<(Substring, C1?, C2?)> where Component.RegexOutput == (W, C1, C2) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -913,10 +913,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -926,10 +926,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -938,10 +938,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -951,50 +951,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?), Component.RegexOutput == (W, C0, C1), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1003,10 +1003,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1015,19 +1015,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?)> where Component.RegexOutput == (W, C0, C1, C2) { + ) -> Regex<(Substring, C1?, C2?, C3?)> where Component.RegexOutput == (W, C1, C2, C3) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1036,10 +1036,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1049,10 +1049,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1061,10 +1061,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1074,50 +1074,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?), Component.RegexOutput == (W, C0, C1, C2), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1126,10 +1126,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1138,19 +1138,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?)> where Component.RegexOutput == (W, C0, C1, C2, C3) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?)> where Component.RegexOutput == (W, C1, C2, C3, C4) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1159,10 +1159,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1172,10 +1172,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1184,10 +1184,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1197,50 +1197,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?), Component.RegexOutput == (W, C0, C1, C2, C3), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1249,10 +1249,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1261,19 +1261,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?, C4?)> where Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1282,10 +1282,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1295,10 +1295,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1307,10 +1307,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1320,50 +1320,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C0, C1, C2, C3, C4), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1372,10 +1372,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1384,19 +1384,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?, C4?, C5?)> where Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1405,10 +1405,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1418,10 +1418,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1430,10 +1430,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1443,50 +1443,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1495,10 +1495,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1507,19 +1507,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?)> where Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1528,10 +1528,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1541,10 +1541,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1553,10 +1553,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1566,50 +1566,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1618,10 +1618,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1630,19 +1630,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1651,10 +1651,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1664,10 +1664,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1676,10 +1676,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1689,50 +1689,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1741,10 +1741,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1753,19 +1753,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1774,10 +1774,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1787,10 +1787,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1799,10 +1799,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1812,50 +1812,50 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component.regex.root)) } @@ -1864,10 +1864,10 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrOne, kind, component().regex.root)) } @@ -1876,19 +1876,19 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildLimitedAvailability<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component - ) -> Regex<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { .init(node: .quantification(.zeroOrOne, .default, component.regex.root)) } } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component.regex.root)) } @@ -1897,10 +1897,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.zeroOrMore, kind, component().regex.root)) } @@ -1910,10 +1910,10 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component.regex.root)) } @@ -1922,10 +1922,10 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { let kind: DSLTree.QuantificationKind = behavior.map { .explicit($0.dslTreeKind) } ?? .default self.init(node: .quantification(.oneOrMore, kind, component().regex.root)) } @@ -1935,40 +1935,40 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, count: Int - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { assert(count > 0, "Must specify a positive count") // TODO: Emit a warning about `repeatMatch(count: 0)` or `repeatMatch(count: 1)` self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.Bound == Int { + ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.Bound == Int { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component().regex.root)) } } @@ -1996,9 +1996,9 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2006,18 +2006,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0), Component.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2025,18 +2025,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1), Component.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2044,18 +2044,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2), Component.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2063,18 +2063,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3), Component.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2082,18 +2082,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4), Component.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2101,18 +2101,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2120,18 +2120,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2139,18 +2139,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2158,18 +2158,18 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) } } @@ -2177,9 +2177,9 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component - ) where RegexOutput == (Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) } } @@ -2771,70 +2771,70 @@ extension AlternationBuilder { @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0>(first regex: R) -> ChoiceOf<(W, C0?)> where R: RegexComponent, R.RegexOutput == (W, C0) { + public static func buildPartialBlock<R, W, C1>(first regex: R) -> ChoiceOf<(W, C1?)> where R: RegexComponent, R.RegexOutput == (W, C1) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1>(first regex: R) -> ChoiceOf<(W, C0?, C1?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1) { + public static func buildPartialBlock<R, W, C1, C2>(first regex: R) -> ChoiceOf<(W, C1?, C2?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2) { + public static func buildPartialBlock<R, W, C1, C2, C3>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3, C4>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?, C4?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3, C4) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3, C4, C5>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?, C4?, C5?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3, C4, C5, C6>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?, C4?, C5?, C6?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3, C4, C5, C6, C7>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7, C8>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3, C4, C5, C6, C7, C8>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<R, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>(first regex: R) -> ChoiceOf<(W, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R: RegexComponent, R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { .init(node: .orderedChoice([regex.regex.root])) } } @@ -3010,24 +3010,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0>( + public init<R: RegexComponent, W, C1>( _ component: R - ) where RegexOutput == (Substring, W, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0>( + public init<R: RegexComponent, W, C1>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3036,11 +3036,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture( reference: reference.id, .transform( @@ -3054,10 +3054,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3066,11 +3066,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture( reference: reference.id, .transform( @@ -3086,27 +3086,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0>( + public init<R: RegexComponent, W, C1>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0>( + public init<R: RegexComponent, W, C1>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3115,11 +3115,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture( reference: reference.id, .transform( @@ -3133,10 +3133,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3145,11 +3145,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0), R.RegexOutput == (W, C0) { + ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { self.init(node: .capture( reference: reference.id, .transform( @@ -3165,24 +3165,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1>( + public init<R: RegexComponent, W, C1, C2>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1>( + public init<R: RegexComponent, W, C1, C2>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3191,11 +3191,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture( reference: reference.id, .transform( @@ -3209,10 +3209,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3221,11 +3221,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture( reference: reference.id, .transform( @@ -3241,27 +3241,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1>( + public init<R: RegexComponent, W, C1, C2>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1>( + public init<R: RegexComponent, W, C1, C2>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3270,11 +3270,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture( reference: reference.id, .transform( @@ -3288,10 +3288,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3300,11 +3300,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1), R.RegexOutput == (W, C0, C1) { + ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture( reference: reference.id, .transform( @@ -3320,24 +3320,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2>( + public init<R: RegexComponent, W, C1, C2, C3>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2>( + public init<R: RegexComponent, W, C1, C2, C3>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3346,11 +3346,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture( reference: reference.id, .transform( @@ -3364,10 +3364,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3376,11 +3376,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture( reference: reference.id, .transform( @@ -3396,27 +3396,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2>( + public init<R: RegexComponent, W, C1, C2, C3>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2>( + public init<R: RegexComponent, W, C1, C2, C3>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3425,11 +3425,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture( reference: reference.id, .transform( @@ -3443,10 +3443,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3455,11 +3455,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2), R.RegexOutput == (W, C0, C1, C2) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture( reference: reference.id, .transform( @@ -3475,24 +3475,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3501,11 +3501,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture( reference: reference.id, .transform( @@ -3519,10 +3519,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3531,11 +3531,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture( reference: reference.id, .transform( @@ -3551,27 +3551,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3580,11 +3580,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture( reference: reference.id, .transform( @@ -3598,10 +3598,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3610,11 +3610,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3), R.RegexOutput == (W, C0, C1, C2, C3) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture( reference: reference.id, .transform( @@ -3630,24 +3630,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3656,11 +3656,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture( reference: reference.id, .transform( @@ -3674,10 +3674,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3686,11 +3686,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture( reference: reference.id, .transform( @@ -3706,27 +3706,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3735,11 +3735,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture( reference: reference.id, .transform( @@ -3753,10 +3753,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3765,11 +3765,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4), R.RegexOutput == (W, C0, C1, C2, C3, C4) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture( reference: reference.id, .transform( @@ -3785,24 +3785,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3811,11 +3811,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture( reference: reference.id, .transform( @@ -3829,10 +3829,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3841,11 +3841,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture( reference: reference.id, .transform( @@ -3861,27 +3861,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3890,11 +3890,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture( reference: reference.id, .transform( @@ -3908,10 +3908,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3920,11 +3920,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture( reference: reference.id, .transform( @@ -3940,24 +3940,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -3966,11 +3966,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture( reference: reference.id, .transform( @@ -3984,10 +3984,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -3996,11 +3996,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture( reference: reference.id, .transform( @@ -4016,27 +4016,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4045,11 +4045,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture( reference: reference.id, .transform( @@ -4063,10 +4063,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4075,11 +4075,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture( reference: reference.id, .transform( @@ -4095,24 +4095,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4121,11 +4121,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture( reference: reference.id, .transform( @@ -4139,10 +4139,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4151,11 +4151,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture( reference: reference.id, .transform( @@ -4171,27 +4171,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4200,11 +4200,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture( reference: reference.id, .transform( @@ -4218,10 +4218,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4230,11 +4230,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture( reference: reference.id, .transform( @@ -4250,24 +4250,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4276,11 +4276,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture( reference: reference.id, .transform( @@ -4294,10 +4294,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4306,11 +4306,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture( reference: reference.id, .transform( @@ -4326,27 +4326,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4355,11 +4355,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture( reference: reference.id, .transform( @@ -4373,10 +4373,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4385,11 +4385,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture( reference: reference.id, .transform( @@ -4405,24 +4405,24 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( _ component: R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( _ component: R, as reference: Reference<W> - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(reference: reference.id, component.regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4431,11 +4431,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture( reference: reference.id, .transform( @@ -4449,10 +4449,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4461,11 +4461,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture( reference: reference.id, .transform( @@ -4481,27 +4481,27 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R - ) where RegexOutput == (Substring, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture( reference: reference.id, component().regex.root)) } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any @@ -4510,11 +4510,11 @@ extension Capture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture( reference: reference.id, .transform( @@ -4528,10 +4528,10 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(.transform( CaptureTransform(resultType: NewCapture.self) { try transform($0) as Any? @@ -4540,11 +4540,11 @@ extension TryCapture { } @available(SwiftStdlib 5.7, *) - public init<R: RegexComponent, W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? - ) where RegexOutput == (Substring, NewCapture, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture( reference: reference.id, .transform( diff --git a/Sources/VariadicsGenerator/VariadicsGenerator.swift b/Sources/VariadicsGenerator/VariadicsGenerator.swift index 3fb186b9c..05408509c 100644 --- a/Sources/VariadicsGenerator/VariadicsGenerator.swift +++ b/Sources/VariadicsGenerator/VariadicsGenerator.swift @@ -59,10 +59,10 @@ struct Permutations: Sequence { } func captureTypeList(_ arity: Int) -> String { - (0..<arity).map { "C\($0)" }.joined(separator: ", ") + (0..<arity).map { "C\($0+1)" }.joined(separator: ", ") } func optionalCaptureTypeList(_ arity: Int) -> String { - (0..<arity).map { "C\($0)?" }.joined(separator: ", ") + (0..<arity).map { "C\($0+1)?" }.joined(separator: ", ") } func output(_ content: String) { From 5f8d02f4a18a591e42dfc7d64d0f787b6cefbf2a Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 10:30:05 -0600 Subject: [PATCH 4/7] moar consistency --- Sources/RegexBuilder/Variadics.swift | 220 +++++++++--------- .../VariadicsGenerator.swift | 34 +-- 2 files changed, 128 insertions(+), 126 deletions(-) diff --git a/Sources/RegexBuilder/Variadics.swift b/Sources/RegexBuilder/Variadics.swift index 7df502b7a..70a5a54dc 100644 --- a/Sources/RegexBuilder/Variadics.swift +++ b/Sources/RegexBuilder/Variadics.swift @@ -16,495 +16,495 @@ @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0) { + ) -> Regex<(Substring, C1)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1) { + ) -> Regex<(Substring, C1, C2)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2) { + ) -> Regex<(Substring, C1, C2, C3)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3) { + ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3, C4) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4, C5) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6, C7) { + ) -> 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) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6, C7, C8) { + ) -> 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) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) -> 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) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1) { + ) -> Regex<(Substring, C1, C2)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2) { + ) -> Regex<(Substring, C1, C2, C3)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3) { + ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2) { + ) -> Regex<(Substring, C1, C2, C3)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3) { + ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3) { + ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7, C8), R1.RegexOutput == (W1, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7, C8), R1.RegexOutput == (W1, C9, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) - public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( + public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 - ) -> 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), R1.RegexOutput == (W1, C9) { + ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R1.RegexOutput == (W1, C10) { .init(node: accumulated.regex.root.appending(next.regex.root)) } } diff --git a/Sources/VariadicsGenerator/VariadicsGenerator.swift b/Sources/VariadicsGenerator/VariadicsGenerator.swift index 05408509c..b6f51997e 100644 --- a/Sources/VariadicsGenerator/VariadicsGenerator.swift +++ b/Sources/VariadicsGenerator/VariadicsGenerator.swift @@ -58,11 +58,15 @@ struct Permutations: Sequence { } } -func captureTypeList(_ arity: Int) -> String { - (0..<arity).map { "C\($0+1)" }.joined(separator: ", ") -} -func optionalCaptureTypeList(_ arity: Int) -> String { - (0..<arity).map { "C\($0+1)?" }.joined(separator: ", ") +func captureTypeList( + _ arity: Int, + lowerBound: Int = 0, + optional: Bool = false +) -> String { + let opt = optional ? "?" : "" + return (lowerBound..<arity).map { + "C\($0+1)\(opt)" + }.joined(separator: ", ") } func output(_ content: String) { @@ -211,10 +215,8 @@ struct VariadicsGenerator: ParsableCommand { func emitConcatenation(leftArity: Int, rightArity: Int) { let genericParams: String = { - var result = "W0, W1" - result += (0..<leftArity+rightArity).map { - ", C\($0)" - }.joined() + var result = "W0, W1, " + result += captureTypeList(leftArity+rightArity) result += ", R0: \(regexComponentProtocolName), R1: \(regexComponentProtocolName)" return result }() @@ -226,16 +228,16 @@ struct VariadicsGenerator: ParsableCommand { if leftArity == 0 { result += "W0" } else { - result += "(W0" - result += (0..<leftArity).map { ", C\($0)" }.joined() + result += "(W0, " + result += captureTypeList(leftArity) result += ")" } result += ", R1.\(outputAssociatedTypeName) == " if rightArity == 0 { result += "W1" } else { - result += "(W1" - result += (leftArity..<leftArity+rightArity).map { ", C\($0)" }.joined() + result += "(W1, " + result += captureTypeList(leftArity+rightArity, lowerBound: leftArity) result += ")" } return result @@ -246,7 +248,7 @@ struct VariadicsGenerator: ParsableCommand { return baseMatchTypeName } else { return "(\(baseMatchTypeName), " - + (0..<leftArity+rightArity).map { "C\($0)" }.joined(separator: ", ") + + captureTypeList(leftArity+rightArity) + ")" } }() @@ -363,7 +365,7 @@ struct VariadicsGenerator: ParsableCommand { self.quantifiedCaptures = { switch kind { case .zeroOrOne, .zeroOrMore: - return optionalCaptureTypeList(arity) + return captureTypeList(arity, optional: true) case .oneOrMore: return capturesJoined } @@ -602,7 +604,7 @@ struct VariadicsGenerator: ParsableCommand { where R: \(regexComponentProtocolName), \ R.\(outputAssociatedTypeName) == (W, \(captures)) """ - let resultCaptures = optionalCaptureTypeList(arity) + let resultCaptures = captureTypeList(arity, optional: true) output(""" \(defaultAvailableAttr) extension \(altBuilderName) { From 7363984bd634c0fe2553525b1af39e852f426cd1 Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 11:25:12 -0600 Subject: [PATCH 5/7] Remove redundant availability --- Sources/RegexBuilder/Variadics.swift | 383 ------------------ .../VariadicsGenerator.swift | 22 - 2 files changed, 405 deletions(-) diff --git a/Sources/RegexBuilder/Variadics.swift b/Sources/RegexBuilder/Variadics.swift index 70a5a54dc..d2986e39d 100644 --- a/Sources/RegexBuilder/Variadics.swift +++ b/Sources/RegexBuilder/Variadics.swift @@ -15,7 +15,6 @@ @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1) { @@ -24,7 +23,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2) { @@ -33,7 +31,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3) { @@ -42,7 +39,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4) { @@ -51,7 +47,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4, C5) { @@ -60,7 +55,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6) { @@ -69,7 +63,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == W0, R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7) { @@ -78,7 +71,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> 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) { @@ -87,7 +79,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> 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) { @@ -96,7 +87,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> 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) { @@ -105,7 +95,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2) { @@ -114,7 +103,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3) { @@ -123,7 +111,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4) { @@ -132,7 +119,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5) { @@ -141,7 +127,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6) { @@ -150,7 +135,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7) { @@ -159,7 +143,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8) { @@ -168,7 +151,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -177,7 +159,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -186,7 +167,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3) { @@ -195,7 +175,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4) { @@ -204,7 +183,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5) { @@ -213,7 +191,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6) { @@ -222,7 +199,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7) { @@ -231,7 +207,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8) { @@ -240,7 +215,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8, C9) { @@ -249,7 +223,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -258,7 +231,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4) { @@ -267,7 +239,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5) { @@ -276,7 +247,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6) { @@ -285,7 +255,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7) { @@ -294,7 +263,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8) { @@ -303,7 +271,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8, C9) { @@ -312,7 +279,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8, C9, C10) { @@ -321,7 +287,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5) { @@ -330,7 +295,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6) { @@ -339,7 +303,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7) { @@ -348,7 +311,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8) { @@ -357,7 +319,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8, C9) { @@ -366,7 +327,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8, C9, C10) { @@ -375,7 +335,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6) { @@ -384,7 +343,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7) { @@ -393,7 +351,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8) { @@ -402,7 +359,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8, C9) { @@ -411,7 +367,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8, C9, C10) { @@ -420,7 +375,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7) { @@ -429,7 +383,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8) { @@ -438,7 +391,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8, C9) { @@ -447,7 +399,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8, C9, C10) { @@ -456,7 +407,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8) { @@ -465,7 +415,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8, C9) { @@ -474,7 +423,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8, C9, C10) { @@ -483,7 +431,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7, C8), R1.RegexOutput == (W1, C9) { @@ -492,7 +439,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7, C8), R1.RegexOutput == (W1, C9, C10) { @@ -501,7 +447,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<W0, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)> where R0.RegexOutput == (W0, C1, C2, C3, C4, C5, C6, C7, C8, C9), R1.RegexOutput == (W1, C10) { @@ -611,7 +556,6 @@ extension RegexComponentBuilder { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ component: Component, @@ -624,7 +568,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @@ -637,7 +580,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<Component: RegexComponent>( _ component: Component ) -> Regex<Substring> { @@ -646,7 +588,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ component: Component, @@ -659,7 +600,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @@ -673,7 +613,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ component: Component, @@ -686,7 +625,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @@ -700,7 +638,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( _ component: Component, @@ -711,7 +648,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent>( count: Int, @@ -722,7 +658,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent, R: RangeExpression>( _ component: Component, @@ -732,7 +667,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<Component: RegexComponent, R: RangeExpression>( _ expression: R, @@ -744,7 +678,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -756,7 +689,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -768,7 +700,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?)> where Component.RegexOutput == (W, C1) { @@ -777,7 +708,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -789,7 +719,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -802,7 +731,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -814,7 +742,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -827,7 +754,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( _ component: Component, count: Int @@ -837,7 +763,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -847,7 +772,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -856,7 +780,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -867,7 +790,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -879,7 +801,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -891,7 +812,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?)> where Component.RegexOutput == (W, C1, C2) { @@ -900,7 +820,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -912,7 +831,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -925,7 +843,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -937,7 +854,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -950,7 +866,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( _ component: Component, count: Int @@ -960,7 +875,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -970,7 +884,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -979,7 +892,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -990,7 +902,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1002,7 +913,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1014,7 +924,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?)> where Component.RegexOutput == (W, C1, C2, C3) { @@ -1023,7 +932,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1035,7 +943,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1048,7 +955,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1060,7 +966,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1073,7 +978,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, count: Int @@ -1083,7 +987,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1093,7 +996,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1102,7 +1004,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1113,7 +1014,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1125,7 +1025,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1137,7 +1036,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?)> where Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1146,7 +1044,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1158,7 +1055,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1171,7 +1067,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1183,7 +1078,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1196,7 +1090,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, count: Int @@ -1206,7 +1099,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1216,7 +1108,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1225,7 +1116,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1236,7 +1126,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1248,7 +1137,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1260,7 +1148,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1269,7 +1156,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1281,7 +1167,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1294,7 +1179,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1306,7 +1190,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1319,7 +1202,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, count: Int @@ -1329,7 +1211,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1339,7 +1220,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1348,7 +1228,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1359,7 +1238,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1371,7 +1249,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1383,7 +1260,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1392,7 +1268,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1404,7 +1279,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1417,7 +1291,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1429,7 +1302,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1442,7 +1314,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, count: Int @@ -1452,7 +1323,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1462,7 +1332,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1471,7 +1340,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1482,7 +1350,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1494,7 +1361,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1506,7 +1372,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1515,7 +1380,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1527,7 +1391,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1540,7 +1403,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1552,7 +1414,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1565,7 +1426,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, count: Int @@ -1575,7 +1435,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1585,7 +1444,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1594,7 +1452,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1605,7 +1462,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1617,7 +1473,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1629,7 +1484,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1638,7 +1492,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1650,7 +1503,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1663,7 +1515,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1675,7 +1526,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1688,7 +1538,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, count: Int @@ -1698,7 +1547,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1708,7 +1556,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1717,7 +1564,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1728,7 +1574,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1740,7 +1585,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1752,7 +1596,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1761,7 +1604,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1773,7 +1615,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1786,7 +1627,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1798,7 +1638,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1811,7 +1650,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, count: Int @@ -1821,7 +1659,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1831,7 +1668,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1840,7 +1676,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -1851,7 +1686,6 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1863,7 +1697,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1875,7 +1708,6 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension RegexComponentBuilder { - @available(SwiftStdlib 5.7, *) public static func buildLimitedAvailability<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component ) -> Regex<(Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)> where Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1884,7 +1716,6 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1896,7 +1727,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1909,7 +1739,6 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -1921,7 +1750,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1934,7 +1762,6 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, count: Int @@ -1944,7 +1771,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component @@ -1954,7 +1780,6 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, @@ -1963,7 +1788,6 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -2185,7 +2009,6 @@ extension Local { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<Substring> where R0: RegexComponent, R1: RegexComponent { @@ -2194,7 +2017,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0) { @@ -2203,7 +2025,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1) { @@ -2212,7 +2033,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2) { @@ -2221,7 +2041,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3) { @@ -2230,7 +2049,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3, C4>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?, C4?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3, C4) { @@ -2239,7 +2057,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3, C4, C5>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?, C4?, C5?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5) { @@ -2248,7 +2065,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3, C4, C5, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6) { @@ -2257,7 +2073,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3, C4, C5, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6, C7) { @@ -2266,7 +2081,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -2275,7 +2089,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, R1, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0?, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R1.RegexOutput == (W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -2284,7 +2097,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0) { @@ -2293,7 +2105,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1) { @@ -2302,7 +2113,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2) { @@ -2311,7 +2121,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3) { @@ -2320,7 +2129,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3, C4>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?, C4?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4) { @@ -2329,7 +2137,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3, C4, C5>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?, C4?, C5?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5) { @@ -2338,7 +2145,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3, C4, C5, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?, C4?, C5?, C6?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6) { @@ -2347,7 +2153,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3, C4, C5, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7) { @@ -2356,7 +2161,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3, C4, C5, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -2365,7 +2169,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, R1, W1, C1, C2, C3, C4, C5, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0), R1.RegexOutput == (W1, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -2374,7 +2177,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1) { @@ -2383,7 +2185,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2) { @@ -2392,7 +2193,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3) { @@ -2401,7 +2201,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3, C4>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?, C4?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4) { @@ -2410,7 +2209,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3, C4, C5>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?, C4?, C5?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5) { @@ -2419,7 +2217,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3, C4, C5, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?, C4?, C5?, C6?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6) { @@ -2428,7 +2225,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3, C4, C5, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?, C4?, C5?, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7) { @@ -2437,7 +2233,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3, C4, C5, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8) { @@ -2446,7 +2241,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, R1, W1, C2, C3, C4, C5, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1), R1.RegexOutput == (W1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -2455,7 +2249,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2) { @@ -2464,7 +2257,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3) { @@ -2473,7 +2265,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3, C4>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?, C4?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4) { @@ -2482,7 +2273,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3, C4, C5>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?, C4?, C5?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5) { @@ -2491,7 +2281,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3, C4, C5, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?, C4?, C5?, C6?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6) { @@ -2500,7 +2289,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3, C4, C5, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?, C4?, C5?, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7) { @@ -2509,7 +2297,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3, C4, C5, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?, C4?, C5?, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8) { @@ -2518,7 +2305,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, R1, W1, C3, C4, C5, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2), R1.RegexOutput == (W1, C3, C4, C5, C6, C7, C8, C9) { @@ -2527,7 +2313,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3) { @@ -2536,7 +2321,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1, W1, C4>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4) { @@ -2545,7 +2329,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1, W1, C4, C5>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4?, C5?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5) { @@ -2554,7 +2337,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1, W1, C4, C5, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4?, C5?, C6?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6) { @@ -2563,7 +2345,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1, W1, C4, C5, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4?, C5?, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7) { @@ -2572,7 +2353,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1, W1, C4, C5, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4?, C5?, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8) { @@ -2581,7 +2361,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, R1, W1, C4, C5, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4?, C5?, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3), R1.RegexOutput == (W1, C4, C5, C6, C7, C8, C9) { @@ -2590,7 +2369,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4) { @@ -2599,7 +2377,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, R1, W1, C5>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5) { @@ -2608,7 +2385,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, R1, W1, C5, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5?, C6?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6) { @@ -2617,7 +2393,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, R1, W1, C5, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5?, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7) { @@ -2626,7 +2401,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, R1, W1, C5, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5?, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8) { @@ -2635,7 +2409,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, R1, W1, C5, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5?, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4), R1.RegexOutput == (W1, C5, C6, C7, C8, C9) { @@ -2644,7 +2417,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5) { @@ -2653,7 +2425,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, R1, W1, C6>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6) { @@ -2662,7 +2433,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, R1, W1, C6, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6?, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7) { @@ -2671,7 +2441,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, R1, W1, C6, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6?, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8) { @@ -2680,7 +2449,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, R1, W1, C6, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6?, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5), R1.RegexOutput == (W1, C6, C7, C8, C9) { @@ -2689,7 +2457,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6) { @@ -2698,7 +2465,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, R1, W1, C7>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7) { @@ -2707,7 +2473,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, R1, W1, C7, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7?, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8) { @@ -2716,7 +2481,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, R1, W1, C7, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7?, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6), R1.RegexOutput == (W1, C7, C8, C9) { @@ -2725,7 +2489,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, C7, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7) { @@ -2734,7 +2497,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, C7, R1, W1, C8>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8) { @@ -2743,7 +2505,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, C7, R1, W1, C8, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8?, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7), R1.RegexOutput == (W1, C8, C9) { @@ -2752,7 +2513,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, C7, C8, R1>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -2761,7 +2521,6 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R0, W0, C0, C1, C2, C3, C4, C5, C6, C7, C8, R1, W1, C9>( accumulated: R0, next: R1 ) -> ChoiceOf<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9?)> where R0: RegexComponent, R1: RegexComponent, R0.RegexOutput == (W0, C0, C1, C2, C3, C4, C5, C6, C7, C8), R1.RegexOutput == (W1, C9) { @@ -2770,70 +2529,60 @@ extension AlternationBuilder { } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1>(first regex: R) -> ChoiceOf<(W, C1?)> where R: RegexComponent, R.RegexOutput == (W, C1) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2>(first regex: R) -> ChoiceOf<(W, C1?, C2?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7, C8>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { .init(node: .orderedChoice([regex.regex.root])) } } @available(SwiftStdlib 5.7, *) extension AlternationBuilder { - @available(SwiftStdlib 5.7, *) public static func buildPartialBlock<R, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(first regex: R) -> ChoiceOf<(W, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)> where R: RegexComponent, R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { .init(node: .orderedChoice([regex.regex.root])) } @@ -2842,7 +2591,6 @@ extension AlternationBuilder { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W>( _ component: R @@ -2850,7 +2598,6 @@ extension Capture { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W>( _ component: R, as reference: Reference<W> @@ -2858,7 +2605,6 @@ extension Capture { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( _ component: R, @@ -2871,7 +2617,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( _ component: R, @@ -2890,7 +2635,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( _ component: R, @@ -2903,7 +2647,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( _ component: R, @@ -2924,7 +2667,6 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W>( @RegexComponentBuilder _ component: () -> R @@ -2932,7 +2674,6 @@ extension Capture { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W>( as reference: Reference<W>, @@ -2943,7 +2684,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( @RegexComponentBuilder _ component: () -> R, @@ -2956,7 +2696,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( as reference: Reference<NewCapture>, @@ -2975,7 +2714,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( @RegexComponentBuilder _ component: () -> R, @@ -2988,7 +2726,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) @_disfavoredOverload public init<R: RegexComponent, W, NewCapture>( as reference: Reference<NewCapture>, @@ -3009,21 +2746,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1>( _ component: R ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3035,7 +2769,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3053,7 +2786,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3065,7 +2797,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3085,14 +2816,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -3102,7 +2831,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3114,7 +2842,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3132,7 +2859,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3144,7 +2870,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3164,21 +2889,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2>( _ component: R ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3190,7 +2912,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3208,7 +2929,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3220,7 +2940,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3240,14 +2959,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -3257,7 +2974,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3269,7 +2985,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3287,7 +3002,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3299,7 +3013,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3319,21 +3032,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3345,7 +3055,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3363,7 +3072,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3375,7 +3083,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3395,14 +3102,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -3412,7 +3117,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3424,7 +3128,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3442,7 +3145,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3454,7 +3156,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3474,21 +3175,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3500,7 +3198,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3518,7 +3215,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3530,7 +3226,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3550,14 +3245,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -3567,7 +3260,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3579,7 +3271,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3597,7 +3288,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3609,7 +3299,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3629,21 +3318,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3655,7 +3341,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3673,7 +3358,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3685,7 +3369,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3705,14 +3388,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -3722,7 +3403,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3734,7 +3414,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3752,7 +3431,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3764,7 +3442,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3784,21 +3461,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3810,7 +3484,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3828,7 +3501,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3840,7 +3512,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3860,14 +3531,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -3877,7 +3546,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3889,7 +3557,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3907,7 +3574,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3919,7 +3585,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -3939,21 +3604,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -3965,7 +3627,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -3983,7 +3644,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -3995,7 +3655,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4015,14 +3674,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -4032,7 +3689,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -4044,7 +3700,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4062,7 +3717,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -4074,7 +3728,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4094,21 +3747,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -4120,7 +3770,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4138,7 +3787,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -4150,7 +3798,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4170,14 +3817,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -4187,7 +3832,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -4199,7 +3843,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4217,7 +3860,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -4229,7 +3871,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4249,21 +3890,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -4275,7 +3913,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4293,7 +3930,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -4305,7 +3941,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4325,14 +3960,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -4342,7 +3975,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -4354,7 +3986,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4372,7 +4003,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -4384,7 +4014,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4404,21 +4033,18 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -4430,7 +4056,6 @@ extension Capture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4448,7 +4073,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -4460,7 +4084,6 @@ extension TryCapture { component.regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -4480,14 +4103,12 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R @@ -4497,7 +4118,6 @@ extension Capture { component().regex.root)) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -4509,7 +4129,6 @@ extension Capture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, @@ -4527,7 +4146,6 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -4539,7 +4157,6 @@ extension TryCapture { component().regex.root))) } - @available(SwiftStdlib 5.7, *) public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, diff --git a/Sources/VariadicsGenerator/VariadicsGenerator.swift b/Sources/VariadicsGenerator/VariadicsGenerator.swift index b6f51997e..cb25c6578 100644 --- a/Sources/VariadicsGenerator/VariadicsGenerator.swift +++ b/Sources/VariadicsGenerator/VariadicsGenerator.swift @@ -257,7 +257,6 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension \(concatBuilderName) { - \(defaultAvailableAttr) public static func buildPartialBlock<\(genericParams)>( accumulated: R0, next: R1 ) -> \(regexTypeName)<\(matchType)> \(whereClause) { @@ -386,7 +385,6 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension \(kind.rawValue) { - \(defaultAvailableAttr) \(params.disfavored)\ public init<\(params.genericParams)>( _ component: Component, @@ -399,7 +397,6 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension \(kind.rawValue) { - \(defaultAvailableAttr) \(params.disfavored)\ public init<\(params.genericParams)>( _ behavior: RegexRepetitionBehavior? = nil, @@ -414,7 +411,6 @@ struct VariadicsGenerator: ParsableCommand { """ \(defaultAvailableAttr) extension \(concatBuilderName) { - \(defaultAvailableAttr) public static func buildLimitedAvailability<\(params.genericParams)>( _ component: Component ) -> \(regexTypeName)<\(params.matchType)> \(params.whereClause) { @@ -493,7 +489,6 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension Repeat { - \(defaultAvailableAttr) \(params.disfavored)\ public init<\(params.genericParams)>( _ component: Component, @@ -504,7 +499,6 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - \(defaultAvailableAttr) \(params.disfavored)\ public init<\(params.genericParams)>( count: Int, @@ -515,7 +509,6 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - \(defaultAvailableAttr) \(params.disfavored)\ public init<\(params.genericParams), R: RangeExpression>( _ component: Component, @@ -525,7 +518,6 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - \(defaultAvailableAttr) \(params.disfavored)\ public init<\(params.genericParams), R: RangeExpression>( _ expression: R, @@ -580,7 +572,6 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension \(altBuilderName) { - \(defaultAvailableAttr) public static func buildPartialBlock<\(genericParams)>( accumulated: R0, next: R1 ) -> ChoiceOf<\(matchType)> \(whereClause) { @@ -608,7 +599,6 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension \(altBuilderName) { - \(defaultAvailableAttr) public static func buildPartialBlock<\(genericParams)>(first regex: R) -> ChoiceOf<(W, \(resultCaptures))> \(whereClause) { .init(node: .orderedChoice([regex.regex.root])) } @@ -639,7 +629,6 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension Capture { - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams)>( _ component: R @@ -647,7 +636,6 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .capture(component.regex.root)) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams)>( _ component: R, as reference: Reference<W> @@ -655,7 +643,6 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .capture(reference: reference.id, component.regex.root)) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, @@ -668,7 +655,6 @@ struct VariadicsGenerator: ParsableCommand { component.regex.root))) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, @@ -687,7 +673,6 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension TryCapture { - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, @@ -700,7 +685,6 @@ struct VariadicsGenerator: ParsableCommand { component.regex.root))) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, @@ -721,7 +705,6 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension Capture { - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams)>( @\(concatBuilderName) _ component: () -> R @@ -729,7 +712,6 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .capture(component().regex.root)) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams)>( as reference: Reference<W>, @@ -740,7 +722,6 @@ struct VariadicsGenerator: ParsableCommand { component().regex.root)) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( @\(concatBuilderName) _ component: () -> R, @@ -753,7 +734,6 @@ struct VariadicsGenerator: ParsableCommand { component().regex.root))) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( as reference: Reference<NewCapture>, @@ -772,7 +752,6 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension TryCapture { - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( @\(concatBuilderName) _ component: () -> R, @@ -785,7 +764,6 @@ struct VariadicsGenerator: ParsableCommand { component().regex.root))) } - \(defaultAvailableAttr) \(disfavored)\ public init<\(genericParams), NewCapture>( as reference: Reference<NewCapture>, From f8aca1d791d773d6a32a90f5dcb84f5b6ccb57db Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 11:32:12 -0600 Subject: [PATCH 6/7] proper indentation --- Sources/RegexBuilder/Variadics.swift | 480 +++++++++--------- .../VariadicsGenerator.swift | 46 +- 2 files changed, 263 insertions(+), 263 deletions(-) diff --git a/Sources/RegexBuilder/Variadics.swift b/Sources/RegexBuilder/Variadics.swift index d2986e39d..f06978c8b 100644 --- a/Sources/RegexBuilder/Variadics.swift +++ b/Sources/RegexBuilder/Variadics.swift @@ -678,7 +678,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { @@ -689,7 +689,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { @@ -708,7 +708,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { @@ -719,7 +719,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { @@ -731,7 +731,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { @@ -742,7 +742,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { @@ -754,7 +754,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { @@ -763,7 +763,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?), Component.RegexOutput == (W, C1) { @@ -772,7 +772,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -780,7 +780,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -790,7 +790,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { @@ -801,7 +801,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { @@ -820,7 +820,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { @@ -831,7 +831,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { @@ -843,7 +843,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { @@ -854,7 +854,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { @@ -866,7 +866,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { @@ -875,7 +875,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?), Component.RegexOutput == (W, C1, C2) { @@ -884,7 +884,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -892,7 +892,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -902,7 +902,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { @@ -913,7 +913,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { @@ -932,7 +932,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { @@ -943,7 +943,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { @@ -955,7 +955,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { @@ -966,7 +966,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { @@ -978,7 +978,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { @@ -987,7 +987,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?), Component.RegexOutput == (W, C1, C2, C3) { @@ -996,7 +996,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1004,7 +1004,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1014,7 +1014,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1025,7 +1025,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1044,7 +1044,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1055,7 +1055,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1067,7 +1067,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1078,7 +1078,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1090,7 +1090,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1099,7 +1099,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?), Component.RegexOutput == (W, C1, C2, C3, C4) { @@ -1108,7 +1108,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1116,7 +1116,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1126,7 +1126,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1137,7 +1137,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1156,7 +1156,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1167,7 +1167,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1179,7 +1179,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1190,7 +1190,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1202,7 +1202,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1211,7 +1211,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -1220,7 +1220,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1228,7 +1228,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1238,7 +1238,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1249,7 +1249,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1268,7 +1268,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1279,7 +1279,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1291,7 +1291,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1302,7 +1302,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1314,7 +1314,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1323,7 +1323,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -1332,7 +1332,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1340,7 +1340,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1350,7 +1350,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1361,7 +1361,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1380,7 +1380,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1391,7 +1391,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1403,7 +1403,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1414,7 +1414,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1426,7 +1426,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1435,7 +1435,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -1444,7 +1444,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1452,7 +1452,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1462,7 +1462,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1473,7 +1473,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1492,7 +1492,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1503,7 +1503,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1515,7 +1515,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1526,7 +1526,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1538,7 +1538,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1547,7 +1547,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -1556,7 +1556,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1564,7 +1564,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1574,7 +1574,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1585,7 +1585,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1604,7 +1604,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1615,7 +1615,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1627,7 +1627,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1638,7 +1638,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1650,7 +1650,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1659,7 +1659,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -1668,7 +1668,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1676,7 +1676,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1686,7 +1686,7 @@ extension Repeat { } @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1697,7 +1697,7 @@ extension Optionally { @available(SwiftStdlib 5.7, *) extension Optionally { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1716,7 +1716,7 @@ extension RegexComponentBuilder { } @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1727,7 +1727,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension ZeroOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1739,7 +1739,7 @@ extension ZeroOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1750,7 +1750,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension OneOrMore { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1762,7 +1762,7 @@ extension OneOrMore { @available(SwiftStdlib 5.7, *) extension Repeat { - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component, count: Int ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1771,7 +1771,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( count: Int, @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -1780,7 +1780,7 @@ extension Repeat { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( _ component: Component, _ expression: R, _ behavior: RegexRepetitionBehavior? = nil @@ -1788,7 +1788,7 @@ extension Repeat { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent, R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ component: () -> Component @@ -1820,7 +1820,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1830,7 +1830,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, Component: RegexComponent>( + public init<W, C1, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1), Component.RegexOutput == (W, C1) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1839,7 +1839,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1849,7 +1849,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, Component: RegexComponent>( + public init<W, C1, C2, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2), Component.RegexOutput == (W, C1, C2) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1858,7 +1858,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1868,7 +1868,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, Component: RegexComponent>( + public init<W, C1, C2, C3, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3), Component.RegexOutput == (W, C1, C2, C3) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1877,7 +1877,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1887,7 +1887,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4), Component.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1896,7 +1896,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1906,7 +1906,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5), Component.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1915,7 +1915,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1925,7 +1925,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1934,7 +1934,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1944,7 +1944,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1953,7 +1953,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1963,7 +1963,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1972,7 +1972,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -1982,7 +1982,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -1991,7 +1991,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( _ component: Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component.regex.root)) @@ -2001,7 +2001,7 @@ extension Local { @available(SwiftStdlib 5.7, *) extension Local { @available(SwiftStdlib 5.7, *) - public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( + public init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Component: RegexComponent>( @RegexComponentBuilder _ component: () -> Component ) where RegexOutput == (Substring, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Component.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .nonCapturingGroup(.atomicNonCapturing, component().regex.root)) @@ -2746,19 +2746,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1>( + public init<R: RegexComponent, W, C1>( _ component: R ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1>( + public init<R: RegexComponent, W, C1>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { @@ -2769,7 +2769,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -2786,7 +2786,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { @@ -2797,7 +2797,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -2816,13 +2816,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1>( + public init<R: RegexComponent, W, C1>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1>( + public init<R: RegexComponent, W, C1>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1), R.RegexOutput == (W, C1) { @@ -2831,7 +2831,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { @@ -2842,7 +2842,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -2859,7 +2859,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1), R.RegexOutput == (W, C1) { @@ -2870,7 +2870,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, NewCapture>( + public init<R: RegexComponent, W, C1, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -2889,19 +2889,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2>( + public init<R: RegexComponent, W, C1, C2>( _ component: R ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2>( + public init<R: RegexComponent, W, C1, C2>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { @@ -2912,7 +2912,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -2929,7 +2929,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { @@ -2940,7 +2940,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -2959,13 +2959,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2>( + public init<R: RegexComponent, W, C1, C2>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2>( + public init<R: RegexComponent, W, C1, C2>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2), R.RegexOutput == (W, C1, C2) { @@ -2974,7 +2974,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { @@ -2985,7 +2985,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3002,7 +3002,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2), R.RegexOutput == (W, C1, C2) { @@ -3013,7 +3013,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, NewCapture>( + public init<R: RegexComponent, W, C1, C2, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3032,19 +3032,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { @@ -3055,7 +3055,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3072,7 +3072,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { @@ -3083,7 +3083,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3102,13 +3102,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3>( + public init<R: RegexComponent, W, C1, C2, C3>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { @@ -3117,7 +3117,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { @@ -3128,7 +3128,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3145,7 +3145,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3), R.RegexOutput == (W, C1, C2, C3) { @@ -3156,7 +3156,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3175,19 +3175,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { @@ -3198,7 +3198,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3215,7 +3215,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { @@ -3226,7 +3226,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3245,13 +3245,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4>( + public init<R: RegexComponent, W, C1, C2, C3, C4>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { @@ -3260,7 +3260,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { @@ -3271,7 +3271,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3288,7 +3288,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4), R.RegexOutput == (W, C1, C2, C3, C4) { @@ -3299,7 +3299,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3318,19 +3318,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -3341,7 +3341,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3358,7 +3358,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -3369,7 +3369,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3388,13 +3388,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -3403,7 +3403,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -3414,7 +3414,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3431,7 +3431,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5), R.RegexOutput == (W, C1, C2, C3, C4, C5) { @@ -3442,7 +3442,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3461,19 +3461,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -3484,7 +3484,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3501,7 +3501,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -3512,7 +3512,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3531,13 +3531,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -3546,7 +3546,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -3557,7 +3557,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3574,7 +3574,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6) { @@ -3585,7 +3585,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3604,19 +3604,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -3627,7 +3627,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3644,7 +3644,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -3655,7 +3655,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3674,13 +3674,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -3689,7 +3689,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -3700,7 +3700,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3717,7 +3717,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7) { @@ -3728,7 +3728,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3747,19 +3747,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -3770,7 +3770,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3787,7 +3787,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -3798,7 +3798,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3817,13 +3817,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -3832,7 +3832,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -3843,7 +3843,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -3860,7 +3860,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8) { @@ -3871,7 +3871,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -3890,19 +3890,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -3913,7 +3913,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -3930,7 +3930,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -3941,7 +3941,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -3960,13 +3960,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -3975,7 +3975,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -3986,7 +3986,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -4003,7 +4003,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9) { @@ -4014,7 +4014,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -4033,19 +4033,19 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( _ component: R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( _ component: R, as reference: Reference<W> ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -4056,7 +4056,7 @@ extension Capture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture @@ -4073,7 +4073,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -4084,7 +4084,7 @@ extension TryCapture { component.regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( _ component: R, as reference: Reference<NewCapture>, transform: @escaping (Substring) throws -> NewCapture? @@ -4103,13 +4103,13 @@ extension TryCapture { @available(SwiftStdlib 5.7, *) extension Capture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { self.init(node: .capture(component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>( as reference: Reference<W>, @RegexComponentBuilder _ component: () -> R ) where RegexOutput == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -4118,7 +4118,7 @@ extension Capture { component().regex.root)) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -4129,7 +4129,7 @@ extension Capture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -4146,7 +4146,7 @@ extension Capture { @available(SwiftStdlib 5.7, *) extension TryCapture { - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? ) where RegexOutput == (Substring, NewCapture, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), R.RegexOutput == (W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) { @@ -4157,7 +4157,7 @@ extension TryCapture { component().regex.root))) } - public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( + public init<R: RegexComponent, W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, NewCapture>( as reference: Reference<NewCapture>, @RegexComponentBuilder _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? diff --git a/Sources/VariadicsGenerator/VariadicsGenerator.swift b/Sources/VariadicsGenerator/VariadicsGenerator.swift index cb25c6578..56e2f3790 100644 --- a/Sources/VariadicsGenerator/VariadicsGenerator.swift +++ b/Sources/VariadicsGenerator/VariadicsGenerator.swift @@ -348,7 +348,7 @@ struct VariadicsGenerator: ParsableCommand { } init(kind: QuantifierKind, arity: Int) { - self.disfavored = arity == 0 ? "@_disfavoredOverload\n" : "" + self.disfavored = arity == 0 ? " @_disfavoredOverload\n" : "" self.genericParams = { var result = "" if arity > 0 { @@ -385,7 +385,7 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension \(kind.rawValue) { - \(params.disfavored)\ + \(params.disfavored)\ public init<\(params.genericParams)>( _ component: Component, _ behavior: RegexRepetitionBehavior? = nil @@ -397,7 +397,7 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension \(kind.rawValue) { - \(params.disfavored)\ + \(params.disfavored)\ public init<\(params.genericParams)>( _ behavior: RegexRepetitionBehavior? = nil, @\(concatBuilderName) _ component: () -> Component @@ -434,7 +434,7 @@ struct VariadicsGenerator: ParsableCommand { """ } - let disfavored = arity == 0 ? "@_disfavoredOverload\n" : "" + let disfavored = arity == 0 ? " @_disfavoredOverload\n" : "" let genericParams: String = { var result = "" if arity > 0 { @@ -456,7 +456,7 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension \(groupName) { \(defaultAvailableAttr) - \(disfavored)\ + \(disfavored)\ public init<\(genericParams)>( _ component: Component ) \(whereClauseForInit) { @@ -467,7 +467,7 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension \(groupName) { \(defaultAvailableAttr) - \(disfavored)\ + \(disfavored)\ public init<\(genericParams)>( @\(concatBuilderName) _ component: () -> Component ) \(whereClauseForInit) { @@ -489,7 +489,7 @@ struct VariadicsGenerator: ParsableCommand { output(""" \(defaultAvailableAttr) extension Repeat { - \(params.disfavored)\ + \(params.disfavored)\ public init<\(params.genericParams)>( _ component: Component, count: Int @@ -499,7 +499,7 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .quantification(.exactly(count), .default, component.regex.root)) } - \(params.disfavored)\ + \(params.disfavored)\ public init<\(params.genericParams)>( count: Int, @\(concatBuilderName) _ component: () -> Component @@ -509,7 +509,7 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .quantification(.exactly(count), .default, component().regex.root)) } - \(params.disfavored)\ + \(params.disfavored)\ public init<\(params.genericParams), R: RangeExpression>( _ component: Component, _ expression: R, @@ -518,7 +518,7 @@ struct VariadicsGenerator: ParsableCommand { self.init(node: .repeating(expression.relative(to: 0..<Int.max), behavior, component.regex.root)) } - \(params.disfavored)\ + \(params.disfavored)\ public init<\(params.genericParams), R: RangeExpression>( _ expression: R, _ behavior: RegexRepetitionBehavior? = nil, @@ -608,7 +608,7 @@ struct VariadicsGenerator: ParsableCommand { } func emitCapture(arity: Int) { - let disfavored = arity == 0 ? "@_disfavoredOverload\n" : "" + let disfavored = arity == 0 ? " @_disfavoredOverload\n" : "" let genericParams = arity == 0 ? "R: \(regexComponentProtocolName), W" : "R: \(regexComponentProtocolName), W, " + captureTypeList(arity) @@ -629,21 +629,21 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension Capture { - \(disfavored)\ + \(disfavored)\ public init<\(genericParams)>( _ component: R ) \(whereClauseRaw) { self.init(node: .capture(component.regex.root)) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams)>( _ component: R, as reference: Reference<W> ) \(whereClauseRaw) { self.init(node: .capture(reference: reference.id, component.regex.root)) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture @@ -655,7 +655,7 @@ struct VariadicsGenerator: ParsableCommand { component.regex.root))) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -673,7 +673,7 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension TryCapture { - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, transform: @escaping (Substring) throws -> NewCapture? @@ -685,7 +685,7 @@ struct VariadicsGenerator: ParsableCommand { component.regex.root))) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( _ component: R, as reference: Reference<NewCapture>, @@ -705,14 +705,14 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension Capture { - \(disfavored)\ + \(disfavored)\ public init<\(genericParams)>( @\(concatBuilderName) _ component: () -> R ) \(whereClauseRaw) { self.init(node: .capture(component().regex.root)) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams)>( as reference: Reference<W>, @\(concatBuilderName) _ component: () -> R @@ -722,7 +722,7 @@ struct VariadicsGenerator: ParsableCommand { component().regex.root)) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( @\(concatBuilderName) _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture @@ -734,7 +734,7 @@ struct VariadicsGenerator: ParsableCommand { component().regex.root))) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( as reference: Reference<NewCapture>, @\(concatBuilderName) _ component: () -> R, @@ -752,7 +752,7 @@ struct VariadicsGenerator: ParsableCommand { \(defaultAvailableAttr) extension TryCapture { - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( @\(concatBuilderName) _ component: () -> R, transform: @escaping (Substring) throws -> NewCapture? @@ -764,7 +764,7 @@ struct VariadicsGenerator: ParsableCommand { component().regex.root))) } - \(disfavored)\ + \(disfavored)\ public init<\(genericParams), NewCapture>( as reference: Reference<NewCapture>, @\(concatBuilderName) _ component: () -> R, From 9826a267910957b6c5cc3c3430e313277fb349c7 Mon Sep 17 00:00:00 2001 From: Michael Ilseman <michael.ilseman@gmail.com> Date: Tue, 26 Apr 2022 11:35:07 -0600 Subject: [PATCH 7/7] Update MatchTests.swift --- Tests/RegexTests/MatchTests.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Tests/RegexTests/MatchTests.swift b/Tests/RegexTests/MatchTests.swift index cb12c7c48..345e80e22 100644 --- a/Tests/RegexTests/MatchTests.swift +++ b/Tests/RegexTests/MatchTests.swift @@ -1550,19 +1550,5 @@ extension RegexTests { // TODO: Add test for grapheme boundaries at start/end of match - func testNestedOptional() { - let regex: Regex<(Substring, Substring??)> = try! Regex(#""" - ab|(c|)? - """#) - - XCTAssertEqual("", "".wholeMatch(of: regex)!.0) - XCTAssertEqual("ab", "ab".wholeMatch(of: regex)!.0) - XCTAssertEqual("c", "c".wholeMatch(of: regex)!.0) - - XCTAssertEqual(.some(.some("c")), "c".wholeMatch(of: regex)!.1) - XCTAssertEqual(.some(.some("")), "".wholeMatch(of: regex)!.1) - XCTAssertEqual(.some(nil), "ab".wholeMatch(of: regex)!.1) - - } }