You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CodeGeneration/Sources/SyntaxSupport/AttributeNodes.swift
-29
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@
13
13
publicletATTRIBUTE_NODES:[Node]=[
14
14
Node(
15
15
kind:.attributeList,
16
-
base:.syntaxCollection,
17
16
nameForDiagnostics:"attributes",
18
17
documentation:"""
19
18
A list of attributes that can be attached to a declaration.
@@ -34,7 +33,6 @@ public let ATTRIBUTE_NODES: [Node] = [
34
33
35
34
Node(
36
35
kind:.attribute,
37
-
base:.syntax,
38
36
nameForDiagnostics:"attribute",
39
37
documentation:"An `@` attribute.",
40
38
parserFunction:"parseAttribute",
@@ -161,7 +159,6 @@ public let ATTRIBUTE_NODES: [Node] = [
161
159
162
160
Node(
163
161
kind:.specializeAvailabilityArgument,
164
-
base:.syntax,
165
162
nameForDiagnostics:"availability entry",
166
163
documentation:"The availability argument for the _specialize attribute",
167
164
children:[
@@ -195,7 +192,6 @@ public let ATTRIBUTE_NODES: [Node] = [
195
192
196
193
Node(
197
194
kind:.platformVersionItem,
198
-
base:.syntax,
199
195
nameForDiagnostics:"version",
200
196
documentation:"A single platform/version pair in an attribute, e.g. `iOS 10.1`.",
201
197
traits:["WithTrailingComma"],
@@ -217,14 +213,12 @@ public let ATTRIBUTE_NODES: [Node] = [
217
213
218
214
Node(
219
215
kind:.platformVersionItemList,
220
-
base:.syntaxCollection,
221
216
nameForDiagnostics:"version list",
222
217
elementChoices:[.platformVersionItem]
223
218
),
224
219
225
220
Node(
226
221
kind:.backDeployedAttributeArguments,
227
-
base:.syntax,
228
222
nameForDiagnostics:"'@backDeployed' arguments",
229
223
documentation:"A collection of arguments for the `@backDeployed` attribute",
230
224
children:[
@@ -253,7 +247,6 @@ public let ATTRIBUTE_NODES: [Node] = [
253
247
254
248
Node(
255
249
kind:.conventionAttributeArguments,
256
-
base:.syntax,
257
250
nameForDiagnostics:"@convention(...) arguments",
258
251
documentation:"The arguments for the '@convention(...)'.",
259
252
children:[
@@ -287,7 +280,6 @@ public let ATTRIBUTE_NODES: [Node] = [
287
280
288
281
Node(
289
282
kind:.conventionWitnessMethodAttributeArguments,
290
-
base:.syntax,
291
283
nameForDiagnostics:"@convention(...) arguments for witness methods",
292
284
documentation:"The arguments for the '@convention(witness_method: ...)'.",
293
285
children:[
@@ -312,7 +304,6 @@ public let ATTRIBUTE_NODES: [Node] = [
312
304
313
305
Node(
314
306
kind:.derivativeAttributeArguments,
315
-
base:.syntax,
316
307
nameForDiagnostics:"attribute arguments",
317
308
documentation:
318
309
"The arguments for the '@derivative(of:)' and '@transpose(of:)' attributes: the 'of:' label, the original declaration name, and an optional differentiability parameter list.",
@@ -361,14 +352,12 @@ public let ATTRIBUTE_NODES: [Node] = [
@@ -427,7 +415,6 @@ public let ATTRIBUTE_NODES: [Node] = [
427
415
428
416
Node(
429
417
kind:.differentiabilityArguments,
430
-
base:.syntax,
431
418
nameForDiagnostics:"differentiability arguments",
432
419
documentation:"The differentiability arguments.",
433
420
children:[
@@ -450,7 +437,6 @@ public let ATTRIBUTE_NODES: [Node] = [
450
437
451
438
Node(
452
439
kind:.differentiableAttributeArguments,
453
-
base:.syntax,
454
440
nameForDiagnostics:"'@differentiable' arguments",
455
441
documentation:
456
442
"The arguments for the `@differentiable` attribute: an optional differentiability kind, an optional differentiability parameter clause, and an optional 'where' clause.",
@@ -496,7 +482,6 @@ public let ATTRIBUTE_NODES: [Node] = [
496
482
497
483
Node(
498
484
kind:.documentationAttributeArgument,
499
-
base:.syntax,
500
485
nameForDiagnostics:"@_documentation argument",
501
486
traits:[
502
487
"WithTrailingComma"
@@ -542,15 +527,13 @@ public let ATTRIBUTE_NODES: [Node] = [
542
527
543
528
Node(
544
529
kind:.documentationAttributeArgumentList,
545
-
base:.syntaxCollection,
546
530
nameForDiagnostics:"@_documentation arguments",
547
531
documentation:"The arguments of the '@_documentation' attribute",
documentation:"The arguments for the '@_dynamicReplacement' attribute",
556
539
children:[
@@ -572,15 +555,13 @@ public let ATTRIBUTE_NODES: [Node] = [
572
555
573
556
Node(
574
557
kind:.effectsAttributeArgumentList,
575
-
base:.syntaxCollection,
576
558
nameForDiagnostics:"@_effects arguments",
577
559
documentation:"The arguments of the '@_effects' attribute. These will be parsed during the SIL stage.",
578
560
elementChoices:[.token]
579
561
),
580
562
581
563
Node(
582
564
kind:.exposeAttributeArguments,
583
-
base:.syntax,
584
565
nameForDiagnostics:"@_expose arguments",
585
566
documentation:"The arguments for the '@_expose' attribute",
586
567
children:[
@@ -603,7 +584,6 @@ public let ATTRIBUTE_NODES: [Node] = [
603
584
604
585
Node(
605
586
kind:.implementsAttributeArguments,
606
-
base:.syntax,
607
587
nameForDiagnostics:"@_implements arguemnts",
608
588
documentation:
609
589
"The arguments for the `@_implements` attribute of the form `Type, methodName(arg1Label:arg2Label:)`",
@@ -631,7 +611,6 @@ public let ATTRIBUTE_NODES: [Node] = [
631
611
632
612
Node(
633
613
kind:.labeledSpecializeArgument,
634
-
base:.syntax,
635
614
nameForDiagnostics:"attribute argument",
636
615
documentation:"A labeled argument for the `@_specialize` attribute like `exported: true`",
637
616
traits:[
@@ -673,7 +652,6 @@ public let ATTRIBUTE_NODES: [Node] = [
673
652
674
653
Node(
675
654
kind:.objCSelectorPiece,
676
-
base:.syntax,
677
655
nameForDiagnostics:"Objective-C selector piece",
678
656
documentation:
679
657
"A piece of an Objective-C selector. Either consisting of just an identifier for a nullary selector, an identifier and a colon for a labeled argument or just a colon for an unlabeled argument",
@@ -696,14 +674,12 @@ public let ATTRIBUTE_NODES: [Node] = [
696
674
697
675
Node(
698
676
kind:.objCSelectorPieceList,
699
-
base:.syntaxCollection,
700
677
nameForDiagnostics:"Objective-C selector",
701
678
elementChoices:[.objCSelectorPiece]
702
679
),
703
680
704
681
Node(
705
682
kind:.opaqueReturnTypeOfAttributeArguments,
706
-
base:.syntax,
707
683
nameForDiagnostics:"opaque return type arguments",
708
684
documentation:"The arguments for the '@_opaqueReturnTypeOf()'.",
709
685
children:[
@@ -726,7 +702,6 @@ public let ATTRIBUTE_NODES: [Node] = [
0 commit comments