@@ -60,7 +60,7 @@ public let ATTRIBUTE_NODES: [Node] = [
60
60
kind: . nodeChoices( choices: [
61
61
Child (
62
62
name: " ArgumentList " ,
63
- kind: . node( kind: . tupleExprElementList )
63
+ kind: . node( kind: . labeledExprList )
64
64
) ,
65
65
Child (
66
66
name: " Token " ,
@@ -72,11 +72,11 @@ public let ATTRIBUTE_NODES: [Node] = [
72
72
) ,
73
73
Child (
74
74
name: " Availability " ,
75
- kind: . node( kind: . availabilitySpecList )
75
+ kind: . node( kind: . availabilityArgumentList )
76
76
) ,
77
77
Child (
78
78
name: " SpecializeArguments " ,
79
- kind: . node( kind: . specializeAttributeSpecList )
79
+ kind: . node( kind: . specializeAttributeArgumentList )
80
80
) ,
81
81
Child (
82
82
name: " ObjCName " ,
@@ -92,11 +92,11 @@ public let ATTRIBUTE_NODES: [Node] = [
92
92
) ,
93
93
Child (
94
94
name: " DerivativeRegistrationArguments " ,
95
- kind: . node( kind: . derivativeRegistrationAttributeArguments )
95
+ kind: . node( kind: . derivativeAttributeArguments )
96
96
) ,
97
97
Child (
98
98
name: " BackDeployedArguments " ,
99
- kind: . node( kind: . backDeployedAttributeSpecList )
99
+ kind: . node( kind: . backDeployedAttributeArguments )
100
100
) ,
101
101
Child (
102
102
name: " ConventionArguments " ,
@@ -116,23 +116,23 @@ public let ATTRIBUTE_NODES: [Node] = [
116
116
) ,
117
117
Child (
118
118
name: " OriginallyDefinedInArguments " ,
119
- kind: . node( kind: . originallyDefinedInArguments )
119
+ kind: . node( kind: . originallyDefinedInAttributeArguments )
120
120
) ,
121
121
Child (
122
122
name: " UnderscorePrivateAttributeArguments " ,
123
123
kind: . node( kind: . underscorePrivateAttributeArguments)
124
124
) ,
125
125
Child (
126
126
name: " DynamicReplacementArguments " ,
127
- kind: . node( kind: . dynamicReplacementArguments )
127
+ kind: . node( kind: . dynamicReplacementAttributeArguments )
128
128
) ,
129
129
Child (
130
130
name: " UnavailableFromAsyncArguments " ,
131
- kind: . node( kind: . unavailableFromAsyncArguments )
131
+ kind: . node( kind: . unavailableFromAsyncAttributeArguments )
132
132
) ,
133
133
Child (
134
134
name: " EffectsArguments " ,
135
- kind: . node( kind: . effectsArgumentList )
135
+ kind: . node( kind: . effectsAttributeArgumentList )
136
136
) ,
137
137
Child (
138
138
name: " DocumentationArguments " ,
@@ -152,7 +152,7 @@ public let ATTRIBUTE_NODES: [Node] = [
152
152
) ,
153
153
154
154
Node (
155
- kind: . availabilityEntry ,
155
+ kind: . specializeAvailabilityArgument ,
156
156
base: . syntax,
157
157
nameForDiagnostics: " availability entry " ,
158
158
documentation: " The availability argument for the _specialize attribute " ,
@@ -172,7 +172,7 @@ public let ATTRIBUTE_NODES: [Node] = [
172
172
Child (
173
173
name: " AvailabilityArguments " ,
174
174
deprecatedName: " AvailabilityList " ,
175
- kind: . collection( kind: . availabilitySpecList , collectionElementName: " AvailabilityArgument " , deprecatedCollectionElementName: " Availability " )
175
+ kind: . collection( kind: . availabilityArgumentList , collectionElementName: " AvailabilityArgument " , deprecatedCollectionElementName: " Availability " )
176
176
) ,
177
177
Child (
178
178
name: " Semicolon " ,
@@ -183,15 +183,15 @@ public let ATTRIBUTE_NODES: [Node] = [
183
183
184
184
// back-deploy-version-entry -> availability-version-restriction ','?
185
185
Node (
186
- kind: . availabilityVersionRestrictionListEntry ,
186
+ kind: . platformVersionItem ,
187
187
base: . syntax,
188
188
nameForDiagnostics: " version " ,
189
189
documentation: " A single platform/version pair in an attribute, e.g. `iOS 10.1`. " ,
190
190
traits: [ " WithTrailingComma " ] ,
191
191
children: [
192
192
Child (
193
193
name: " AvailabilityVersionRestriction " ,
194
- kind: . node( kind: . availabilityVersionRestriction )
194
+ kind: . node( kind: . platformVersion )
195
195
) ,
196
196
Child (
197
197
name: " TrailingComma " ,
@@ -205,16 +205,16 @@ public let ATTRIBUTE_NODES: [Node] = [
205
205
// back-deploy-version-list ->
206
206
// back-deploy-version-entry back-deploy-version-list?
207
207
Node (
208
- kind: . availabilityVersionRestrictionList ,
208
+ kind: . platformVersionItemList ,
209
209
base: . syntaxCollection,
210
210
nameForDiagnostics: " version list " ,
211
- elementChoices: [ . availabilityVersionRestrictionListEntry ]
211
+ elementChoices: [ . platformVersionItem ]
212
212
) ,
213
213
214
214
// The arguments of '@backDeployed(...)'
215
215
// back-deployed-attr-spec-list -> 'before' ':' back-deployed-version-list
216
216
Node (
217
- kind: . backDeployedAttributeSpecList ,
217
+ kind: . backDeployedAttributeArguments ,
218
218
base: . syntax,
219
219
nameForDiagnostics: " '@backDeployed' arguments " ,
220
220
documentation: " A collection of arguments for the `@backDeployed` attribute " ,
@@ -232,7 +232,7 @@ public let ATTRIBUTE_NODES: [Node] = [
232
232
Child (
233
233
name: " Platforms " ,
234
234
deprecatedName: " VersionList " ,
235
- kind: . collection( kind: . availabilityVersionRestrictionList , collectionElementName: " Platform " , deprecatedCollectionElementName: " Availability " ) ,
235
+ kind: . collection( kind: . platformVersionItemList , collectionElementName: " Platform " , deprecatedCollectionElementName: " Availability " ) ,
236
236
documentation: " The list of OS versions in which the declaration became ABI stable. "
237
237
) ,
238
238
]
@@ -331,7 +331,7 @@ public let ATTRIBUTE_NODES: [Node] = [
331
331
// derivative-registration-attr-arguments ->
332
332
// 'of' ':' func-decl-name ','? differentiability-params-clause?
333
333
Node (
334
- kind: . derivativeRegistrationAttributeArguments ,
334
+ kind: . derivativeAttributeArguments ,
335
335
base: . syntax,
336
336
nameForDiagnostics: " attribute arguments " ,
337
337
documentation:
@@ -373,7 +373,7 @@ public let ATTRIBUTE_NODES: [Node] = [
373
373
Child (
374
374
name: " Parameters " ,
375
375
deprecatedName: " DiffParams " ,
376
- kind: . node( kind: . differentiabilityParamsClause ) ,
376
+ kind: . node( kind: . differentiabilityWithRespectToArgument ) ,
377
377
isOptional: true
378
378
) ,
379
379
]
@@ -382,15 +382,15 @@ public let ATTRIBUTE_NODES: [Node] = [
382
382
// differentiability-param-list ->
383
383
// differentiability-param differentiability-param-list?
384
384
Node (
385
- kind: . differentiabilityParamList ,
385
+ kind: . differentiabilityParameterList ,
386
386
base: . syntaxCollection,
387
387
nameForDiagnostics: " differentiability parameters " ,
388
- elementChoices: [ . differentiabilityParam ]
388
+ elementChoices: [ . differentiabilityArgument ]
389
389
) ,
390
390
391
391
// differentiability-param -> ('self' | identifier | integer-literal) ','?
392
392
Node (
393
- kind: . differentiabilityParam ,
393
+ kind: . differentiabilityArgument ,
394
394
base: . syntax,
395
395
nameForDiagnostics: " differentiability parameter " ,
396
396
documentation: " A differentiability parameter: either the \" self \" identifier, a function parameter name, or a function parameter index. " ,
@@ -413,7 +413,7 @@ public let ATTRIBUTE_NODES: [Node] = [
413
413
// differentiability-params-clause ->
414
414
// 'wrt' ':' (differentiability-param | differentiability-params)
415
415
Node (
416
- kind: . differentiabilityParamsClause ,
416
+ kind: . differentiabilityWithRespectToArgument ,
417
417
base: . syntax,
418
418
nameForDiagnostics: " '@differentiable' argument " ,
419
419
documentation: " A clause containing differentiability parameters. " ,
@@ -433,11 +433,11 @@ public let ATTRIBUTE_NODES: [Node] = [
433
433
kind: . nodeChoices( choices: [
434
434
Child (
435
435
name: " Parameter " ,
436
- kind: . node( kind: . differentiabilityParam )
436
+ kind: . node( kind: . differentiabilityArgument )
437
437
) ,
438
438
Child (
439
439
name: " ParameterList " ,
440
- kind: . node( kind: . differentiabilityParams )
440
+ kind: . node( kind: . differentiabilityArguments )
441
441
) ,
442
442
] ) ,
443
443
nameForDiagnostics: " parameters "
@@ -447,7 +447,7 @@ public let ATTRIBUTE_NODES: [Node] = [
447
447
448
448
// differentiability-params -> '(' differentiability-param-list ')'
449
449
Node (
450
- kind: . differentiabilityParams ,
450
+ kind: . differentiabilityArguments ,
451
451
base: . syntax,
452
452
nameForDiagnostics: " differentiability parameters " ,
453
453
documentation: " The differentiability parameters. " ,
@@ -458,7 +458,7 @@ public let ATTRIBUTE_NODES: [Node] = [
458
458
) ,
459
459
Child (
460
460
name: " DifferentiabilityParameters " ,
461
- kind: . collection( kind: . differentiabilityParamList , collectionElementName: " DifferentiabilityParam " ) ,
461
+ kind: . collection( kind: . differentiabilityParameterList , collectionElementName: " DifferentiabilityParam " ) ,
462
462
documentation: " The parameters for differentiation. "
463
463
) ,
464
464
Child (
@@ -495,7 +495,7 @@ public let ATTRIBUTE_NODES: [Node] = [
495
495
Child (
496
496
name: " Parameters " ,
497
497
deprecatedName: " DiffParams " ,
498
- kind: . node( kind: . differentiabilityParamsClause ) ,
498
+ kind: . node( kind: . differentiabilityWithRespectToArgument ) ,
499
499
isOptional: true
500
500
) ,
501
501
Child (
@@ -570,7 +570,7 @@ public let ATTRIBUTE_NODES: [Node] = [
570
570
) ,
571
571
572
572
Node (
573
- kind: . dynamicReplacementArguments ,
573
+ kind: . dynamicReplacementAttributeArguments ,
574
574
base: . syntax,
575
575
nameForDiagnostics: " @_dynamicReplacement argument " ,
576
576
documentation: " The arguments for the '@_dynamicReplacement' attribute " ,
@@ -592,7 +592,7 @@ public let ATTRIBUTE_NODES: [Node] = [
592
592
) ,
593
593
594
594
Node (
595
- kind: . effectsArgumentList ,
595
+ kind: . effectsAttributeArgumentList ,
596
596
base: . syntaxCollection,
597
597
nameForDiagnostics: " @_effects arguments " ,
598
598
documentation: " The arguments of the '@_effect' attribute. These will be parsed during the SIL stage. " ,
@@ -661,7 +661,7 @@ public let ATTRIBUTE_NODES: [Node] = [
661
661
// Representation of e.g. 'exported: true,'
662
662
// labeled-specialize-entry -> identifier ':' token ','?
663
663
Node (
664
- kind: . labeledSpecializeEntry ,
664
+ kind: . labeledSpecializeArgument ,
665
665
base: . syntax,
666
666
nameForDiagnostics: " attribute argument " ,
667
667
documentation: " A labeled argument for the `@_specialize` attribute like `exported: true` " ,
@@ -750,7 +750,7 @@ public let ATTRIBUTE_NODES: [Node] = [
750
750
) ,
751
751
752
752
Node (
753
- kind: . originallyDefinedInArguments ,
753
+ kind: . originallyDefinedInAttributeArguments ,
754
754
base: . syntax,
755
755
nameForDiagnostics: " @_originallyDefinedIn arguments " ,
756
756
documentation: " The arguments for the '@_originallyDefinedIn' attribute " ,
@@ -773,7 +773,7 @@ public let ATTRIBUTE_NODES: [Node] = [
773
773
) ,
774
774
Child (
775
775
name: " Platforms " ,
776
- kind: . collection( kind: . availabilityVersionRestrictionList , collectionElementName: " Platform " )
776
+ kind: . collection( kind: . platformVersionItemList , collectionElementName: " Platform " )
777
777
) ,
778
778
]
779
779
) ,
@@ -834,17 +834,17 @@ public let ATTRIBUTE_NODES: [Node] = [
834
834
// | generic-where-clause
835
835
// specialize-spec-attr-list?
836
836
Node (
837
- kind: . specializeAttributeSpecList ,
837
+ kind: . specializeAttributeArgumentList ,
838
838
base: . syntaxCollection,
839
839
nameForDiagnostics: " argument to '@_specialize " ,
840
840
documentation: " A collection of arguments for the `@_specialize` attribute " ,
841
- elementChoices: [ . labeledSpecializeEntry , . availabilityEntry , . targetFunctionEntry , . genericWhereClause]
841
+ elementChoices: [ . labeledSpecializeArgument , . specializeAvailabilityArgument , . specializeTargetFunctionArgument , . genericWhereClause]
842
842
) ,
843
843
844
844
// Representation of e.g. 'exported: true,'
845
845
// labeled-specialize-entry -> identifier ':' token ','?
846
846
Node (
847
- kind: . targetFunctionEntry ,
847
+ kind: . specializeTargetFunctionArgument ,
848
848
base: . syntax,
849
849
nameForDiagnostics: " attribute argument " ,
850
850
documentation: " A labeled argument for the `@_specialize` attribute with a function decl value like `target: myFunc(_:)` " ,
@@ -881,7 +881,7 @@ public let ATTRIBUTE_NODES: [Node] = [
881
881
) ,
882
882
883
883
Node (
884
- kind: . unavailableFromAsyncArguments ,
884
+ kind: . unavailableFromAsyncAttributeArguments ,
885
885
base: . syntax,
886
886
nameForDiagnostics: " @_unavailableFromAsync argument " ,
887
887
documentation: " The arguments for the '@_unavailableFromAsync' attribute " ,
0 commit comments