@@ -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,31 @@ public let ATTRIBUTE_NODES: [Node] = [
407
431
) ,
408
432
Child (
409
433
name: " arguments " ,
410
- deprecatedName: " parameters " ,
411
- kind: . nodeChoices( choices: [
412
- Child (
413
- name: " argument " ,
414
- deprecatedName: " parameter " ,
415
- kind: . node( kind: . differentiabilityArgument)
416
- ) ,
417
- Child (
418
- name: " argumentList " ,
419
- deprecatedName: " parameterList " ,
420
- kind: . node( kind: . differentiabilityArguments)
421
- ) ,
422
- ] ) ,
434
+ kind: . nodeChoices(
435
+ choices: [
436
+ Child (
437
+ name: " argument " ,
438
+ kind: . node( kind: . differentiabilityArgument)
439
+ ) ,
440
+ Child (
441
+ name: " argumentList " ,
442
+ kind: . node( kind: . differentiabilityArguments)
443
+ ) ,
444
+ ] ,
445
+ childHistory: [
446
+ [
447
+ " argument " : . renamed( from: " parameter " ) ,
448
+ " argumentList " : . renamed( from: " parameterList " ) ,
449
+ ]
450
+ ]
451
+ ) ,
423
452
nameForDiagnostics: " arguments "
424
453
) ,
454
+ ] ,
455
+ childHistory: [
456
+ [
457
+ " arguments " : . renamed( from: " parameters " )
458
+ ]
425
459
]
426
460
) ,
427
461
@@ -437,14 +471,18 @@ public let ATTRIBUTE_NODES: [Node] = [
437
471
) ,
438
472
Child (
439
473
name: " arguments " ,
440
- deprecatedName: " differentiabilityParameters " ,
441
474
kind: . collection( kind: . differentiabilityArgumentList, collectionElementName: " Argument " ) ,
442
475
documentation: " The parameters for differentiation. "
443
476
) ,
444
477
Child (
445
478
name: " rightParen " ,
446
479
kind: . token( choices: [ . token( . rightParen) ] )
447
480
) ,
481
+ ] ,
482
+ childHistory: [
483
+ [
484
+ " arguments " : . renamed( from: " differentiabilityParameters " )
485
+ ]
448
486
]
449
487
) ,
450
488
@@ -457,40 +495,44 @@ public let ATTRIBUTE_NODES: [Node] = [
457
495
children: [
458
496
Child (
459
497
name: " kindSpecifier " ,
460
- deprecatedName: " diffKind " ,
461
498
kind: . token( choices: [ . keyword( . _forward) , . keyword( . reverse) , . keyword( . _linear) ] ) ,
462
499
documentation: " The differentiability kind, if it exists. " ,
463
500
isOptional: true
464
501
) ,
465
502
Child (
466
503
name: " kindSpecifierComma " ,
467
- deprecatedName: " diffKindComma " ,
468
504
kind: . token( choices: [ . token( . comma) ] ) ,
469
505
documentation: " The comma following the differentiability kind, if it exists. " ,
470
506
isOptional: true
471
507
) ,
472
508
Child (
473
509
name: " arguments " ,
474
- deprecatedName: " diffParams " ,
475
510
kind: . node( kind: . differentiabilityWithRespectToArgument) ,
476
511
documentation: " The differentiability arguments, if any exists. " ,
477
512
isOptional: true
478
513
) ,
479
514
Child (
480
515
name: " argumentsComma " ,
481
- deprecatedName: " diffParamsComma " ,
482
516
kind: . token( choices: [ . token( . comma) ] ) ,
483
517
documentation: " The comma following the differentiability arguments clause, if it exists. " ,
484
518
isOptional: true
485
519
) ,
486
520
Child (
487
521
name: " genericWhereClause " ,
488
- deprecatedName: " whereClause " ,
489
522
kind: . node( kind: . genericWhereClause) ,
490
523
documentation:
491
524
" A `where` clause that places additional constraints on generic parameters like `where T: Differentiable`. " ,
492
525
isOptional: true
493
526
) ,
527
+ ] ,
528
+ childHistory: [
529
+ [
530
+ " kindSpecifier " : . renamed( from: " diffKind " ) ,
531
+ " kindSpecifierComma " : . renamed( from: " diffKindComma " ) ,
532
+ " arguments " : . renamed( from: " diffParams " ) ,
533
+ " argumentsComma " : . renamed( from: " diffParamsComma " ) ,
534
+ " genericWhereClause " : . renamed( from: " whereClause " ) ,
535
+ ]
494
536
]
495
537
) ,
496
538
@@ -564,9 +606,13 @@ public let ATTRIBUTE_NODES: [Node] = [
564
606
) ,
565
607
Child (
566
608
name: " declName " ,
567
- deprecatedName: " declname " ,
568
609
kind: . node( kind: . declReferenceExpr)
569
610
) ,
611
+ ] ,
612
+ childHistory: [
613
+ [
614
+ " declName " : . renamed( from: " declname " )
615
+ ]
570
616
]
571
617
) ,
572
618
@@ -621,11 +667,15 @@ public let ATTRIBUTE_NODES: [Node] = [
621
667
) ,
622
668
Child (
623
669
name: " declName " ,
624
- deprecatedName: " declname " ,
625
670
kind: . node( kind: . declReferenceExpr) ,
626
671
nameForDiagnostics: " declaration name " ,
627
672
documentation: " The value for this argument "
628
673
) ,
674
+ ] ,
675
+ childHistory: [
676
+ [
677
+ " declName " : . renamed( from: " declname " )
678
+ ]
629
679
]
630
680
) ,
631
681
@@ -776,7 +826,6 @@ public let ATTRIBUTE_NODES: [Node] = [
776
826
children: [
777
827
Child (
778
828
name: " targetLabel " ,
779
- deprecatedName: " label " ,
780
829
kind: . token( choices: [ . keyword( . target) ] ) ,
781
830
nameForDiagnostics: " label " ,
782
831
documentation: " The label of the argument "
@@ -788,7 +837,6 @@ public let ATTRIBUTE_NODES: [Node] = [
788
837
) ,
789
838
Child (
790
839
name: " declName " ,
791
- deprecatedName: " declname " ,
792
840
kind: . node( kind: . declReferenceExpr) ,
793
841
nameForDiagnostics: " declaration name " ,
794
842
documentation: " The value for this argument "
@@ -799,6 +847,12 @@ public let ATTRIBUTE_NODES: [Node] = [
799
847
documentation: " A trailing comma if this argument is followed by another one " ,
800
848
isOptional: true
801
849
) ,
850
+ ] ,
851
+ childHistory: [
852
+ [
853
+ " targetLabel " : . renamed( from: " label " ) ,
854
+ " declName " : . renamed( from: " declname " ) ,
855
+ ]
802
856
]
803
857
) ,
804
858
0 commit comments