@@ -84,9 +84,8 @@ public let DECL_NODES: [Node] = [
8484 children: [
8585 Child (
8686 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 "
9089 ) ,
9190 Child (
9291 name: " Modifier " ,
@@ -186,9 +185,8 @@ public let DECL_NODES: [Node] = [
186185 children: [
187186 Child (
188187 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 "
192190 ) ,
193191 Child (
194192 name: " Modifiers " ,
@@ -275,10 +273,9 @@ public let DECL_NODES: [Node] = [
275273 children: [
276274 Child (
277275 name: " Attributes " ,
278- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
276+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
279277 nameForDiagnostics: " attributes " ,
280- documentation: " Attributes attached to the associated type declaration. " ,
281- isOptional: true
278+ documentation: " Attributes attached to the associated type declaration. "
282279 ) ,
283280 Child (
284281 name: " Modifiers " ,
@@ -366,10 +363,9 @@ public let DECL_NODES: [Node] = [
366363 children: [
367364 Child (
368365 name: " Attributes " ,
369- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
366+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
370367 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. "
373369 ) ,
374370 Child (
375371 name: " Modifiers " ,
@@ -515,10 +511,9 @@ public let DECL_NODES: [Node] = [
515511 children: [
516512 Child (
517513 name: " Attributes " ,
518- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
514+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
519515 nameForDiagnostics: " attributes " ,
520- documentation: " Attributes that are attached to the deinitializer. " ,
521- isOptional: true
516+ documentation: " Attributes that are attached to the deinitializer. "
522517 ) ,
523518 Child (
524519 name: " Modifiers " ,
@@ -584,9 +579,8 @@ public let DECL_NODES: [Node] = [
584579 children: [
585580 Child (
586581 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. "
590584 ) ,
591585 Child (
592586 name: " Modifiers " ,
@@ -702,10 +696,9 @@ public let DECL_NODES: [Node] = [
702696 children: [
703697 Child (
704698 name: " Attributes " ,
705- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
699+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
706700 nameForDiagnostics: " attributes " ,
707- documentation: " The attributes applied to the case declaration. " ,
708- isOptional: true
701+ documentation: " The attributes applied to the case declaration. "
709702 ) ,
710703 Child (
711704 name: " Modifiers " ,
@@ -788,10 +781,9 @@ public let DECL_NODES: [Node] = [
788781 children: [
789782 Child (
790783 name: " Attributes " ,
791- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
784+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
792785 nameForDiagnostics: " attributes " ,
793- documentation: " The attributes applied to the enum declaration. " ,
794- isOptional: true
786+ documentation: " The attributes applied to the enum declaration. "
795787 ) ,
796788 Child (
797789 name: " Modifiers " ,
@@ -859,9 +851,8 @@ public let DECL_NODES: [Node] = [
859851 children: [
860852 Child (
861853 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 "
865856 ) ,
866857 Child (
867858 name: " Modifiers " ,
@@ -909,9 +900,8 @@ public let DECL_NODES: [Node] = [
909900 children: [
910901 Child (
911902 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 "
915905 ) ,
916906 Child (
917907 name: " Modifiers " ,
@@ -978,9 +968,8 @@ public let DECL_NODES: [Node] = [
978968 children: [
979969 Child (
980970 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 "
984973 ) ,
985974 Child (
986975 name: " Modifiers " ,
@@ -1145,10 +1134,9 @@ public let DECL_NODES: [Node] = [
11451134 children: [
11461135 Child (
11471136 name: " Attributes " ,
1148- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1137+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
11491138 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`. "
11521140 ) ,
11531141 Child (
11541142 name: " Modifiers " ,
@@ -1260,10 +1248,9 @@ public let DECL_NODES: [Node] = [
12601248 children: [
12611249 Child (
12621250 name: " Attributes " ,
1263- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1251+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
12641252 nameForDiagnostics: " attributes " ,
1265- documentation: " Attributes that are attached to the initializer. " ,
1266- isOptional: true
1253+ documentation: " Attributes that are attached to the initializer. "
12671254 ) ,
12681255 Child (
12691256 name: " Modifiers " ,
@@ -1328,9 +1315,8 @@ public let DECL_NODES: [Node] = [
13281315 children: [
13291316 Child (
13301317 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 "
13341320 ) ,
13351321 Child (
13361322 name: " Modifiers " ,
@@ -1387,9 +1373,8 @@ public let DECL_NODES: [Node] = [
13871373 children: [
13881374 Child (
13891375 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 "
13931378 ) ,
13941379 Child (
13951380 name: " Modifiers " ,
@@ -1827,10 +1812,9 @@ public let DECL_NODES: [Node] = [
18271812 children: [
18281813 Child (
18291814 name: " Attributes " ,
1830- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1815+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
18311816 nameForDiagnostics: " attributes " ,
1832- documentation: " The attributes applied to the 'precedencegroup' declaration. " ,
1833- isOptional: true
1817+ documentation: " The attributes applied to the 'precedencegroup' declaration. "
18341818 ) ,
18351819 Child (
18361820 name: " Modifiers " ,
@@ -1943,10 +1927,9 @@ public let DECL_NODES: [Node] = [
19431927 children: [
19441928 Child (
19451929 name: " Attributes " ,
1946- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
1930+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
19471931 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. "
19501933 ) ,
19511934 Child (
19521935 name: " Modifiers " ,
@@ -2114,10 +2097,9 @@ public let DECL_NODES: [Node] = [
21142097 children: [
21152098 Child (
21162099 name: " Attributes " ,
2117- kind: . collection( kind: . attributeList, collectionElementName: " Attribute " ) ,
2100+ kind: . collection( kind: . attributeList, collectionElementName: " Attribute " , defaultsToEmpty : true ) ,
21182101 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. "
21212103 ) ,
21222104 Child (
21232105 name: " Modifiers " ,
@@ -2178,9 +2160,8 @@ public let DECL_NODES: [Node] = [
21782160 children: [
21792161 Child (
21802162 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 "
21842165 ) ,
21852166 Child (
21862167 name: " Modifiers " ,
@@ -2277,9 +2258,8 @@ public let DECL_NODES: [Node] = [
22772258 children: [
22782259 Child (
22792260 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 "
22832263 ) ,
22842264 Child (
22852265 name: " Modifiers " ,
@@ -2333,9 +2313,8 @@ public let DECL_NODES: [Node] = [
23332313 children: [
23342314 Child (
23352315 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 "
23392318 ) ,
23402319 Child (
23412320 name: " Modifiers " ,
0 commit comments