-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathswift_node_types.yml
More file actions
1280 lines (1280 loc) · 32.6 KB
/
Copy pathswift_node_types.yml
File metadata and controls
1280 lines (1280 loc) · 32.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
supertypes:
decl:
- accessorDecl
- actorDecl
- associatedTypeDecl
- classDecl
- deinitializerDecl
- editorPlaceholderDecl
- enumCaseDecl
- enumDecl
- extensionDecl
- functionDecl
- ifConfigDecl
- importDecl
- initializerDecl
- macroDecl
- macroExpansionDecl
- missingDecl
- operatorDecl
- poundSourceLocation
- precedenceGroupDecl
- protocolDecl
- structDecl
- subscriptDecl
- typeAliasDecl
- unexpectedCodeDecl
- usingDecl
- variableDecl
expr:
- _canImportExpr
- _canImportVersionInfo
- arrayExpr
- arrowExpr
- asExpr
- assignmentExpr
- awaitExpr
- binaryOperatorExpr
- booleanLiteralExpr
- borrowExpr
- closureExpr
- consumeExpr
- copyExpr
- declReferenceExpr
- dictionaryExpr
- discardAssignmentExpr
- doExpr
- editorPlaceholderExpr
- floatLiteralExpr
- forceUnwrapExpr
- functionCallExpr
- genericSpecializationExpr
- ifExpr
- inOutExpr
- infixOperatorExpr
- integerLiteralExpr
- isExpr
- keyPathExpr
- macroExpansionExpr
- memberAccessExpr
- missingExpr
- nilLiteralExpr
- optionalChainingExpr
- packElementExpr
- packExpansionExpr
- patternExpr
- postfixIfConfigExpr
- postfixOperatorExpr
- prefixOperatorExpr
- regexLiteralExpr
- sequenceExpr
- simpleStringLiteralExpr
- stringLiteralExpr
- subscriptCallExpr
- superExpr
- switchExpr
- ternaryExpr
- tryExpr
- tupleExpr
- typeExpr
- unresolvedAsExpr
- unresolvedIsExpr
- unresolvedTernaryExpr
- unsafeExpr
pattern:
- expressionPattern
- identifierPattern
- isTypePattern
- missingPattern
- tuplePattern
- valueBindingPattern
- wildcardPattern
stmt:
- breakStmt
- continueStmt
- deferStmt
- discardStmt
- doStmt
- expressionStmt
- fallThroughStmt
- forStmt
- guardStmt
- labeledStmt
- missingStmt
- repeatStmt
- returnStmt
- thenStmt
- throwStmt
- whileStmt
- yieldStmt
syntax:
- abiAttributeArguments
- accessorBlock
- accessorBlockFile
- accessorEffectSpecifiers
- accessorParameters
- arrayElement
- attribute
- attributeClauseFile
- availabilityArgument
- availabilityCondition
- availabilityLabeledArgument
- availabilityMacroDefinitionFile
- backDeployedAttributeArguments
- catchClause
- catchItem
- closureCapture
- closureCaptureClause
- closureCaptureSpecifier
- closureParameter
- closureParameterClause
- closureShorthandParameter
- closureSignature
- codeBlock
- codeBlockFile
- codeBlockItem
- compositionTypeElement
- conditionElement
- conformanceRequirement
- declModifier
- declModifierDetail
- declNameArgument
- declNameArguments
- deinitializerEffectSpecifiers
- derivativeAttributeArguments
- designatedType
- dictionaryElement
- differentiabilityArgument
- differentiabilityArguments
- differentiabilityWithRespectToArgument
- differentiableAttributeArguments
- documentationAttributeArgument
- dynamicReplacementAttributeArguments
- enumCaseElement
- enumCaseParameter
- enumCaseParameterClause
- expressionSegment
- functionEffectSpecifiers
- functionParameter
- functionParameterClause
- functionSignature
- genericArgument
- genericArgumentClause
- genericParameter
- genericParameterClause
- genericRequirement
- genericWhereClause
- ifConfigClause
- implementsAttributeArguments
- importPathComponent
- inheritanceClause
- inheritedType
- initializerClause
- keyPathComponent
- keyPathMethodComponent
- keyPathOptionalComponent
- keyPathPropertyComponent
- keyPathSubscriptComponent
- labeledExpr
- labeledSpecializeArgument
- layoutRequirement
- lifetimeSpecifierArgument
- lifetimeTypeSpecifier
- matchingPatternCondition
- memberBlock
- memberBlockItem
- memberBlockItemListFile
- missing
- moduleSelector
- multipleTrailingClosureElement
- nonisolatedSpecifierArgument
- nonisolatedTypeSpecifier
- objCSelectorPiece
- operatorPrecedenceAndTypes
- optionalBindingCondition
- originallyDefinedInAttributeArguments
- patternBinding
- platformVersion
- platformVersionItem
- poundSourceLocationArguments
- precedenceGroupAssignment
- precedenceGroupAssociativity
- precedenceGroupName
- precedenceGroupRelation
- primaryAssociatedType
- primaryAssociatedTypeClause
- returnClause
- sameTypeRequirement
- simpleTypeSpecifier
- sourceFile
- specializeAvailabilityArgument
- specializeTargetFunctionArgument
- specializedAttributeArgument
- stringSegment
- switchCase
- switchCaseItem
- switchCaseLabel
- switchDefaultLabel
- throwsClause
- tuplePatternElement
- tupleTypeElement
- typeAnnotation
- typeEffectSpecifiers
- typeInitializerClause
- versionComponent
- versionTuple
- whereClause
- yieldedExpression
- yieldedExpressionsClause
type:
- arrayType
- attributedType
- classRestrictionType
- compositionType
- dictionaryType
- functionType
- identifierType
- implicitlyUnwrappedOptionalType
- inlineArrayType
- memberType
- metatypeType
- missingType
- namedOpaqueReturnType
- optionalType
- packElementType
- packExpansionType
- someOrAnyType
- suppressedType
- tupleType
named:
_canImportExpr:
canImportKeyword: _token
leftParen: _token
importPath: _token
versionInfo?: _canImportVersionInfo
rightParen: _token
_canImportVersionInfo:
comma: _token
label: _token
colon: _token
version: versionTuple
abiAttributeArguments:
provider: [associatedTypeDecl, deinitializerDecl, enumCaseDecl, functionDecl, initializerDecl, missingDecl, subscriptDecl, typeAliasDecl, variableDecl]
accessorBlock:
leftBrace: _token
accessors: [accessorDecl, codeBlockItemList]
rightBrace: _token
accessorBlockFile:
leftBrace?: _token
accessors*: accessorDecl
rightBrace?: _token
endOfFileToken: _token
accessorDecl:
attributes*: [attribute, ifConfigDecl]
modifier?: declModifier
accessorSpecifier: _token
parameters?: accessorParameters
effectSpecifiers?: accessorEffectSpecifiers
body?: codeBlock
accessorEffectSpecifiers:
asyncSpecifier?: _token
throwsClause?: throwsClause
accessorParameters:
leftParen: _token
name: _token
rightParen: _token
actorDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
actorKeyword: _token
name: _token
genericParameterClause?: genericParameterClause
inheritanceClause?: inheritanceClause
genericWhereClause?: genericWhereClause
memberBlock: memberBlock
arrayElement:
expression: expr
trailingComma?: _token
arrayExpr:
leftSquare: _token
elements*: arrayElement
rightSquare: _token
arrayType:
leftSquare: _token
element: type
rightSquare: _token
arrowExpr:
effectSpecifiers?: typeEffectSpecifiers
arrow: _token
asExpr:
expression: expr
asKeyword: _token
questionOrExclamationMark?: _token
type: type
assignmentExpr:
equal: _token
associatedTypeDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
associatedtypeKeyword: _token
name: _token
inheritanceClause?: inheritanceClause
initializer?: typeInitializerClause
genericWhereClause?: genericWhereClause
attribute:
atSign: _token
attributeName: type
leftParen?: _token
arguments?: [labeledExprList, availabilityArgumentList, specializeAttributeArgumentList, specializedAttributeArgument, objCSelectorPieceList, implementsAttributeArguments, differentiableAttributeArguments, derivativeAttributeArguments, backDeployedAttributeArguments, originallyDefinedInAttributeArguments, dynamicReplacementAttributeArguments, effectsAttributeArgumentList, documentationAttributeArgumentList, abiAttributeArguments]
rightParen?: _token
attributeClauseFile:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
endOfFileToken: _token
attributedType:
specifiers*: [simpleTypeSpecifier, lifetimeTypeSpecifier, nonisolatedTypeSpecifier]
attributes*: [attribute, ifConfigDecl]
lateSpecifiers*: [simpleTypeSpecifier, lifetimeTypeSpecifier, nonisolatedTypeSpecifier]
baseType: type
availabilityArgument:
argument: [_token, platformVersion, availabilityLabeledArgument]
trailingComma?: _token
availabilityCondition:
availabilityKeyword: _token
leftParen: _token
availabilityArguments*: availabilityArgument
rightParen: _token
availabilityLabeledArgument:
label: _token
colon: _token
value: [simpleStringLiteralExpr, versionTuple]
availabilityMacroDefinitionFile:
platformVersion: platformVersion
colon: _token
specs*: availabilityArgument
endOfFileToken: _token
awaitExpr:
awaitKeyword: _token
expression: expr
backDeployedAttributeArguments:
beforeLabel: _token
colon: _token
platforms*: platformVersionItem
binaryOperatorExpr:
operator: _token
booleanLiteralExpr:
literal: _token
borrowExpr:
borrowKeyword: _token
expression: expr
breakStmt:
breakKeyword: _token
label?: _token
catchClause:
catchKeyword: _token
catchItems*: catchItem
body: codeBlock
catchItem:
pattern?: pattern
whereClause?: whereClause
trailingComma?: _token
classDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
classKeyword: _token
name: _token
genericParameterClause?: genericParameterClause
inheritanceClause?: inheritanceClause
genericWhereClause?: genericWhereClause
memberBlock: memberBlock
classRestrictionType:
classKeyword: _token
closureCapture:
specifier?: closureCaptureSpecifier
name: _token
initializer?: initializerClause
trailingComma?: _token
closureCaptureClause:
leftSquare: _token
items*: closureCapture
rightSquare: _token
closureCaptureSpecifier:
specifier: _token
leftParen?: _token
detail?: _token
rightParen?: _token
closureExpr:
leftBrace: _token
signature?: closureSignature
statements*: codeBlockItem
rightBrace: _token
closureParameter:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
firstName: _token
secondName?: _token
colon?: _token
type?: type
ellipsis?: _token
trailingComma?: _token
closureParameterClause:
leftParen: _token
parameters*: closureParameter
rightParen: _token
closureShorthandParameter:
name: _token
trailingComma?: _token
closureSignature:
attributes*: [attribute, ifConfigDecl]
capture?: closureCaptureClause
parameterClause?: [closureShorthandParameterList, closureParameterClause]
effectSpecifiers?: typeEffectSpecifiers
returnClause?: returnClause
inKeyword: _token
codeBlock:
leftBrace: _token
statements*: codeBlockItem
rightBrace: _token
codeBlockFile:
body: codeBlock
endOfFileToken: _token
codeBlockItem:
item: [decl, stmt, expr]
semicolon?: _token
compositionType:
elements*: compositionTypeElement
compositionTypeElement:
type: type
ampersand?: token
conditionElement:
condition: [expr, availabilityCondition, matchingPatternCondition, optionalBindingCondition]
trailingComma?: _token
conformanceRequirement:
leftType: type
colon: _token
rightType: type
consumeExpr:
consumeKeyword: _token
expression: expr
continueStmt:
continueKeyword: _token
label?: _token
copyExpr:
copyKeyword: _token
expression: expr
declModifier:
name: _token
detail?: declModifierDetail
declModifierDetail:
leftParen: _token
detail: _token
rightParen: _token
declNameArgument:
name: token
colon: _token
declNameArguments:
leftParen: _token
arguments*: declNameArgument
rightParen: _token
declReferenceExpr:
moduleSelector?: moduleSelector
baseName: _token
argumentNames?: declNameArguments
deferStmt:
deferKeyword: _token
body: codeBlock
deinitializerDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
deinitKeyword: _token
effectSpecifiers?: deinitializerEffectSpecifiers
body?: codeBlock
deinitializerEffectSpecifiers:
asyncSpecifier?: _token
derivativeAttributeArguments:
ofLabel: _token
colon: _token
originalDeclName: expr
period?: _token
accessorSpecifier?: _token
comma?: _token
arguments?: differentiabilityWithRespectToArgument
designatedType:
leadingComma: _token
name: token
dictionaryElement:
key: expr
colon: _token
value: expr
trailingComma?: _token
dictionaryExpr:
leftSquare: _token
content: [_token, dictionaryElementList]
rightSquare: _token
dictionaryType:
leftSquare: _token
key: type
colon: _token
value: type
rightSquare: _token
differentiabilityArgument:
argument: _token
trailingComma?: _token
differentiabilityArguments:
leftParen: _token
arguments*: differentiabilityArgument
rightParen: _token
differentiabilityWithRespectToArgument:
wrtLabel: _token
colon: _token
arguments: [differentiabilityArgument, differentiabilityArguments]
differentiableAttributeArguments:
kindSpecifier?: _token
kindSpecifierComma?: _token
arguments?: differentiabilityWithRespectToArgument
argumentsComma?: _token
genericWhereClause?: genericWhereClause
discardAssignmentExpr:
wildcard: _token
discardStmt:
discardKeyword: _token
expression: expr
doExpr:
doKeyword: _token
body: codeBlock
catchClauses*: catchClause
doStmt:
doKeyword: _token
throwsClause?: throwsClause
body: codeBlock
catchClauses*: catchClause
documentationAttributeArgument:
label: _token
colon: _token
value: [_token, stringLiteralExpr]
trailingComma?: _token
dynamicReplacementAttributeArguments:
forLabel: _token
colon: _token
declName: declReferenceExpr
editorPlaceholderDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
placeholder: _token
editorPlaceholderExpr:
placeholder: _token
enumCaseDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
caseKeyword: _token
elements*: enumCaseElement
enumCaseElement:
name: _token
parameterClause?: enumCaseParameterClause
rawValue?: initializerClause
trailingComma?: _token
enumCaseParameter:
modifiers*: declModifier
firstName?: _token
secondName?: _token
colon?: _token
type: type
defaultValue?: initializerClause
trailingComma?: _token
enumCaseParameterClause:
leftParen: _token
parameters*: enumCaseParameter
rightParen: _token
enumDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
enumKeyword: _token
name: _token
genericParameterClause?: genericParameterClause
inheritanceClause?: inheritanceClause
genericWhereClause?: genericWhereClause
memberBlock: memberBlock
expressionPattern:
expression: expr
expressionSegment:
backslash: _token
pounds?: _token
leftParen: _token
expressions*: labeledExpr
rightParen: _token
expressionStmt:
expression: expr
extensionDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
extensionKeyword: _token
extendedType: type
inheritanceClause?: inheritanceClause
genericWhereClause?: genericWhereClause
memberBlock: memberBlock
fallThroughStmt:
fallthroughKeyword: _token
floatLiteralExpr:
literal: _token
forStmt:
forKeyword: _token
tryKeyword?: _token
awaitKeyword?: _token
unsafeKeyword?: _token
caseKeyword?: _token
pattern: pattern
typeAnnotation?: typeAnnotation
inKeyword: _token
sequence: expr
whereClause?: whereClause
body: codeBlock
forceUnwrapExpr:
expression: expr
exclamationMark: _token
functionCallExpr:
calledExpression: expr
leftParen?: _token
arguments*: labeledExpr
rightParen?: _token
trailingClosure?: closureExpr
additionalTrailingClosures*: multipleTrailingClosureElement
functionDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
funcKeyword: _token
name: _token
genericParameterClause?: genericParameterClause
signature: functionSignature
genericWhereClause?: genericWhereClause
body?: codeBlock
functionEffectSpecifiers:
asyncSpecifier?: _token
throwsClause?: throwsClause
functionParameter:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
firstName: _token
secondName?: _token
colon: _token
type: type
ellipsis?: _token
defaultValue?: initializerClause
trailingComma?: _token
functionParameterClause:
leftParen: _token
parameters*: functionParameter
rightParen: _token
functionSignature:
parameterClause: functionParameterClause
effectSpecifiers?: functionEffectSpecifiers
returnClause?: returnClause
functionType:
leftParen: _token
parameters*: tupleTypeElement
rightParen: _token
effectSpecifiers?: typeEffectSpecifiers
returnClause: returnClause
genericArgument:
argument: [type, expr]
trailingComma?: _token
genericArgumentClause:
leftAngle: _token
arguments*: genericArgument
rightAngle: _token
genericParameter:
attributes*: [attribute, ifConfigDecl]
specifier?: _token
name: _token
colon?: _token
inheritedType?: type
trailingComma?: _token
genericParameterClause:
leftAngle: _token
parameters*: genericParameter
genericWhereClause?: genericWhereClause
rightAngle: _token
genericRequirement:
requirement: [sameTypeRequirement, conformanceRequirement, layoutRequirement]
trailingComma?: _token
genericSpecializationExpr:
expression: expr
genericArgumentClause: genericArgumentClause
genericWhereClause:
whereKeyword: _token
requirements*: genericRequirement
guardStmt:
guardKeyword: _token
conditions*: conditionElement
elseKeyword: _token
body: codeBlock
identifierPattern:
identifier: _token
identifierType:
moduleSelector?: moduleSelector
name: _token
genericArgumentClause?: genericArgumentClause
ifConfigClause:
poundKeyword: _token
condition?: expr
elements?: [codeBlockItemList, switchCaseList, memberBlockItemList, expr, attributeList]
ifConfigDecl:
clauses*: ifConfigClause
poundEndif: _token
ifExpr:
ifKeyword: _token
conditions*: conditionElement
body: codeBlock
elseKeyword?: _token
elseBody?: [ifExpr, codeBlock]
implementsAttributeArguments:
type: type
comma: _token
declName: declReferenceExpr
implicitlyUnwrappedOptionalType:
wrappedType: type
exclamationMark: _token
importDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
importKeyword: _token
importKindSpecifier?: _token
path*: importPathComponent
importPathComponent:
name: _token
trailingPeriod?: _token
inOutExpr:
ampersand: _token
expression: expr
infixOperatorExpr:
leftOperand: expr
operator: expr
rightOperand: expr
inheritanceClause:
colon: _token
inheritedTypes*: inheritedType
inheritedType:
type: type
trailingComma?: _token
initializerClause:
equal: _token
value: expr
initializerDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
initKeyword: _token
optionalMark?: _token
genericParameterClause?: genericParameterClause
signature: functionSignature
genericWhereClause?: genericWhereClause
body?: codeBlock
inlineArrayType:
leftSquare: _token
count: genericArgument
separator: _token
element: genericArgument
rightSquare: _token
integerLiteralExpr:
literal: _token
isExpr:
expression: expr
isKeyword: _token
type: type
isTypePattern:
isKeyword: _token
type: type
keyPathComponent:
period?: _token
component: [keyPathPropertyComponent, keyPathMethodComponent, keyPathSubscriptComponent, keyPathOptionalComponent]
keyPathExpr:
backslash: _token
root?: type
components*: keyPathComponent
keyPathMethodComponent:
declName: declReferenceExpr
leftParen: _token
arguments*: labeledExpr
rightParen: _token
keyPathOptionalComponent:
questionOrExclamationMark: _token
keyPathPropertyComponent:
declName: declReferenceExpr
genericArgumentClause?: genericArgumentClause
keyPathSubscriptComponent:
leftSquare: _token
arguments*: labeledExpr
rightSquare: _token
labeledExpr:
label?: _token
colon?: _token
expression: expr
trailingComma?: _token
labeledSpecializeArgument:
label: _token
colon: _token
value: token
trailingComma?: _token
labeledStmt:
label: _token
colon: _token
statement: stmt
layoutRequirement:
type: type
colon: _token
layoutSpecifier: _token
leftParen?: _token
size?: _token
comma?: _token
alignment?: _token
rightParen?: _token
lifetimeSpecifierArgument:
parameter: _token
trailingComma?: _token
lifetimeTypeSpecifier:
dependsOnKeyword: _token
leftParen: _token
scopedKeyword?: _token
arguments*: lifetimeSpecifierArgument
rightParen: _token
macroDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
macroKeyword: _token
name: _token
genericParameterClause?: genericParameterClause
signature: functionSignature
definition?: initializerClause
genericWhereClause?: genericWhereClause
macroExpansionDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
pound: _token
moduleSelector?: moduleSelector
macroName: _token
genericArgumentClause?: genericArgumentClause
leftParen?: _token
arguments*: labeledExpr
rightParen?: _token
trailingClosure?: closureExpr
additionalTrailingClosures*: multipleTrailingClosureElement
macroExpansionExpr:
pound: _token
moduleSelector?: moduleSelector
macroName: _token
genericArgumentClause?: genericArgumentClause
leftParen?: _token
arguments*: labeledExpr
rightParen?: _token
trailingClosure?: closureExpr
additionalTrailingClosures*: multipleTrailingClosureElement
matchingPatternCondition:
caseKeyword: _token
pattern: pattern
typeAnnotation?: typeAnnotation
initializer: initializerClause
memberAccessExpr:
base?: expr
period: _token
declName: declReferenceExpr
memberBlock:
leftBrace: _token
members*: memberBlockItem
rightBrace: _token
memberBlockItem:
decl: decl
semicolon?: _token
memberBlockItemListFile:
members*: memberBlockItem
endOfFileToken: _token
memberType:
baseType: type
period: _token
moduleSelector?: moduleSelector
name: _token
genericArgumentClause?: genericArgumentClause
metatypeType:
baseType: type
period: _token
metatypeSpecifier: _token
missing:
placeholder: _token
missingDecl:
attributes*: [attribute, ifConfigDecl]
modifiers*: declModifier
placeholder: _token
missingExpr:
placeholder: _token
missingPattern:
placeholder: _token
missingStmt:
placeholder: _token
missingType:
placeholder: _token
moduleSelector:
moduleName: _token
colonColon: _token
multipleTrailingClosureElement:
label: _token
colon: _token
closure: closureExpr
namedOpaqueReturnType:
genericParameterClause: genericParameterClause
type: type
nilLiteralExpr:
nilKeyword: _token
nonisolatedSpecifierArgument:
leftParen: _token
nonsendingKeyword: _token
rightParen: _token
nonisolatedTypeSpecifier:
nonisolatedKeyword: _token
argument?: nonisolatedSpecifierArgument
objCSelectorPiece:
name?: token
colon?: _token
operatorDecl:
fixitySpecifier: _token
operatorKeyword: _token
name: _token
operatorPrecedenceAndTypes?: operatorPrecedenceAndTypes
operatorPrecedenceAndTypes:
colon: _token
precedenceGroup: _token
designatedTypes*: designatedType
optionalBindingCondition:
bindingSpecifier: _token
pattern: pattern
typeAnnotation?: typeAnnotation
initializer?: initializerClause
optionalChainingExpr:
expression: expr
questionMark: _token
optionalType:
wrappedType: type
questionMark: _token
originallyDefinedInAttributeArguments:
moduleLabel: _token
colon: _token
moduleName: stringLiteralExpr
comma: _token
platforms*: platformVersionItem
packElementExpr:
eachKeyword: _token
pack: expr
packElementType:
eachKeyword: _token
pack: type
packExpansionExpr:
repeatKeyword: _token
repetitionPattern: expr
packExpansionType:
repeatKeyword: _token
repetitionPattern: type
patternBinding:
pattern: pattern
typeAnnotation?: typeAnnotation
initializer?: initializerClause
accessorBlock?: accessorBlock
trailingComma?: _token
patternExpr:
pattern: pattern
platformVersion:
platform: _token
version?: versionTuple
platformVersionItem:
platformVersion: platformVersion
trailingComma?: _token
postfixIfConfigExpr:
base?: expr
config: ifConfigDecl
postfixOperatorExpr:
expression: expr
operator: _token
poundSourceLocation:
poundSourceLocation: _token
leftParen: _token
arguments?: poundSourceLocationArguments
rightParen: _token
poundSourceLocationArguments:
fileLabel: _token
fileColon: _token
fileName: simpleStringLiteralExpr