@@ -53,7 +53,8 @@ public let DECL_NODES: [Node] = [
53
53
children: [
54
54
Child (
55
55
name: " leftBrace " ,
56
- kind: . token( choices: [ . token( . leftBrace) ] )
56
+ kind: . token( choices: [ . token( . leftBrace) ] ) ,
57
+ documentation: " The brace introducing the accessor block. "
57
58
) ,
58
59
Child (
59
60
name: " accessors " ,
@@ -70,7 +71,8 @@ public let DECL_NODES: [Node] = [
70
71
) ,
71
72
Child (
72
73
name: " rightBrace " ,
73
- kind: . token( choices: [ . token( . rightBrace) ] )
74
+ kind: . token( choices: [ . token( . rightBrace) ] ) ,
75
+ documentation: " The brace closing the accessor block. "
74
76
) ,
75
77
]
76
78
) ,
@@ -183,16 +185,19 @@ public let DECL_NODES: [Node] = [
183
185
Child (
184
186
name: " modifiers " ,
185
187
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
186
- nameForDiagnostics: " modifiers "
188
+ nameForDiagnostics: " modifiers " ,
189
+ documentation: " Modifiers like `public` that are attached to the actor declaration. "
187
190
) ,
188
191
Child (
189
192
name: " actorKeyword " ,
190
- kind: . token( choices: [ . keyword( . actor ) ] )
193
+ kind: . token( choices: [ . keyword( . actor ) ] ) ,
194
+ documentation: " The `actor` keyword. "
191
195
) ,
192
196
Child (
193
197
name: " name " ,
194
198
deprecatedName: " identifier " ,
195
- kind: . token( choices: [ . token( . identifier) ] )
199
+ kind: . token( choices: [ . token( . identifier) ] ) ,
200
+ documentation: " The name of the actor. If the name matches a reserved keyword use backticks to escape it. "
196
201
) ,
197
202
Child (
198
203
name: " genericParameterClause " ,
@@ -268,7 +273,7 @@ public let DECL_NODES: [Node] = [
268
273
name: " modifiers " ,
269
274
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
270
275
nameForDiagnostics: " modifiers " ,
271
- documentation: " Modifiers attached to the associated type declaration. "
276
+ documentation: " Modifiers like `public` that are attached to the associated type declaration. "
272
277
) ,
273
278
Child (
274
279
name: " associatedtypeKeyword " ,
@@ -351,7 +356,7 @@ public let DECL_NODES: [Node] = [
351
356
name: " modifiers " ,
352
357
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
353
358
nameForDiagnostics: " modifiers " ,
354
- documentation: " Modifiers attached to the class declaration, such as `public` . "
359
+ documentation: " Modifiers like `public` that are attached to the class declaration. "
355
360
) ,
356
361
Child (
357
362
name: " classKeyword " ,
@@ -499,12 +504,12 @@ public let DECL_NODES: [Node] = [
499
504
name: " modifiers " ,
500
505
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
501
506
nameForDiagnostics: " modifiers " ,
502
- documentation: " Modifiers that are attached to the deinitializer. "
507
+ documentation: " Modifiers like `public` that are attached to the deinitializer. "
503
508
) ,
504
509
Child (
505
510
name: " deinitKeyword " ,
506
511
kind: . token( choices: [ . keyword( . deinit) ] ) ,
507
- documentation: " The deinit keyword. "
512
+ documentation: " The ` deinit` keyword. "
508
513
) ,
509
514
Child (
510
515
name: " effectSpecifiers " ,
@@ -702,7 +707,7 @@ public let DECL_NODES: [Node] = [
702
707
kind: . enumCaseElementList,
703
708
base: . syntaxCollection,
704
709
nameForDiagnostics: nil ,
705
- documentation: " A collection of 0 or more `EnumCaseElement `s. " ,
710
+ documentation: " A collection of 0 or more ``EnumCaseElementSyntax` `s. " ,
706
711
elementChoices: [ . enumCaseElement]
707
712
) ,
708
713
@@ -829,7 +834,8 @@ public let DECL_NODES: [Node] = [
829
834
Child (
830
835
name: " modifiers " ,
831
836
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
832
- nameForDiagnostics: " modifiers "
837
+ nameForDiagnostics: " modifiers " ,
838
+ documentation: " Modifiers like `public` that are attached to the extension declaration. "
833
839
) ,
834
840
Child (
835
841
name: " extensionKeyword " ,
@@ -854,7 +860,9 @@ public let DECL_NODES: [Node] = [
854
860
) ,
855
861
Child (
856
862
name: " memberBlock " ,
857
- kind: . node( kind: . memberBlock)
863
+ kind: . node( kind: . memberBlock) ,
864
+ documentation:
865
+ " The members of the extension declaration. As this is an extension, the contents of this member block isn't guaranteed to be a complete list of members for this type. "
858
866
) ,
859
867
]
860
868
) ,
@@ -878,7 +886,8 @@ public let DECL_NODES: [Node] = [
878
886
Child (
879
887
name: " modifiers " ,
880
888
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
881
- nameForDiagnostics: " modifiers "
889
+ nameForDiagnostics: " modifiers " ,
890
+ documentation: " Modifiers like `public` that are attached to the function declaration. "
882
891
) ,
883
892
Child (
884
893
name: " funcKeyword " ,
@@ -892,7 +901,8 @@ public let DECL_NODES: [Node] = [
892
901
. token( . binaryOperator) ,
893
902
. token( . prefixOperator) ,
894
903
. token( . postfixOperator) ,
895
- ] )
904
+ ] ) ,
905
+ documentation: " The name of the function. If the name matches a reserved keyword use backticks to escape it. "
896
906
) ,
897
907
Child (
898
908
name: " genericParameterClause " ,
@@ -1103,7 +1113,7 @@ public let DECL_NODES: [Node] = [
1103
1113
name: " modifiers " ,
1104
1114
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
1105
1115
nameForDiagnostics: " modifiers " ,
1106
- documentation: " Modifiers attached to the import declaration. Currently, no modifiers are supported by Swift. "
1116
+ documentation: " Modifiers that are attached to the import declaration. Currently, no modifiers are supported by Swift. "
1107
1117
) ,
1108
1118
Child (
1109
1119
name: " importKeyword " ,
@@ -1216,7 +1226,7 @@ public let DECL_NODES: [Node] = [
1216
1226
name: " modifiers " ,
1217
1227
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
1218
1228
nameForDiagnostics: " modifiers " ,
1219
- documentation: " Modifiers attached to the initializer "
1229
+ documentation: " Modifiers that are attached to the initializer declaration. "
1220
1230
) ,
1221
1231
Child (
1222
1232
name: " initKeyword " ,
@@ -1249,7 +1259,7 @@ public let DECL_NODES: [Node] = [
1249
1259
name: " genericWhereClause " ,
1250
1260
kind: . node( kind: . genericWhereClause) ,
1251
1261
nameForDiagnostics: " generic where clause " ,
1252
- documentation: " If the initializer had generic parameters, a where clause that can restrict those " ,
1262
+ documentation: " If the initializer had generic parameters, a where clause that can restrict those. " ,
1253
1263
isOptional: true
1254
1264
) ,
1255
1265
Child (
@@ -2019,7 +2029,7 @@ public let DECL_NODES: [Node] = [
2019
2029
name: " modifiers " ,
2020
2030
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
2021
2031
nameForDiagnostics: " modifiers " ,
2022
- documentation: " Modifiers that are attached to the struct declaration. "
2032
+ documentation: " Modifiers like `public` that are attached to the struct declaration. "
2023
2033
) ,
2024
2034
Child (
2025
2035
name: " structKeyword " ,
@@ -2227,7 +2237,8 @@ public let DECL_NODES: [Node] = [
2227
2237
Child (
2228
2238
name: " modifiers " ,
2229
2239
kind: . collection( kind: . declModifierList, collectionElementName: " Modifier " , defaultsToEmpty: true ) ,
2230
- nameForDiagnostics: " modifiers "
2240
+ nameForDiagnostics: " modifiers " ,
2241
+ documentation: " Modifiers modifiers applied to the variable declaration. "
2231
2242
) ,
2232
2243
Child (
2233
2244
name: " bindingSpecifier " ,
0 commit comments