@@ -41,7 +41,6 @@ public let ATTRIBUTE_NODES: [Node] = [
41
41
children: [
42
42
Child (
43
43
name: " atSign " ,
44
- deprecatedName: " atSignToken " ,
45
44
kind: . token( choices: [ . token( . atSign) ] ) ,
46
45
documentation: " The `@` sign. "
47
46
) ,
@@ -59,7 +58,6 @@ public let ATTRIBUTE_NODES: [Node] = [
59
58
) ,
60
59
Child (
61
60
name: " arguments " ,
62
- deprecatedName: " argument " ,
63
61
kind: . nodeChoices( choices: [
64
62
Child (
65
63
name: " argumentList " ,
@@ -156,6 +154,12 @@ public let ATTRIBUTE_NODES: [Node] = [
156
154
documentation: " If the attribute takes arguments, the closing parenthesis. " ,
157
155
isOptional: true
158
156
) ,
157
+ ] ,
158
+ childHistory: [
159
+ [
160
+ " atSign " : . renamed( from: " atSignToken " ) ,
161
+ " arguments " : . renamed( from: " argument " ) ,
162
+ ]
159
163
]
160
164
) ,
161
165
@@ -167,7 +171,6 @@ public let ATTRIBUTE_NODES: [Node] = [
167
171
children: [
168
172
Child (
169
173
name: " availabilityLabel " ,
170
- deprecatedName: " label " ,
171
174
kind: . token( choices: [ . keyword( . availability) ] ) ,
172
175
nameForDiagnostics: " label " ,
173
176
documentation: " The label of the argument "
@@ -179,7 +182,6 @@ public let ATTRIBUTE_NODES: [Node] = [
179
182
) ,
180
183
Child (
181
184
name: " availabilityArguments " ,
182
- deprecatedName: " availabilityList " ,
183
185
kind: . collection(
184
186
kind: . availabilityArgumentList,
185
187
collectionElementName: " AvailabilityArgument " ,
@@ -190,6 +192,12 @@ public let ATTRIBUTE_NODES: [Node] = [
190
192
name: " semicolon " ,
191
193
kind: . token( choices: [ . token( . semicolon) ] )
192
194
) ,
195
+ ] ,
196
+ childHistory: [
197
+ [
198
+ " availabilityLabel " : . renamed( from: " label " ) ,
199
+ " availabilityArguments " : . renamed( from: " availabilityList " ) ,
200
+ ]
193
201
]
194
202
) ,
195
203
@@ -202,7 +210,6 @@ public let ATTRIBUTE_NODES: [Node] = [
202
210
children: [
203
211
Child (
204
212
name: " platformVersion " ,
205
- deprecatedName: " availabilityVersionRestriction " ,
206
213
kind: . node( kind: . platformVersion) ,
207
214
documentation: " The platform/version pair, e.g. `iOS 10.1` "
208
215
) ,
@@ -212,6 +219,11 @@ public let ATTRIBUTE_NODES: [Node] = [
212
219
documentation: " A trailing comma if the argument is followed by another argument " ,
213
220
isOptional: true
214
221
) ,
222
+ ] ,
223
+ childHistory: [
224
+ [
225
+ " platformVersion " : . renamed( from: " availabilityVersionRestriction " ) ,
226
+ ]
215
227
]
216
228
) ,
217
229
@@ -240,14 +252,18 @@ public let ATTRIBUTE_NODES: [Node] = [
240
252
) ,
241
253
Child (
242
254
name: " platforms " ,
243
- deprecatedName: " versionList " ,
244
255
kind: . collection(
245
256
kind: . platformVersionItemList,
246
257
collectionElementName: " Platform " ,
247
258
deprecatedCollectionElementName: " Availability "
248
259
) ,
249
260
documentation: " The list of OS versions in which the declaration became ABI stable. "
250
261
) ,
262
+ ] ,
263
+ childHistory: [
264
+ [
265
+ " platforms " : . renamed( from: " versionList " ) ,
266
+ ]
251
267
]
252
268
) ,
253
269
@@ -340,7 +356,6 @@ public let ATTRIBUTE_NODES: [Node] = [
340
356
) ,
341
357
Child (
342
358
name: " accessorSpecifier " ,
343
- deprecatedName: " accessorKind " ,
344
359
kind: . token( choices: [ . keyword( . get) , . keyword( . set) ] ) ,
345
360
documentation: " The accessor name. " ,
346
361
isOptional: true
@@ -352,10 +367,15 @@ public let ATTRIBUTE_NODES: [Node] = [
352
367
) ,
353
368
Child (
354
369
name: " arguments " ,
355
- deprecatedName: " diffParams " ,
356
370
kind: . node( kind: . differentiabilityWithRespectToArgument) ,
357
371
isOptional: true
358
372
) ,
373
+ ] ,
374
+ childHistory: [
375
+ [
376
+ " accessorSpecifier " : . renamed( from: " accessorKind " ) ,
377
+ " arguments " : . renamed( from: " diffParams " ) ,
378
+ ]
359
379
]
360
380
) ,
361
381
@@ -378,14 +398,18 @@ public let ATTRIBUTE_NODES: [Node] = [
378
398
children: [
379
399
Child (
380
400
name: " argument " ,
381
- deprecatedName: " parameter " ,
382
401
kind: . token( choices: [ . token( . identifier) , . token( . integerLiteral) , . keyword( . self ) ] )
383
402
) ,
384
403
Child (
385
404
name: " trailingComma " ,
386
405
kind: . token( choices: [ . token( . comma) ] ) ,
387
406
isOptional: true
388
407
) ,
408
+ ] ,
409
+ childHistory: [
410
+ [
411
+ " argument " : . renamed( from: " parameter " ) ,
412
+ ]
389
413
]
390
414
) ,
391
415
@@ -407,21 +431,29 @@ public let ATTRIBUTE_NODES: [Node] = [
407
431
) ,
408
432
Child (
409
433
name: " arguments " ,
410
- deprecatedName: " parameters " ,
411
434
kind: . nodeChoices( choices: [
412
435
Child (
413
436
name: " argument " ,
414
- deprecatedName: " parameter " ,
415
437
kind: . node( kind: . differentiabilityArgument)
416
438
) ,
417
439
Child (
418
440
name: " argumentList " ,
419
- deprecatedName: " parameterList " ,
420
441
kind: . node( kind: . differentiabilityArguments)
421
442
) ,
443
+ ] ,
444
+ childHistory: [
445
+ [
446
+ " argument " : . renamed( from: " parameter " ) ,
447
+ " argumentList " : . renamed( from: " parameterList " ) ,
448
+ ]
422
449
] ) ,
423
450
nameForDiagnostics: " arguments "
424
451
) ,
452
+ ] ,
453
+ childHistory: [
454
+ [
455
+ " arguments " : . renamed( from: " parameters " ) ,
456
+ ]
425
457
]
426
458
) ,
427
459
@@ -437,14 +469,18 @@ public let ATTRIBUTE_NODES: [Node] = [
437
469
) ,
438
470
Child (
439
471
name: " arguments " ,
440
- deprecatedName: " differentiabilityParameters " ,
441
472
kind: . collection( kind: . differentiabilityArgumentList, collectionElementName: " Argument " ) ,
442
473
documentation: " The parameters for differentiation. "
443
474
) ,
444
475
Child (
445
476
name: " rightParen " ,
446
477
kind: . token( choices: [ . token( . rightParen) ] )
447
478
) ,
479
+ ] ,
480
+ childHistory: [
481
+ [
482
+ " arguments " : . renamed( from: " differentiabilityParameters " ) ,
483
+ ]
448
484
]
449
485
) ,
450
486
@@ -457,40 +493,44 @@ public let ATTRIBUTE_NODES: [Node] = [
457
493
children: [
458
494
Child (
459
495
name: " kindSpecifier " ,
460
- deprecatedName: " diffKind " ,
461
496
kind: . token( choices: [ . keyword( . _forward) , . keyword( . reverse) , . keyword( . _linear) ] ) ,
462
497
documentation: " The differentiability kind, if it exists. " ,
463
498
isOptional: true
464
499
) ,
465
500
Child (
466
501
name: " kindSpecifierComma " ,
467
- deprecatedName: " diffKindComma " ,
468
502
kind: . token( choices: [ . token( . comma) ] ) ,
469
503
documentation: " The comma following the differentiability kind, if it exists. " ,
470
504
isOptional: true
471
505
) ,
472
506
Child (
473
507
name: " arguments " ,
474
- deprecatedName: " diffParams " ,
475
508
kind: . node( kind: . differentiabilityWithRespectToArgument) ,
476
509
documentation: " The differentiability arguments, if any exists. " ,
477
510
isOptional: true
478
511
) ,
479
512
Child (
480
513
name: " argumentsComma " ,
481
- deprecatedName: " diffParamsComma " ,
482
514
kind: . token( choices: [ . token( . comma) ] ) ,
483
515
documentation: " The comma following the differentiability arguments clause, if it exists. " ,
484
516
isOptional: true
485
517
) ,
486
518
Child (
487
519
name: " genericWhereClause " ,
488
- deprecatedName: " whereClause " ,
489
520
kind: . node( kind: . genericWhereClause) ,
490
521
documentation:
491
522
" A `where` clause that places additional constraints on generic parameters like `where T: Differentiable`. " ,
492
523
isOptional: true
493
524
) ,
525
+ ] ,
526
+ childHistory: [
527
+ [
528
+ " kindSpecifier " : . renamed( from: " diffKind " ) ,
529
+ " kindSpecifierComma " : . renamed( from: " diffKindComma " ) ,
530
+ " arguments " : . renamed( from: " diffParams " ) ,
531
+ " argumentsComma " : . renamed( from: " diffParamsComma " ) ,
532
+ " genericWhereClause " : . renamed( from: " whereClause " ) ,
533
+ ]
494
534
]
495
535
) ,
496
536
@@ -564,9 +604,13 @@ public let ATTRIBUTE_NODES: [Node] = [
564
604
) ,
565
605
Child (
566
606
name: " declName " ,
567
- deprecatedName: " declname " ,
568
607
kind: . node( kind: . declReferenceExpr)
569
608
) ,
609
+ ] ,
610
+ childHistory: [
611
+ [
612
+ " declName " : . renamed( from: " declname " ) ,
613
+ ]
570
614
]
571
615
) ,
572
616
@@ -621,11 +665,15 @@ public let ATTRIBUTE_NODES: [Node] = [
621
665
) ,
622
666
Child (
623
667
name: " declName " ,
624
- deprecatedName: " declname " ,
625
668
kind: . node( kind: . declReferenceExpr) ,
626
669
nameForDiagnostics: " declaration name " ,
627
670
documentation: " The value for this argument "
628
671
) ,
672
+ ] ,
673
+ childHistory: [
674
+ [
675
+ " declName " : . renamed( from: " declname " ) ,
676
+ ]
629
677
]
630
678
) ,
631
679
@@ -776,7 +824,6 @@ public let ATTRIBUTE_NODES: [Node] = [
776
824
children: [
777
825
Child (
778
826
name: " targetLabel " ,
779
- deprecatedName: " label " ,
780
827
kind: . token( choices: [ . keyword( . target) ] ) ,
781
828
nameForDiagnostics: " label " ,
782
829
documentation: " The label of the argument "
@@ -788,7 +835,6 @@ public let ATTRIBUTE_NODES: [Node] = [
788
835
) ,
789
836
Child (
790
837
name: " declName " ,
791
- deprecatedName: " declname " ,
792
838
kind: . node( kind: . declReferenceExpr) ,
793
839
nameForDiagnostics: " declaration name " ,
794
840
documentation: " The value for this argument "
@@ -799,6 +845,12 @@ public let ATTRIBUTE_NODES: [Node] = [
799
845
documentation: " A trailing comma if this argument is followed by another one " ,
800
846
isOptional: true
801
847
) ,
848
+ ] ,
849
+ childHistory: [
850
+ [
851
+ " targetLabel " : . renamed( from: " label " ) ,
852
+ " declName " : . renamed( from: " declname " ) ,
853
+ ]
802
854
]
803
855
) ,
804
856
0 commit comments