@@ -3148,7 +3148,7 @@ public struct KeyPathExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3148
3148
_ unexpectedBeforeBackslash: UnexpectedNodesSyntax ? = nil ,
3149
3149
backslash: TokenSyntax = . backslashToken( ) ,
3150
3150
_ unexpectedBetweenBackslashAndRoot: UnexpectedNodesSyntax ? = nil ,
3151
- root: ( some TypeSyntaxProtocol ) ? = nil ,
3151
+ root: ( some TypeSyntaxProtocol ) ? = TypeSyntax ? . none ,
3152
3152
_ unexpectedBetweenRootAndComponents: UnexpectedNodesSyntax ? = nil ,
3153
3153
components: KeyPathComponentListSyntax ,
3154
3154
_ unexpectedAfterComponents: UnexpectedNodesSyntax ? = nil ,
@@ -3188,41 +3188,6 @@ public struct KeyPathExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3188
3188
self . init ( data)
3189
3189
}
3190
3190
3191
- /// This initializer exists solely because Swift 5.6 does not support
3192
- /// `Optional<ConcreteType>.none` as a default value of a generic parameter.
3193
- /// The above initializer thus defaults to `nil` instead, but that means it
3194
- /// is not actually callable when either not passing the defaulted parameter,
3195
- /// or passing `nil`.
3196
- ///
3197
- /// Hack around that limitation using this initializer, which takes a
3198
- /// `Missing*` syntax node instead. `Missing*` is used over the base type as
3199
- /// the base type would allow implicit conversion from a string literal,
3200
- /// which the above initializer doesn't support.
3201
- public init (
3202
- leadingTrivia: Trivia ? = nil ,
3203
- _ unexpectedBeforeBackslash: UnexpectedNodesSyntax ? = nil ,
3204
- backslash: TokenSyntax = . backslashToken( ) ,
3205
- _ unexpectedBetweenBackslashAndRoot: UnexpectedNodesSyntax ? = nil ,
3206
- root: MissingTypeSyntax ? = nil ,
3207
- _ unexpectedBetweenRootAndComponents: UnexpectedNodesSyntax ? = nil ,
3208
- components: KeyPathComponentListSyntax ,
3209
- _ unexpectedAfterComponents: UnexpectedNodesSyntax ? = nil ,
3210
- trailingTrivia: Trivia ? = nil
3211
-
3212
- ) {
3213
- self . init (
3214
- leadingTrivia: leadingTrivia,
3215
- unexpectedBeforeBackslash,
3216
- backslash: backslash,
3217
- unexpectedBetweenBackslashAndRoot,
3218
- root: Optional< TypeSyntax> . none,
3219
- unexpectedBetweenRootAndComponents,
3220
- components: components,
3221
- unexpectedAfterComponents,
3222
- trailingTrivia: trailingTrivia
3223
- )
3224
- }
3225
-
3226
3191
public var unexpectedBeforeBackslash : UnexpectedNodesSyntax ? {
3227
3192
get {
3228
3193
return data. child ( at: 0 , parent: Syntax ( self ) ) . map ( UnexpectedNodesSyntax . init)
@@ -3653,7 +3618,7 @@ public struct MemberAccessExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3653
3618
public init (
3654
3619
leadingTrivia: Trivia ? = nil ,
3655
3620
_ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
3656
- base: ( some ExprSyntaxProtocol ) ? = nil ,
3621
+ base: ( some ExprSyntaxProtocol ) ? = ExprSyntax ? . none ,
3657
3622
_ unexpectedBetweenBaseAndDot: UnexpectedNodesSyntax ? = nil ,
3658
3623
dot: TokenSyntax = . periodToken( ) ,
3659
3624
_ unexpectedBetweenDotAndName: UnexpectedNodesSyntax ? = nil ,
@@ -3701,45 +3666,6 @@ public struct MemberAccessExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3701
3666
self . init ( data)
3702
3667
}
3703
3668
3704
- /// This initializer exists solely because Swift 5.6 does not support
3705
- /// `Optional<ConcreteType>.none` as a default value of a generic parameter.
3706
- /// The above initializer thus defaults to `nil` instead, but that means it
3707
- /// is not actually callable when either not passing the defaulted parameter,
3708
- /// or passing `nil`.
3709
- ///
3710
- /// Hack around that limitation using this initializer, which takes a
3711
- /// `Missing*` syntax node instead. `Missing*` is used over the base type as
3712
- /// the base type would allow implicit conversion from a string literal,
3713
- /// which the above initializer doesn't support.
3714
- public init (
3715
- leadingTrivia: Trivia ? = nil ,
3716
- _ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
3717
- base: MissingExprSyntax ? = nil ,
3718
- _ unexpectedBetweenBaseAndDot: UnexpectedNodesSyntax ? = nil ,
3719
- dot: TokenSyntax = . periodToken( ) ,
3720
- _ unexpectedBetweenDotAndName: UnexpectedNodesSyntax ? = nil ,
3721
- name: TokenSyntax ,
3722
- _ unexpectedBetweenNameAndDeclNameArguments: UnexpectedNodesSyntax ? = nil ,
3723
- declNameArguments: DeclNameArgumentsSyntax ? = nil ,
3724
- _ unexpectedAfterDeclNameArguments: UnexpectedNodesSyntax ? = nil ,
3725
- trailingTrivia: Trivia ? = nil
3726
-
3727
- ) {
3728
- self . init (
3729
- leadingTrivia: leadingTrivia,
3730
- unexpectedBeforeBase,
3731
- base: Optional< ExprSyntax> . none,
3732
- unexpectedBetweenBaseAndDot,
3733
- dot: dot,
3734
- unexpectedBetweenDotAndName,
3735
- name: name,
3736
- unexpectedBetweenNameAndDeclNameArguments,
3737
- declNameArguments: declNameArguments,
3738
- unexpectedAfterDeclNameArguments,
3739
- trailingTrivia: trailingTrivia
3740
- )
3741
- }
3742
-
3743
3669
public var unexpectedBeforeBase : UnexpectedNodesSyntax ? {
3744
3670
get {
3745
3671
return data. child ( at: 0 , parent: Syntax ( self ) ) . map ( UnexpectedNodesSyntax . init)
@@ -4481,7 +4407,7 @@ public struct PostfixIfConfigExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4481
4407
public init (
4482
4408
leadingTrivia: Trivia ? = nil ,
4483
4409
_ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
4484
- base: ( some ExprSyntaxProtocol ) ? = nil ,
4410
+ base: ( some ExprSyntaxProtocol ) ? = ExprSyntax ? . none ,
4485
4411
_ unexpectedBetweenBaseAndConfig: UnexpectedNodesSyntax ? = nil ,
4486
4412
config: IfConfigDeclSyntax ,
4487
4413
_ unexpectedAfterConfig: UnexpectedNodesSyntax ? = nil ,
@@ -4517,37 +4443,6 @@ public struct PostfixIfConfigExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4517
4443
self . init ( data)
4518
4444
}
4519
4445
4520
- /// This initializer exists solely because Swift 5.6 does not support
4521
- /// `Optional<ConcreteType>.none` as a default value of a generic parameter.
4522
- /// The above initializer thus defaults to `nil` instead, but that means it
4523
- /// is not actually callable when either not passing the defaulted parameter,
4524
- /// or passing `nil`.
4525
- ///
4526
- /// Hack around that limitation using this initializer, which takes a
4527
- /// `Missing*` syntax node instead. `Missing*` is used over the base type as
4528
- /// the base type would allow implicit conversion from a string literal,
4529
- /// which the above initializer doesn't support.
4530
- public init (
4531
- leadingTrivia: Trivia ? = nil ,
4532
- _ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
4533
- base: MissingExprSyntax ? = nil ,
4534
- _ unexpectedBetweenBaseAndConfig: UnexpectedNodesSyntax ? = nil ,
4535
- config: IfConfigDeclSyntax ,
4536
- _ unexpectedAfterConfig: UnexpectedNodesSyntax ? = nil ,
4537
- trailingTrivia: Trivia ? = nil
4538
-
4539
- ) {
4540
- self . init (
4541
- leadingTrivia: leadingTrivia,
4542
- unexpectedBeforeBase,
4543
- base: Optional< ExprSyntax> . none,
4544
- unexpectedBetweenBaseAndConfig,
4545
- config: config,
4546
- unexpectedAfterConfig,
4547
- trailingTrivia: trailingTrivia
4548
- )
4549
- }
4550
-
4551
4446
public var unexpectedBeforeBase : UnexpectedNodesSyntax ? {
4552
4447
get {
4553
4448
return data. child ( at: 0 , parent: Syntax ( self ) ) . map ( UnexpectedNodesSyntax . init)
0 commit comments