@@ -192,9 +192,8 @@ public let DECL_NODES: [Node] = [
192
192
) ,
193
193
Child (
194
194
name: " Modifiers " ,
195
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
196
- nameForDiagnostics: " modifiers " ,
197
- isOptional: true
195
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
196
+ nameForDiagnostics: " modifiers "
198
197
) ,
199
198
Child (
200
199
name: " ActorKeyword " ,
@@ -283,10 +282,9 @@ public let DECL_NODES: [Node] = [
283
282
) ,
284
283
Child (
285
284
name: " Modifiers " ,
286
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
285
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
287
286
nameForDiagnostics: " modifiers " ,
288
- documentation: " Modifiers attached to the associated type declaration. " ,
289
- isOptional: true
287
+ documentation: " Modifiers attached to the associated type declaration. "
290
288
) ,
291
289
Child (
292
290
name: " AssociatedtypeKeyword " ,
@@ -375,10 +373,9 @@ public let DECL_NODES: [Node] = [
375
373
) ,
376
374
Child (
377
375
name: " Modifiers " ,
378
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
376
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
379
377
nameForDiagnostics: " modifiers " ,
380
- documentation: " Modifiers attached to the class declaration, such as `public`. " ,
381
- isOptional: true
378
+ documentation: " Modifiers attached to the class declaration, such as `public`. "
382
379
) ,
383
380
Child (
384
381
name: " ClassKeyword " ,
@@ -525,10 +522,9 @@ public let DECL_NODES: [Node] = [
525
522
) ,
526
523
Child (
527
524
name: " Modifiers " ,
528
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
525
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
529
526
nameForDiagnostics: " modifiers " ,
530
- documentation: " Modifiers that are attached to the deinitializer. " ,
531
- isOptional: true
527
+ documentation: " Modifiers that are attached to the deinitializer. "
532
528
) ,
533
529
Child (
534
530
name: " DeinitKeyword " ,
@@ -594,9 +590,8 @@ public let DECL_NODES: [Node] = [
594
590
) ,
595
591
Child (
596
592
name: " Modifiers " ,
597
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
598
- documentation: " If there were modifiers before the editor placeholder, the `EditorPlaceholderDecl` will contain these. " ,
599
- isOptional: true
593
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
594
+ documentation: " If there were modifiers before the editor placeholder, the `EditorPlaceholderDecl` will contain these. "
600
595
) ,
601
596
Child (
602
597
name: " Placeholder " ,
@@ -653,9 +648,8 @@ public let DECL_NODES: [Node] = [
653
648
children: [
654
649
Child (
655
650
name: " Modifiers " ,
656
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
657
- nameForDiagnostics: " modifiers " ,
658
- isOptional: true
651
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
652
+ nameForDiagnostics: " modifiers "
659
653
) ,
660
654
Child (
661
655
name: " FirstName " ,
@@ -715,10 +709,9 @@ public let DECL_NODES: [Node] = [
715
709
) ,
716
710
Child (
717
711
name: " Modifiers " ,
718
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
712
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
719
713
nameForDiagnostics: " modifiers " ,
720
- documentation: " The declaration modifiers applied to the case declaration. " ,
721
- isOptional: true
714
+ documentation: " The declaration modifiers applied to the case declaration. "
722
715
) ,
723
716
Child (
724
717
name: " CaseKeyword " ,
@@ -802,10 +795,9 @@ public let DECL_NODES: [Node] = [
802
795
) ,
803
796
Child (
804
797
name: " Modifiers " ,
805
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
798
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
806
799
nameForDiagnostics: " modifiers " ,
807
- documentation: " The declaration modifiers applied to the enum declaration. " ,
808
- isOptional: true
800
+ documentation: " The declaration modifiers applied to the enum declaration. "
809
801
) ,
810
802
Child (
811
803
name: " EnumKeyword " ,
@@ -873,9 +865,8 @@ public let DECL_NODES: [Node] = [
873
865
) ,
874
866
Child (
875
867
name: " Modifiers " ,
876
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
877
- nameForDiagnostics: " modifiers " ,
878
- isOptional: true
868
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
869
+ nameForDiagnostics: " modifiers "
879
870
) ,
880
871
Child (
881
872
name: " ExtensionKeyword " ,
@@ -924,9 +915,8 @@ public let DECL_NODES: [Node] = [
924
915
) ,
925
916
Child (
926
917
name: " Modifiers " ,
927
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
928
- nameForDiagnostics: " modifiers " ,
929
- isOptional: true
918
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
919
+ nameForDiagnostics: " modifiers "
930
920
) ,
931
921
Child (
932
922
name: " FuncKeyword " ,
@@ -994,9 +984,8 @@ public let DECL_NODES: [Node] = [
994
984
) ,
995
985
Child (
996
986
name: " Modifiers " ,
997
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
998
- nameForDiagnostics: " modifiers " ,
999
- isOptional: true
987
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
988
+ nameForDiagnostics: " modifiers "
1000
989
) ,
1001
990
Child (
1002
991
name: " FirstName " ,
@@ -1163,10 +1152,9 @@ public let DECL_NODES: [Node] = [
1163
1152
) ,
1164
1153
Child (
1165
1154
name: " Modifiers " ,
1166
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
1155
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
1167
1156
nameForDiagnostics: " modifiers " ,
1168
- documentation: " Modifiers attached to the import declaration. Currently, no modifiers are supported by Swift. " ,
1169
- isOptional: true
1157
+ documentation: " Modifiers attached to the import declaration. Currently, no modifiers are supported by Swift. "
1170
1158
) ,
1171
1159
Child (
1172
1160
name: " ImportKeyword " ,
@@ -1279,10 +1267,9 @@ public let DECL_NODES: [Node] = [
1279
1267
) ,
1280
1268
Child (
1281
1269
name: " Modifiers " ,
1282
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
1270
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
1283
1271
nameForDiagnostics: " modifiers " ,
1284
- documentation: " Modifiers attached to the initializer " ,
1285
- isOptional: true
1272
+ documentation: " Modifiers attached to the initializer "
1286
1273
) ,
1287
1274
Child (
1288
1275
name: " InitKeyword " ,
@@ -1347,9 +1334,8 @@ public let DECL_NODES: [Node] = [
1347
1334
) ,
1348
1335
Child (
1349
1336
name: " Modifiers " ,
1350
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
1351
- nameForDiagnostics: " modifiers " ,
1352
- isOptional: true
1337
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
1338
+ nameForDiagnostics: " modifiers "
1353
1339
) ,
1354
1340
Child (
1355
1341
name: " MacroKeyword " ,
@@ -1407,9 +1393,8 @@ public let DECL_NODES: [Node] = [
1407
1393
) ,
1408
1394
Child (
1409
1395
name: " Modifiers " ,
1410
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
1411
- nameForDiagnostics: " modifiers " ,
1412
- isOptional: true
1396
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
1397
+ nameForDiagnostics: " modifiers "
1413
1398
) ,
1414
1399
Child (
1415
1400
name: " Pound " ,
@@ -1849,10 +1834,9 @@ public let DECL_NODES: [Node] = [
1849
1834
) ,
1850
1835
Child (
1851
1836
name: " Modifiers " ,
1852
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
1837
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
1853
1838
nameForDiagnostics: " modifiers " ,
1854
- documentation: " The declaration modifiers applied to the 'precedencegroup' declaration. " ,
1855
- isOptional: true
1839
+ documentation: " The declaration modifiers applied to the 'precedencegroup' declaration. "
1856
1840
) ,
1857
1841
Child (
1858
1842
name: " PrecedencegroupKeyword " ,
@@ -1966,10 +1950,9 @@ public let DECL_NODES: [Node] = [
1966
1950
) ,
1967
1951
Child (
1968
1952
name: " Modifiers " ,
1969
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
1953
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
1970
1954
nameForDiagnostics: " modifiers " ,
1971
- documentation: " Modifiers attached to the protocol declaration, such as `public`. " ,
1972
- isOptional: true
1955
+ documentation: " Modifiers attached to the protocol declaration, such as `public`. "
1973
1956
) ,
1974
1957
Child (
1975
1958
name: " ProtocolKeyword " ,
@@ -2138,10 +2121,9 @@ public let DECL_NODES: [Node] = [
2138
2121
) ,
2139
2122
Child (
2140
2123
name: " Modifiers " ,
2141
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
2124
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty : true ) ,
2142
2125
nameForDiagnostics: " modifiers " ,
2143
- documentation: " Modifiers that are attached to the struct declaration. " ,
2144
- isOptional: true
2126
+ documentation: " Modifiers that are attached to the struct declaration. "
2145
2127
) ,
2146
2128
Child (
2147
2129
name: " StructKeyword " ,
@@ -2202,9 +2184,8 @@ public let DECL_NODES: [Node] = [
2202
2184
) ,
2203
2185
Child (
2204
2186
name: " Modifiers " ,
2205
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
2206
- nameForDiagnostics: " modifiers " ,
2207
- isOptional: true
2187
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
2188
+ nameForDiagnostics: " modifiers "
2208
2189
) ,
2209
2190
Child (
2210
2191
name: " SubscriptKeyword " ,
@@ -2302,9 +2283,8 @@ public let DECL_NODES: [Node] = [
2302
2283
) ,
2303
2284
Child (
2304
2285
name: " Modifiers " ,
2305
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
2306
- nameForDiagnostics: " modifiers " ,
2307
- isOptional: true
2286
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
2287
+ nameForDiagnostics: " modifiers "
2308
2288
) ,
2309
2289
Child (
2310
2290
name: " TypealiasKeyword " ,
@@ -2359,9 +2339,8 @@ public let DECL_NODES: [Node] = [
2359
2339
) ,
2360
2340
Child (
2361
2341
name: " Modifiers " ,
2362
- kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " ) ,
2363
- nameForDiagnostics: " modifiers " ,
2364
- isOptional: true
2342
+ kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
2343
+ nameForDiagnostics: " modifiers "
2365
2344
) ,
2366
2345
Child (
2367
2346
name: " BindingSpecifier " ,
0 commit comments