@@ -79,7 +79,8 @@ public let DECL_NODES: [Node] = [
79
79
kind: . token( choices: [ . token( tokenKind: " LeftParenToken " ) ] )
80
80
) ,
81
81
Child (
82
- name: " PropertyList " ,
82
+ name: " Properties " ,
83
+ deprecatedName: " PropertyList " ,
83
84
kind: . collection( kind: . tupleExprElementList, collectionElementName: " Property " ) ,
84
85
nameForDiagnostics: " properties "
85
86
) ,
@@ -104,7 +105,8 @@ public let DECL_NODES: [Node] = [
104
105
kind: . token( choices: [ . token( tokenKind: " LeftParenToken " ) ] )
105
106
) ,
106
107
Child (
107
- name: " PropertyList " ,
108
+ name: " Properties " ,
109
+ deprecatedName: " PropertyList " ,
108
110
kind: . collection( kind: . tupleExprElementList, collectionElementName: " Property " ) ,
109
111
nameForDiagnostics: " properties "
110
112
) ,
@@ -240,7 +242,7 @@ public let DECL_NODES: [Node] = [
240
242
nameForDiagnostics: " actor " ,
241
243
traits: [
242
244
" DeclGroup " ,
243
- " IdentifiedDecl " ,
245
+ " NamedDecl " ,
244
246
" WithAttributes " ,
245
247
" WithGenericParameters " ,
246
248
" WithModifiers " ,
@@ -263,7 +265,8 @@ public let DECL_NODES: [Node] = [
263
265
kind: . token( choices: [ . keyword( text: " actor " ) ] )
264
266
) ,
265
267
Child (
266
- name: " Identifier " ,
268
+ name: " Name " ,
269
+ deprecatedName: " Identifier " ,
267
270
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] )
268
271
) ,
269
272
Child (
@@ -328,7 +331,7 @@ public let DECL_NODES: [Node] = [
328
331
```
329
332
""" ,
330
333
traits: [
331
- " IdentifiedDecl " ,
334
+ " NamedDecl " ,
332
335
" WithAttributes " ,
333
336
" WithModifiers " ,
334
337
] ,
@@ -353,7 +356,8 @@ public let DECL_NODES: [Node] = [
353
356
documentation: " The `associatedtype` keyword for this declaration. "
354
357
) ,
355
358
Child (
356
- name: " Identifier " ,
359
+ name: " Name " ,
360
+ deprecatedName: " Identifier " ,
357
361
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
358
362
documentation: " The name of this associated type. "
359
363
) ,
@@ -416,7 +420,7 @@ public let DECL_NODES: [Node] = [
416
420
""" ,
417
421
traits: [
418
422
" DeclGroup " ,
419
- " IdentifiedDecl " ,
423
+ " NamedDecl " ,
420
424
" WithAttributes " ,
421
425
" WithGenericParameters " ,
422
426
" WithModifiers " ,
@@ -442,7 +446,8 @@ public let DECL_NODES: [Node] = [
442
446
documentation: " The `class` keyword for this declaration. "
443
447
) ,
444
448
Child (
445
- name: " Identifier " ,
449
+ name: " Name " ,
450
+ deprecatedName: " Identifier " ,
446
451
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
447
452
documentation: " The name of the class. "
448
453
) ,
@@ -676,7 +681,8 @@ public let DECL_NODES: [Node] = [
676
681
documentation: " The '(' to open the parameter clause. "
677
682
) ,
678
683
Child (
679
- name: " ParameterList " ,
684
+ name: " Parameters " ,
685
+ deprecatedName: " ParameterList " ,
680
686
kind: . collection( kind: . enumCaseParameterList, collectionElementName: " Parameter " ) ,
681
687
nameForDiagnostics: " parameters " ,
682
688
documentation: " The actual parameters. "
@@ -803,7 +809,8 @@ public let DECL_NODES: [Node] = [
803
809
] ,
804
810
children: [
805
811
Child (
806
- name: " Identifier " ,
812
+ name: " Name " ,
813
+ deprecatedName: " Identifier " ,
807
814
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
808
815
documentation: " The name of this case. "
809
816
) ,
@@ -836,7 +843,7 @@ public let DECL_NODES: [Node] = [
836
843
documentation: " A Swift `enum` declaration. " ,
837
844
traits: [
838
845
" DeclGroup " ,
839
- " IdentifiedDecl " ,
846
+ " NamedDecl " ,
840
847
" WithAttributes " ,
841
848
" WithGenericParameters " ,
842
849
" WithModifiers " ,
@@ -862,7 +869,8 @@ public let DECL_NODES: [Node] = [
862
869
documentation: " The `enum` keyword for this declaration. "
863
870
) ,
864
871
Child (
865
- name: " Identifier " ,
872
+ name: " Name " ,
873
+ deprecatedName: " Identifier " ,
866
874
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
867
875
documentation: " Declares the name of this enum. If the name matches a reserved keyword use backticks to escape it. "
868
876
) ,
@@ -958,7 +966,7 @@ public let DECL_NODES: [Node] = [
958
966
base: . decl,
959
967
nameForDiagnostics: " function " ,
960
968
traits: [
961
- " IdentifiedDecl " ,
969
+ " NamedDecl " ,
962
970
" WithAttributes " ,
963
971
" WithGenericParameters " ,
964
972
" WithModifiers " ,
@@ -981,7 +989,8 @@ public let DECL_NODES: [Node] = [
981
989
kind: . token( choices: [ . keyword( text: " func " ) ] )
982
990
) ,
983
991
Child (
984
- name: " Identifier " ,
992
+ name: " Name " ,
993
+ deprecatedName: " Identifier " ,
985
994
kind: . token( choices: [
986
995
. token( tokenKind: " IdentifierToken " ) ,
987
996
. token( tokenKind: " BinaryOperatorToken " ) ,
@@ -1259,7 +1268,8 @@ public let DECL_NODES: [Node] = [
1259
1268
] ,
1260
1269
children: [
1261
1270
Child (
1262
- name: " TypeName " ,
1271
+ name: " Type " ,
1272
+ deprecatedName: " TypeName " ,
1263
1273
kind: . node( kind: . type)
1264
1274
) ,
1265
1275
Child (
@@ -1370,7 +1380,7 @@ public let DECL_NODES: [Node] = [
1370
1380
base: . decl,
1371
1381
nameForDiagnostics: " macro " ,
1372
1382
traits: [
1373
- " IdentifiedDecl " ,
1383
+ " NamedDecl " ,
1374
1384
" WithAttributes " ,
1375
1385
" WithGenericParameters " ,
1376
1386
" WithModifiers " ,
@@ -1393,7 +1403,8 @@ public let DECL_NODES: [Node] = [
1393
1403
kind: . token( choices: [ . keyword( text: " macro " ) ] )
1394
1404
) ,
1395
1405
Child (
1396
- name: " Identifier " ,
1406
+ name: " Name " ,
1407
+ deprecatedName: " Identifier " ,
1397
1408
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] )
1398
1409
) ,
1399
1410
Child (
@@ -1454,7 +1465,8 @@ public let DECL_NODES: [Node] = [
1454
1465
documentation: " The `#` sign. "
1455
1466
) ,
1456
1467
Child (
1457
- name: " Macro " ,
1468
+ name: " MacroName " ,
1469
+ deprecatedName: " Macro " ,
1458
1470
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] )
1459
1471
) ,
1460
1472
Child (
@@ -1469,7 +1481,8 @@ public let DECL_NODES: [Node] = [
1469
1481
isOptional: true
1470
1482
) ,
1471
1483
Child (
1472
- name: " ArgumentList " ,
1484
+ name: " Arguments " ,
1485
+ deprecatedName: " ArgumentList " ,
1473
1486
kind: . collection( kind: . tupleExprElementList, collectionElementName: " Argument " )
1474
1487
) ,
1475
1488
Child (
@@ -1577,7 +1590,7 @@ public let DECL_NODES: [Node] = [
1577
1590
nameForDiagnostics: " operator declaration " ,
1578
1591
documentation: " A Swift `operator` declaration. " ,
1579
1592
traits: [
1580
- " IdentifiedDecl "
1593
+ " NamedDecl "
1581
1594
] ,
1582
1595
children: [
1583
1596
Child (
@@ -1592,7 +1605,8 @@ public let DECL_NODES: [Node] = [
1592
1605
kind: . token( choices: [ . keyword( text: " operator " ) ] )
1593
1606
) ,
1594
1607
Child (
1595
- name: " Identifier " ,
1608
+ name: " Name " ,
1609
+ deprecatedName: " Identifier " ,
1596
1610
kind: . token( choices: [ . token( tokenKind: " BinaryOperatorToken " ) , . token( tokenKind: " PrefixOperatorToken " ) , . token( tokenKind: " PostfixOperatorToken " ) ] )
1597
1611
) ,
1598
1612
Child (
@@ -1642,7 +1656,8 @@ public let DECL_NODES: [Node] = [
1642
1656
kind: . token( choices: [ . token( tokenKind: " LeftParenToken " ) ] )
1643
1657
) ,
1644
1658
Child (
1645
- name: " ParameterList " ,
1659
+ name: " Parameters " ,
1660
+ deprecatedName: " ParameterList " ,
1646
1661
kind: . collection( kind: . functionParameterList, collectionElementName: " Parameter " ) ,
1647
1662
nameForDiagnostics: " parameters "
1648
1663
) ,
@@ -1685,7 +1700,8 @@ public let DECL_NODES: [Node] = [
1685
1700
isOptional: true
1686
1701
) ,
1687
1702
Child (
1688
- name: " Accessor " ,
1703
+ name: " Accessors " ,
1704
+ deprecatedName: " Accessor " ,
1689
1705
kind: . nodeChoices( choices: [
1690
1706
Child (
1691
1707
name: " Accessors " ,
@@ -1765,7 +1781,8 @@ public let DECL_NODES: [Node] = [
1765
1781
kind: . token( choices: [ . token( tokenKind: " LeftParenToken " ) ] )
1766
1782
) ,
1767
1783
Child (
1768
- name: " Args " ,
1784
+ name: " Arguments " ,
1785
+ deprecatedName: " Args " ,
1769
1786
kind: . node( kind: . poundSourceLocationArgs) ,
1770
1787
nameForDiagnostics: " arguments " ,
1771
1788
isOptional: true
@@ -1848,7 +1865,7 @@ public let DECL_NODES: [Node] = [
1848
1865
nameForDiagnostics: " precedencegroup " ,
1849
1866
documentation: " A Swift `precedencegroup` declaration. " ,
1850
1867
traits: [
1851
- " IdentifiedDecl " ,
1868
+ " NamedDecl " ,
1852
1869
" WithAttributes " ,
1853
1870
" WithModifiers " ,
1854
1871
] ,
@@ -1872,7 +1889,8 @@ public let DECL_NODES: [Node] = [
1872
1889
kind: . token( choices: [ . keyword( text: " precedencegroup " ) ] )
1873
1890
) ,
1874
1891
Child (
1875
- name: " Identifier " ,
1892
+ name: " Name " ,
1893
+ deprecatedName: " Identifier " ,
1876
1894
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
1877
1895
documentation: " The name of this precedence group. "
1878
1896
) ,
@@ -1961,7 +1979,7 @@ public let DECL_NODES: [Node] = [
1961
1979
""" ,
1962
1980
traits: [
1963
1981
" DeclGroup " ,
1964
- " IdentifiedDecl " ,
1982
+ " NamedDecl " ,
1965
1983
" WithAttributes " ,
1966
1984
" WithModifiers " ,
1967
1985
] ,
@@ -1986,7 +2004,8 @@ public let DECL_NODES: [Node] = [
1986
2004
documentation: " The `protocol` keyword for this declaration. "
1987
2005
) ,
1988
2006
Child (
1989
- name: " Identifier " ,
2007
+ name: " Name " ,
2008
+ deprecatedName: " Identifier " ,
1990
2009
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
1991
2010
documentation: " The name of the protocol. "
1992
2011
) ,
@@ -2031,7 +2050,8 @@ public let DECL_NODES: [Node] = [
2031
2050
kind: . token( choices: [ . token( tokenKind: " ArrowToken " ) ] )
2032
2051
) ,
2033
2052
Child (
2034
- name: " ReturnType " ,
2053
+ name: " Type " ,
2054
+ deprecatedName: " ReturnType " ,
2035
2055
kind: . node( kind: . type) ,
2036
2056
nameForDiagnostics: " return type "
2037
2057
) ,
@@ -2128,7 +2148,7 @@ public let DECL_NODES: [Node] = [
2128
2148
""" ,
2129
2149
traits: [
2130
2150
" DeclGroup " ,
2131
- " IdentifiedDecl " ,
2151
+ " NamedDecl " ,
2132
2152
" WithAttributes " ,
2133
2153
" WithGenericParameters " ,
2134
2154
" WithModifiers " ,
@@ -2154,7 +2174,8 @@ public let DECL_NODES: [Node] = [
2154
2174
documentation: " The `struct` keyword for this declaration. "
2155
2175
) ,
2156
2176
Child (
2157
- name: " Identifier " ,
2177
+ name: " Name " ,
2178
+ deprecatedName: " Identifier " ,
2158
2179
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] ) ,
2159
2180
documentation: " Declares the name of this struct. If the name matches a reserved keyword use backticks to escape it. "
2160
2181
) ,
@@ -2239,7 +2260,8 @@ public let DECL_NODES: [Node] = [
2239
2260
isOptional: true
2240
2261
) ,
2241
2262
Child (
2242
- name: " Accessor " ,
2263
+ name: " Accessors " ,
2264
+ deprecatedName: " Accessor " ,
2243
2265
kind: . nodeChoices( choices: [
2244
2266
Child (
2245
2267
name: " Accessors " ,
@@ -2266,7 +2288,8 @@ public let DECL_NODES: [Node] = [
2266
2288
kind: . token( choices: [ . token( tokenKind: " ColonToken " ) ] )
2267
2289
) ,
2268
2290
Child (
2269
- name: " InheritedTypeCollection " ,
2291
+ name: " InheritedTypes " ,
2292
+ deprecatedName: " InheritedTypeCollection " ,
2270
2293
kind: . collection( kind: . inheritedTypeList, collectionElementName: " InheritedType " )
2271
2294
) ,
2272
2295
]
@@ -2299,7 +2322,7 @@ public let DECL_NODES: [Node] = [
2299
2322
base: . decl,
2300
2323
nameForDiagnostics: " typealias declaration " ,
2301
2324
traits: [
2302
- " IdentifiedDecl " ,
2325
+ " NamedDecl " ,
2303
2326
" WithAttributes " ,
2304
2327
" WithGenericParameters " ,
2305
2328
" WithModifiers " ,
@@ -2322,7 +2345,8 @@ public let DECL_NODES: [Node] = [
2322
2345
kind: . token( choices: [ . keyword( text: " typealias " ) ] )
2323
2346
) ,
2324
2347
Child (
2325
- name: " Identifier " ,
2348
+ name: " Name " ,
2349
+ deprecatedName: " Identifier " ,
2326
2350
kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] )
2327
2351
) ,
2328
2352
Child (
0 commit comments