@@ -179,7 +179,7 @@ public let ATTRIBUTE_NODES: [Node] = [
179
179
Child (
180
180
name: " AvailabilityLabel " ,
181
181
deprecatedName: " Label " ,
182
- kind: . token( choices: [ . keyword( text : " availability " ) ] ) ,
182
+ kind: . token( choices: [ . keyword( . availability) ] ) ,
183
183
nameForDiagnostics: " label " ,
184
184
documentation: " The label of the argument "
185
185
) ,
@@ -241,7 +241,7 @@ public let ATTRIBUTE_NODES: [Node] = [
241
241
children: [
242
242
Child (
243
243
name: " BeforeLabel " ,
244
- kind: . token( choices: [ . keyword( text : " before " ) ] ) ,
244
+ kind: . token( choices: [ . keyword( . before) ] ) ,
245
245
documentation: " The \" before \" label. "
246
246
) ,
247
247
Child (
@@ -277,7 +277,7 @@ public let ATTRIBUTE_NODES: [Node] = [
277
277
) ,
278
278
Child (
279
279
name: " CTypeLabel " ,
280
- kind: . token( choices: [ . keyword( text : " cType " ) ] ) ,
280
+ kind: . token( choices: [ . keyword( . cType) ] ) ,
281
281
isOptional: true
282
282
) ,
283
283
Child (
@@ -302,7 +302,7 @@ public let ATTRIBUTE_NODES: [Node] = [
302
302
children: [
303
303
Child (
304
304
name: " WitnessMethodLabel " ,
305
- kind: . token( choices: [ . keyword( text : " witness_method " ) ] )
305
+ kind: . token( choices: [ . keyword( . witness_method) ] )
306
306
) ,
307
307
Child (
308
308
name: " Colon " ,
@@ -330,7 +330,7 @@ public let ATTRIBUTE_NODES: [Node] = [
330
330
children: [
331
331
Child (
332
332
name: " OfLabel " ,
333
- kind: . token( choices: [ . keyword( text : " of " ) ] ) ,
333
+ kind: . token( choices: [ . keyword( . of ) ] ) ,
334
334
documentation: " The \" of \" label. "
335
335
) ,
336
336
Child (
@@ -352,7 +352,7 @@ public let ATTRIBUTE_NODES: [Node] = [
352
352
Child (
353
353
name: " AccessorSpecifier " ,
354
354
deprecatedName: " AccessorKind " ,
355
- kind: . token( choices: [ . keyword( text : " get " ) , . keyword( text : " set " ) ] ) ,
355
+ kind: . token( choices: [ . keyword( . get) , . keyword( . set) ] ) ,
356
356
documentation: " The accessor name. " ,
357
357
isOptional: true
358
358
) ,
@@ -392,7 +392,7 @@ public let ATTRIBUTE_NODES: [Node] = [
392
392
Child (
393
393
name: " Argument " ,
394
394
deprecatedName: " Parameter " ,
395
- kind: . token( choices: [ . token( . identifier) , . token( . integerLiteral) , . keyword( text : " self " ) ] )
395
+ kind: . token( choices: [ . token( . identifier) , . token( . integerLiteral) , . keyword( . self ) ] )
396
396
) ,
397
397
Child (
398
398
name: " TrailingComma " ,
@@ -412,7 +412,7 @@ public let ATTRIBUTE_NODES: [Node] = [
412
412
children: [
413
413
Child (
414
414
name: " WrtLabel " ,
415
- kind: . token( choices: [ . keyword( text : " wrt " ) ] ) ,
415
+ kind: . token( choices: [ . keyword( . wrt) ] ) ,
416
416
documentation: " The \" wrt \" label. "
417
417
) ,
418
418
Child (
@@ -478,7 +478,7 @@ public let ATTRIBUTE_NODES: [Node] = [
478
478
Child (
479
479
name: " KindSpecifier " ,
480
480
deprecatedName: " DiffKind " ,
481
- kind: . token( choices: [ . keyword( text : " _forward " ) , . keyword( text : " reverse " ) , . keyword( text : " _linear " ) ] ) ,
481
+ kind: . token( choices: [ . keyword( . _forward) , . keyword( . reverse) , . keyword( . _linear) ] ) ,
482
482
isOptional: true
483
483
) ,
484
484
Child (
@@ -521,7 +521,7 @@ public let ATTRIBUTE_NODES: [Node] = [
521
521
children: [
522
522
Child (
523
523
name: " Label " ,
524
- kind: . token( choices: [ . keyword( text : " visibility " ) , . keyword( text : " metadata " ) ] ) ,
524
+ kind: . token( choices: [ . keyword( . visibility) , . keyword( . metadata) ] ) ,
525
525
nameForDiagnostics: " label "
526
526
) ,
527
527
Child (
@@ -535,11 +535,11 @@ public let ATTRIBUTE_NODES: [Node] = [
535
535
name: " Token " ,
536
536
kind: . token( choices: [
537
537
. token( . identifier) ,
538
- . keyword( text : " private " ) ,
539
- . keyword( text : " fileprivate " ) ,
540
- . keyword( text : " internal " ) ,
541
- . keyword( text : " public " ) ,
542
- . keyword( text : " open " ) ,
538
+ . keyword( . private) ,
539
+ . keyword( . fileprivate) ,
540
+ . keyword( . internal) ,
541
+ . keyword( . public) ,
542
+ . keyword( . open) ,
543
543
] )
544
544
) , // Keywords can be: public, internal, private, fileprivate, open
545
545
Child (
@@ -573,7 +573,7 @@ public let ATTRIBUTE_NODES: [Node] = [
573
573
children: [
574
574
Child (
575
575
name: " ForLabel " ,
576
- kind: . token( choices: [ . keyword( text : " for " ) ] , requiresTrailingSpace: false )
576
+ kind: . token( choices: [ . keyword( . for) ] , requiresTrailingSpace: false )
577
577
) ,
578
578
Child (
579
579
name: " Colon " ,
@@ -662,13 +662,13 @@ public let ATTRIBUTE_NODES: [Node] = [
662
662
Child (
663
663
name: " Label " ,
664
664
kind: . token( choices: [
665
- . keyword( text : " target " ) ,
666
- . keyword( text : " availability " ) ,
667
- . keyword( text : " exported " ) ,
668
- . keyword( text : " kind " ) ,
669
- . keyword( text : " spi " ) ,
670
- . keyword( text : " spiModule " ) ,
671
- . keyword( text : " available " ) ,
665
+ . keyword( . target) ,
666
+ . keyword( . availability) ,
667
+ . keyword( . exported) ,
668
+ . keyword( . kind) ,
669
+ . keyword( . spi) ,
670
+ . keyword( . spiModule) ,
671
+ . keyword( . available) ,
672
672
] ) ,
673
673
nameForDiagnostics: " label " ,
674
674
documentation: " The label of the argument "
@@ -755,7 +755,7 @@ public let ATTRIBUTE_NODES: [Node] = [
755
755
children: [
756
756
Child (
757
757
name: " ModuleLabel " ,
758
- kind: . token( choices: [ . keyword( text : " module " ) ] )
758
+ kind: . token( choices: [ . keyword( . module) ] )
759
759
) ,
760
760
Child (
761
761
name: " Colon " ,
@@ -840,7 +840,7 @@ public let ATTRIBUTE_NODES: [Node] = [
840
840
Child (
841
841
name: " TargetLabel " ,
842
842
deprecatedName: " Label " ,
843
- kind: . token( choices: [ . keyword( text : " target " ) ] ) ,
843
+ kind: . token( choices: [ . keyword( . target) ] ) ,
844
844
nameForDiagnostics: " label " ,
845
845
documentation: " The label of the argument "
846
846
) ,
@@ -873,7 +873,7 @@ public let ATTRIBUTE_NODES: [Node] = [
873
873
children: [
874
874
Child (
875
875
name: " MessageLabel " ,
876
- kind: . token( choices: [ . keyword( text : " message " ) ] )
876
+ kind: . token( choices: [ . keyword( . message) ] )
877
877
) ,
878
878
Child (
879
879
name: " Colon " ,
@@ -894,7 +894,7 @@ public let ATTRIBUTE_NODES: [Node] = [
894
894
children: [
895
895
Child (
896
896
name: " SourceFileLabel " ,
897
- kind: . token( choices: [ . keyword( text : " sourceFile " ) ] )
897
+ kind: . token( choices: [ . keyword( . sourceFile) ] )
898
898
) ,
899
899
Child (
900
900
name: " Colon " ,
0 commit comments