@@ -2777,7 +2777,7 @@ public struct KeyPathExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
2777
2777
_ unexpectedBeforeBackslash: UnexpectedNodesSyntax ? = nil ,
2778
2778
backslash: TokenSyntax = . backslashToken( ) ,
2779
2779
_ unexpectedBetweenBackslashAndRoot: UnexpectedNodesSyntax ? = nil ,
2780
- root: ( some TypeSyntaxProtocol ) ? = nil ,
2780
+ root: ( some TypeSyntaxProtocol ) ? = TypeSyntax ? . none ,
2781
2781
_ unexpectedBetweenRootAndComponents: UnexpectedNodesSyntax ? = nil ,
2782
2782
components: KeyPathComponentListSyntax ,
2783
2783
_ unexpectedAfterComponents: UnexpectedNodesSyntax ? = nil ,
@@ -2817,41 +2817,6 @@ public struct KeyPathExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
2817
2817
self . init ( data)
2818
2818
}
2819
2819
2820
- /// This initializer exists solely because Swift 5.6 does not support
2821
- /// `Optional<ConcreteType>.none` as a default value of a generic parameter.
2822
- /// The above initializer thus defaults to `nil` instead, but that means it
2823
- /// is not actually callable when either not passing the defaulted parameter,
2824
- /// or passing `nil`.
2825
- ///
2826
- /// Hack around that limitation using this initializer, which takes a
2827
- /// `Missing*` syntax node instead. `Missing*` is used over the base type as
2828
- /// the base type would allow implicit conversion from a string literal,
2829
- /// which the above initializer doesn't support.
2830
- public init (
2831
- leadingTrivia: Trivia ? = nil ,
2832
- _ unexpectedBeforeBackslash: UnexpectedNodesSyntax ? = nil ,
2833
- backslash: TokenSyntax = . backslashToken( ) ,
2834
- _ unexpectedBetweenBackslashAndRoot: UnexpectedNodesSyntax ? = nil ,
2835
- root: MissingTypeSyntax ? = nil ,
2836
- _ unexpectedBetweenRootAndComponents: UnexpectedNodesSyntax ? = nil ,
2837
- components: KeyPathComponentListSyntax ,
2838
- _ unexpectedAfterComponents: UnexpectedNodesSyntax ? = nil ,
2839
- trailingTrivia: Trivia ? = nil
2840
-
2841
- ) {
2842
- self . init (
2843
- leadingTrivia: leadingTrivia,
2844
- unexpectedBeforeBackslash,
2845
- backslash: backslash,
2846
- unexpectedBetweenBackslashAndRoot,
2847
- root: Optional< TypeSyntax> . none,
2848
- unexpectedBetweenRootAndComponents,
2849
- components: components,
2850
- unexpectedAfterComponents,
2851
- trailingTrivia: trailingTrivia
2852
- )
2853
- }
2854
-
2855
2820
public var unexpectedBeforeBackslash : UnexpectedNodesSyntax ? {
2856
2821
get {
2857
2822
return data. child ( at: 0 , parent: Syntax ( self ) ) . map ( UnexpectedNodesSyntax . init)
@@ -3282,7 +3247,7 @@ public struct MemberAccessExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3282
3247
public init (
3283
3248
leadingTrivia: Trivia ? = nil ,
3284
3249
_ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
3285
- base: ( some ExprSyntaxProtocol ) ? = nil ,
3250
+ base: ( some ExprSyntaxProtocol ) ? = ExprSyntax ? . none ,
3286
3251
_ unexpectedBetweenBaseAndDot: UnexpectedNodesSyntax ? = nil ,
3287
3252
dot: TokenSyntax = . periodToken( ) ,
3288
3253
_ unexpectedBetweenDotAndName: UnexpectedNodesSyntax ? = nil ,
@@ -3330,45 +3295,6 @@ public struct MemberAccessExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3330
3295
self . init ( data)
3331
3296
}
3332
3297
3333
- /// This initializer exists solely because Swift 5.6 does not support
3334
- /// `Optional<ConcreteType>.none` as a default value of a generic parameter.
3335
- /// The above initializer thus defaults to `nil` instead, but that means it
3336
- /// is not actually callable when either not passing the defaulted parameter,
3337
- /// or passing `nil`.
3338
- ///
3339
- /// Hack around that limitation using this initializer, which takes a
3340
- /// `Missing*` syntax node instead. `Missing*` is used over the base type as
3341
- /// the base type would allow implicit conversion from a string literal,
3342
- /// which the above initializer doesn't support.
3343
- public init (
3344
- leadingTrivia: Trivia ? = nil ,
3345
- _ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
3346
- base: MissingExprSyntax ? = nil ,
3347
- _ unexpectedBetweenBaseAndDot: UnexpectedNodesSyntax ? = nil ,
3348
- dot: TokenSyntax = . periodToken( ) ,
3349
- _ unexpectedBetweenDotAndName: UnexpectedNodesSyntax ? = nil ,
3350
- name: TokenSyntax ,
3351
- _ unexpectedBetweenNameAndDeclNameArguments: UnexpectedNodesSyntax ? = nil ,
3352
- declNameArguments: DeclNameArgumentsSyntax ? = nil ,
3353
- _ unexpectedAfterDeclNameArguments: UnexpectedNodesSyntax ? = nil ,
3354
- trailingTrivia: Trivia ? = nil
3355
-
3356
- ) {
3357
- self . init (
3358
- leadingTrivia: leadingTrivia,
3359
- unexpectedBeforeBase,
3360
- base: Optional< ExprSyntax> . none,
3361
- unexpectedBetweenBaseAndDot,
3362
- dot: dot,
3363
- unexpectedBetweenDotAndName,
3364
- name: name,
3365
- unexpectedBetweenNameAndDeclNameArguments,
3366
- declNameArguments: declNameArguments,
3367
- unexpectedAfterDeclNameArguments,
3368
- trailingTrivia: trailingTrivia
3369
- )
3370
- }
3371
-
3372
3298
public var unexpectedBeforeBase : UnexpectedNodesSyntax ? {
3373
3299
get {
3374
3300
return data. child ( at: 0 , parent: Syntax ( self ) ) . map ( UnexpectedNodesSyntax . init)
@@ -4110,7 +4036,7 @@ public struct PostfixIfConfigExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4110
4036
public init (
4111
4037
leadingTrivia: Trivia ? = nil ,
4112
4038
_ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
4113
- base: ( some ExprSyntaxProtocol ) ? = nil ,
4039
+ base: ( some ExprSyntaxProtocol ) ? = ExprSyntax ? . none ,
4114
4040
_ unexpectedBetweenBaseAndConfig: UnexpectedNodesSyntax ? = nil ,
4115
4041
config: IfConfigDeclSyntax ,
4116
4042
_ unexpectedAfterConfig: UnexpectedNodesSyntax ? = nil ,
@@ -4146,37 +4072,6 @@ public struct PostfixIfConfigExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4146
4072
self . init ( data)
4147
4073
}
4148
4074
4149
- /// This initializer exists solely because Swift 5.6 does not support
4150
- /// `Optional<ConcreteType>.none` as a default value of a generic parameter.
4151
- /// The above initializer thus defaults to `nil` instead, but that means it
4152
- /// is not actually callable when either not passing the defaulted parameter,
4153
- /// or passing `nil`.
4154
- ///
4155
- /// Hack around that limitation using this initializer, which takes a
4156
- /// `Missing*` syntax node instead. `Missing*` is used over the base type as
4157
- /// the base type would allow implicit conversion from a string literal,
4158
- /// which the above initializer doesn't support.
4159
- public init (
4160
- leadingTrivia: Trivia ? = nil ,
4161
- _ unexpectedBeforeBase: UnexpectedNodesSyntax ? = nil ,
4162
- base: MissingExprSyntax ? = nil ,
4163
- _ unexpectedBetweenBaseAndConfig: UnexpectedNodesSyntax ? = nil ,
4164
- config: IfConfigDeclSyntax ,
4165
- _ unexpectedAfterConfig: UnexpectedNodesSyntax ? = nil ,
4166
- trailingTrivia: Trivia ? = nil
4167
-
4168
- ) {
4169
- self . init (
4170
- leadingTrivia: leadingTrivia,
4171
- unexpectedBeforeBase,
4172
- base: Optional< ExprSyntax> . none,
4173
- unexpectedBetweenBaseAndConfig,
4174
- config: config,
4175
- unexpectedAfterConfig,
4176
- trailingTrivia: trailingTrivia
4177
- )
4178
- }
4179
-
4180
4075
public var unexpectedBeforeBase : UnexpectedNodesSyntax ? {
4181
4076
get {
4182
4077
return data. child ( at: 0 , parent: Syntax ( self ) ) . map ( UnexpectedNodesSyntax . init)
0 commit comments