File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
CodeGeneration/Sources/SyntaxSupport Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,10 @@ public let DECL_NODES: [Node] = [
82
82
base: . decl,
83
83
nameForDiagnostics: " accessor " ,
84
84
parserFunction: " parseAccessorDecl " ,
85
- traits: [ " WithAttributes " ] ,
85
+ traits: [
86
+ " WithOptionalCodeBlock " ,
87
+ " WithAttributes " ,
88
+ ] ,
86
89
children: [
87
90
Child (
88
91
name: " attributes " ,
@@ -493,6 +496,7 @@ public let DECL_NODES: [Node] = [
493
496
traits: [
494
497
" WithAttributes " ,
495
498
" WithModifiers " ,
499
+ " WithOptionalCodeBlock " ,
496
500
] ,
497
501
children: [
498
502
Child (
@@ -879,6 +883,7 @@ public let DECL_NODES: [Node] = [
879
883
" WithAttributes " ,
880
884
" WithGenericParameters " ,
881
885
" WithModifiers " ,
886
+ " WithOptionalCodeBlock " ,
882
887
] ,
883
888
children: [
884
889
Child (
@@ -1217,6 +1222,7 @@ public let DECL_NODES: [Node] = [
1217
1222
" WithAttributes " ,
1218
1223
" WithGenericParameters " ,
1219
1224
" WithModifiers " ,
1225
+ " WithOptionalCodeBlock " ,
1220
1226
] ,
1221
1227
children: [
1222
1228
Child (
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ public let TRAITS: [Trait] = [
151
151
Child ( name: " modifiers " , kind: . node( kind: . declModifierList) )
152
152
]
153
153
) ,
154
+ Trait (
155
+ traitName: " WithOptionalCodeBlock " ,
156
+ children: [
157
+ Child ( name: " body " , kind: . node( kind: . codeBlock) , isOptional: true )
158
+ ]
159
+ ) ,
154
160
Trait (
155
161
traitName: " WithStatements " ,
156
162
children: [
You can’t perform that action at this time.
0 commit comments