@@ -68,7 +68,7 @@ public let DECL_NODES: [Node] = [
6868 nameForDiagnostics: " accessor " ,
6969 kind: " Decl " ,
7070 traits: [
71- " Attributed "
71+ " WithAttributes "
7272 ] ,
7373 parserFunction: " parseAccessorDecl " ,
7474 children: [
@@ -154,7 +154,8 @@ public let DECL_NODES: [Node] = [
154154 traits: [
155155 " DeclGroup " ,
156156 " IdentifiedDecl " ,
157- " Attributed " ,
157+ " WithAttributes " ,
158+ " WithModifiers " ,
158159 ] ,
159160 children: [
160161 Child (
@@ -213,7 +214,8 @@ public let DECL_NODES: [Node] = [
213214 kind: " Decl " ,
214215 traits: [
215216 " IdentifiedDecl " ,
216- " Attributed " ,
217+ " WithAttributes " ,
218+ " WithModifiers " ,
217219 ] ,
218220 children: [
219221 Child (
@@ -270,7 +272,8 @@ public let DECL_NODES: [Node] = [
270272 traits: [
271273 " DeclGroup " ,
272274 " IdentifiedDecl " ,
273- " Attributed " ,
275+ " WithAttributes " ,
276+ " WithModifiers " ,
274277 ] ,
275278 children: [
276279 Child (
@@ -401,7 +404,8 @@ public let DECL_NODES: [Node] = [
401404 nameForDiagnostics: " deinitializer " ,
402405 kind: " Decl " ,
403406 traits: [
404- " Attributed "
407+ " WithAttributes " ,
408+ " WithModifiers " ,
405409 ] ,
406410 children: [
407411 Child (
@@ -505,7 +509,8 @@ public let DECL_NODES: [Node] = [
505509 nameForDiagnostics: " parameter " ,
506510 kind: " Syntax " ,
507511 traits: [
508- " WithTrailingComma "
512+ " WithTrailingComma " ,
513+ " WithModifiers " ,
509514 ] ,
510515 parserFunction: " parseEnumCaseParameter " ,
511516 children: [
@@ -559,7 +564,8 @@ public let DECL_NODES: [Node] = [
559564 description: " A `case` declaration of a Swift `enum`. It can have 1 or more `EnumCaseElement`s inside, each declaring a different case of the enum. " ,
560565 kind: " Decl " ,
561566 traits: [
562- " Attributed "
567+ " WithAttributes " ,
568+ " WithModifiers " ,
563569 ] ,
564570 children: [
565571 Child (
@@ -642,7 +648,8 @@ public let DECL_NODES: [Node] = [
642648 traits: [
643649 " DeclGroup " ,
644650 " IdentifiedDecl " ,
645- " Attributed " ,
651+ " WithAttributes " ,
652+ " WithModifiers " ,
646653 ] ,
647654 children: [
648655 Child (
@@ -710,7 +717,8 @@ public let DECL_NODES: [Node] = [
710717 kind: " Decl " ,
711718 traits: [
712719 " DeclGroup " ,
713- " Attributed " ,
720+ " WithAttributes " ,
721+ " WithModifiers " ,
714722 ] ,
715723 children: [
716724 Child (
@@ -758,7 +766,8 @@ public let DECL_NODES: [Node] = [
758766 kind: " Decl " ,
759767 traits: [
760768 " IdentifiedDecl " ,
761- " Attributed " ,
769+ " WithAttributes " ,
770+ " WithModifiers " ,
762771 ] ,
763772 children: [
764773 Child (
@@ -822,7 +831,8 @@ public let DECL_NODES: [Node] = [
822831 kind: " Syntax " ,
823832 traits: [
824833 " WithTrailingComma " ,
825- " Attributed " ,
834+ " WithAttributes " ,
835+ " WithModifiers " ,
826836 ] ,
827837 parserFunction: " parseFunctionParameter " ,
828838 children: [
@@ -983,7 +993,8 @@ public let DECL_NODES: [Node] = [
983993 nameForDiagnostics: " import " ,
984994 kind: " Decl " ,
985995 traits: [
986- " Attributed "
996+ " WithAttributes " ,
997+ " WithModifiers " ,
987998 ] ,
988999 children: [
9891000 Child (
@@ -1073,7 +1084,8 @@ public let DECL_NODES: [Node] = [
10731084 """ ,
10741085 kind: " Decl " ,
10751086 traits: [
1076- " Attributed "
1087+ " WithAttributes " ,
1088+ " WithModifiers " ,
10771089 ] ,
10781090 children: [
10791091 Child (
@@ -1136,7 +1148,8 @@ public let DECL_NODES: [Node] = [
11361148 kind: " Decl " ,
11371149 traits: [
11381150 " IdentifiedDecl " ,
1139- " Attributed " ,
1151+ " WithAttributes " ,
1152+ " WithModifiers " ,
11401153 ] ,
11411154 children: [
11421155 Child (
@@ -1191,9 +1204,23 @@ public let DECL_NODES: [Node] = [
11911204 nameForDiagnostics: " macro expansion " ,
11921205 kind: " Decl " ,
11931206 traits: [
1194- " FreestandingMacroExpansion "
1207+ " FreestandingMacroExpansion " ,
1208+ " WithAttributes " ,
1209+ " WithModifiers " ,
11951210 ] ,
11961211 children: [
1212+ Child (
1213+ name: " Attributes " ,
1214+ kind: . collection( kind: " AttributeList " , collectionElementName: " Attribute " ) ,
1215+ nameForDiagnostics: " attributes " ,
1216+ isOptional: true
1217+ ) ,
1218+ Child (
1219+ name: " Modifiers " ,
1220+ kind: . collection( kind: " ModifierList " , collectionElementName: " Modifier " ) ,
1221+ nameForDiagnostics: " modifiers " ,
1222+ isOptional: true
1223+ ) ,
11971224 Child (
11981225 name: " PoundToken " ,
11991226 kind: . token( choices: [ . token( tokenKind: " PoundToken " ) ] ) ,
@@ -1331,7 +1358,8 @@ public let DECL_NODES: [Node] = [
13311358 kind: " Decl " ,
13321359 traits: [
13331360 " IdentifiedDecl " ,
1334- " Attributed " ,
1361+ " WithAttributes " ,
1362+ " WithModifiers " ,
13351363 ] ,
13361364 children: [
13371365 Child (
@@ -1607,7 +1635,8 @@ public let DECL_NODES: [Node] = [
16071635 kind: " Decl " ,
16081636 traits: [
16091637 " IdentifiedDecl " ,
1610- " Attributed " ,
1638+ " WithAttributes " ,
1639+ " WithModifiers " ,
16111640 ] ,
16121641 children: [
16131642 Child (
@@ -1709,7 +1738,8 @@ public let DECL_NODES: [Node] = [
17091738 traits: [
17101739 " DeclGroup " ,
17111740 " IdentifiedDecl " ,
1712- " Attributed " ,
1741+ " WithAttributes " ,
1742+ " WithModifiers " ,
17131743 ] ,
17141744 children: [
17151745 Child (
@@ -1811,7 +1841,8 @@ public let DECL_NODES: [Node] = [
18111841 traits: [
18121842 " DeclGroup " ,
18131843 " IdentifiedDecl " ,
1814- " Attributed " ,
1844+ " WithAttributes " ,
1845+ " WithModifiers " ,
18151846 ] ,
18161847 children: [
18171848 Child (
@@ -1864,7 +1895,8 @@ public let DECL_NODES: [Node] = [
18641895 nameForDiagnostics: " subscript " ,
18651896 kind: " Decl " ,
18661897 traits: [
1867- " Attributed "
1898+ " WithAttributes " ,
1899+ " WithModifiers " ,
18681900 ] ,
18691901 children: [
18701902 Child (
@@ -1965,7 +1997,7 @@ public let DECL_NODES: [Node] = [
19651997 kind: " Decl " ,
19661998 traits: [
19671999 " IdentifiedDecl " ,
1968- " Attributed " ,
2000+ " WithAttributes " ,
19692001 ] ,
19702002 children: [
19712003 Child (
@@ -2012,7 +2044,8 @@ public let DECL_NODES: [Node] = [
20122044 nameForDiagnostics: " variable " ,
20132045 kind: " Decl " ,
20142046 traits: [
2015- " Attributed "
2047+ " WithAttributes " ,
2048+ " WithModifiers " ,
20162049 ] ,
20172050 children: [
20182051 Child (
0 commit comments