@@ -84,9 +84,8 @@ public let DECL_NODES: [Node] = [
84
84
children: [
85
85
Child (
86
86
name: " Attributes " ,
87
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
88
- nameForDiagnostics: " attributes " ,
89
- isOptional: true
87
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
88
+ nameForDiagnostics: " attributes "
90
89
) ,
91
90
Child (
92
91
name: " Modifier " ,
@@ -186,9 +185,8 @@ public let DECL_NODES: [Node] = [
186
185
children: [
187
186
Child (
188
187
name: " Attributes " ,
189
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
190
- nameForDiagnostics: " attributes " ,
191
- isOptional: true
188
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
189
+ nameForDiagnostics: " attributes "
192
190
) ,
193
191
Child (
194
192
name: " Modifiers " ,
@@ -275,10 +273,9 @@ public let DECL_NODES: [Node] = [
275
273
children: [
276
274
Child (
277
275
name: " Attributes " ,
278
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
276
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
279
277
nameForDiagnostics: " attributes " ,
280
- documentation: " Attributes attached to the associated type declaration. " ,
281
- isOptional: true
278
+ documentation: " Attributes attached to the associated type declaration. "
282
279
) ,
283
280
Child (
284
281
name: " Modifiers " ,
@@ -366,10 +363,9 @@ public let DECL_NODES: [Node] = [
366
363
children: [
367
364
Child (
368
365
name: " Attributes " ,
369
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
366
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
370
367
nameForDiagnostics: " attributes " ,
371
- documentation: " Attributes attached to the class declaration, such as an `@available` attribute. " ,
372
- isOptional: true
368
+ documentation: " Attributes attached to the class declaration, such as an `@available` attribute. "
373
369
) ,
374
370
Child (
375
371
name: " Modifiers " ,
@@ -515,10 +511,9 @@ public let DECL_NODES: [Node] = [
515
511
children: [
516
512
Child (
517
513
name: " Attributes " ,
518
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
514
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
519
515
nameForDiagnostics: " attributes " ,
520
- documentation: " Attributes that are attached to the deinitializer. " ,
521
- isOptional: true
516
+ documentation: " Attributes that are attached to the deinitializer. "
522
517
) ,
523
518
Child (
524
519
name: " Modifiers " ,
@@ -584,9 +579,8 @@ public let DECL_NODES: [Node] = [
584
579
children: [
585
580
Child (
586
581
name: " Attributes " ,
587
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
588
- documentation: " If there were attributes before the editor placeholder, the ``EditorPlaceholderDeclSyntax`` will contain these. " ,
589
- isOptional: true
582
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
583
+ documentation: " If there were attributes before the editor placeholder, the ``EditorPlaceholderDeclSyntax`` will contain these. "
590
584
) ,
591
585
Child (
592
586
name: " Modifiers " ,
@@ -702,10 +696,9 @@ public let DECL_NODES: [Node] = [
702
696
children: [
703
697
Child (
704
698
name: " Attributes " ,
705
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
699
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
706
700
nameForDiagnostics: " attributes " ,
707
- documentation: " The attributes applied to the case declaration. " ,
708
- isOptional: true
701
+ documentation: " The attributes applied to the case declaration. "
709
702
) ,
710
703
Child (
711
704
name: " Modifiers " ,
@@ -788,10 +781,9 @@ public let DECL_NODES: [Node] = [
788
781
children: [
789
782
Child (
790
783
name: " Attributes " ,
791
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
784
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
792
785
nameForDiagnostics: " attributes " ,
793
- documentation: " The attributes applied to the enum declaration. " ,
794
- isOptional: true
786
+ documentation: " The attributes applied to the enum declaration. "
795
787
) ,
796
788
Child (
797
789
name: " Modifiers " ,
@@ -859,9 +851,8 @@ public let DECL_NODES: [Node] = [
859
851
children: [
860
852
Child (
861
853
name: " Attributes " ,
862
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
863
- nameForDiagnostics: " attributes " ,
864
- isOptional: true
854
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
855
+ nameForDiagnostics: " attributes "
865
856
) ,
866
857
Child (
867
858
name: " Modifiers " ,
@@ -909,9 +900,8 @@ public let DECL_NODES: [Node] = [
909
900
children: [
910
901
Child (
911
902
name: " Attributes " ,
912
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
913
- nameForDiagnostics: " attributes " ,
914
- isOptional: true
903
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
904
+ nameForDiagnostics: " attributes "
915
905
) ,
916
906
Child (
917
907
name: " Modifiers " ,
@@ -978,9 +968,8 @@ public let DECL_NODES: [Node] = [
978
968
children: [
979
969
Child (
980
970
name: " Attributes " ,
981
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
982
- nameForDiagnostics: " attributes " ,
983
- isOptional: true
971
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
972
+ nameForDiagnostics: " attributes "
984
973
) ,
985
974
Child (
986
975
name: " Modifiers " ,
@@ -1145,10 +1134,9 @@ public let DECL_NODES: [Node] = [
1145
1134
children: [
1146
1135
Child (
1147
1136
name: " Attributes " ,
1148
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1137
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
1149
1138
nameForDiagnostics: " attributes " ,
1150
- documentation: " Attributes attached to the import declaration, for example `@testable`. " ,
1151
- isOptional: true
1139
+ documentation: " Attributes attached to the import declaration, for example `@testable`. "
1152
1140
) ,
1153
1141
Child (
1154
1142
name: " Modifiers " ,
@@ -1260,10 +1248,9 @@ public let DECL_NODES: [Node] = [
1260
1248
children: [
1261
1249
Child (
1262
1250
name: " Attributes " ,
1263
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1251
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
1264
1252
nameForDiagnostics: " attributes " ,
1265
- documentation: " Attributes that are attached to the initializer. " ,
1266
- isOptional: true
1253
+ documentation: " Attributes that are attached to the initializer. "
1267
1254
) ,
1268
1255
Child (
1269
1256
name: " Modifiers " ,
@@ -1328,9 +1315,8 @@ public let DECL_NODES: [Node] = [
1328
1315
children: [
1329
1316
Child (
1330
1317
name: " Attributes " ,
1331
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1332
- nameForDiagnostics: " attributes " ,
1333
- isOptional: true
1318
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
1319
+ nameForDiagnostics: " attributes "
1334
1320
) ,
1335
1321
Child (
1336
1322
name: " Modifiers " ,
@@ -1387,9 +1373,8 @@ public let DECL_NODES: [Node] = [
1387
1373
children: [
1388
1374
Child (
1389
1375
name: " Attributes " ,
1390
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1391
- nameForDiagnostics: " attributes " ,
1392
- isOptional: true
1376
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
1377
+ nameForDiagnostics: " attributes "
1393
1378
) ,
1394
1379
Child (
1395
1380
name: " Modifiers " ,
@@ -1827,10 +1812,9 @@ public let DECL_NODES: [Node] = [
1827
1812
children: [
1828
1813
Child (
1829
1814
name: " Attributes " ,
1830
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1815
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
1831
1816
nameForDiagnostics: " attributes " ,
1832
- documentation: " The attributes applied to the 'precedencegroup' declaration. " ,
1833
- isOptional: true
1817
+ documentation: " The attributes applied to the 'precedencegroup' declaration. "
1834
1818
) ,
1835
1819
Child (
1836
1820
name: " Modifiers " ,
@@ -1943,10 +1927,9 @@ public let DECL_NODES: [Node] = [
1943
1927
children: [
1944
1928
Child (
1945
1929
name: " Attributes " ,
1946
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1930
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
1947
1931
nameForDiagnostics: " attributes " ,
1948
- documentation: " Attributes attached to the protocol declaration, such as an `@available` attribute. " ,
1949
- isOptional: true
1932
+ documentation: " Attributes attached to the protocol declaration, such as an `@available` attribute. "
1950
1933
) ,
1951
1934
Child (
1952
1935
name: " Modifiers " ,
@@ -2114,10 +2097,9 @@ public let DECL_NODES: [Node] = [
2114
2097
children: [
2115
2098
Child (
2116
2099
name: " Attributes " ,
2117
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
2100
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
2118
2101
nameForDiagnostics: " attributes " ,
2119
- documentation: " Attributes that are attached to the struct declaration. " ,
2120
- isOptional: true
2102
+ documentation: " Attributes that are attached to the struct declaration. "
2121
2103
) ,
2122
2104
Child (
2123
2105
name: " Modifiers " ,
@@ -2178,9 +2160,8 @@ public let DECL_NODES: [Node] = [
2178
2160
children: [
2179
2161
Child (
2180
2162
name: " Attributes " ,
2181
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
2182
- nameForDiagnostics: " attributes " ,
2183
- isOptional: true
2163
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
2164
+ nameForDiagnostics: " attributes "
2184
2165
) ,
2185
2166
Child (
2186
2167
name: " Modifiers " ,
@@ -2277,9 +2258,8 @@ public let DECL_NODES: [Node] = [
2277
2258
children: [
2278
2259
Child (
2279
2260
name: " Attributes " ,
2280
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
2281
- nameForDiagnostics: " attributes " ,
2282
- isOptional: true
2261
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
2262
+ nameForDiagnostics: " attributes "
2283
2263
) ,
2284
2264
Child (
2285
2265
name: " Modifiers " ,
@@ -2333,9 +2313,8 @@ public let DECL_NODES: [Node] = [
2333
2313
children: [
2334
2314
Child (
2335
2315
name: " Attributes " ,
2336
- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
2337
- nameForDiagnostics: " attributes " ,
2338
- isOptional: true
2316
+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty: true ) ,
2317
+ nameForDiagnostics: " attributes "
2339
2318
) ,
2340
2319
Child (
2341
2320
name: " Modifiers " ,
0 commit comments