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: Sources/SwiftSyntaxBuilderGeneration/gyb_generated/AvailabilityNodes.swift
+42-9Lines changed: 42 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,17 @@ let AVAILABILITY_NODES: [Node] = [
27
27
nodeChoices:[
28
28
Child(name:"Star",
29
29
kind:"SpacedBinaryOperatorToken",
30
+
tokenChoices:[
31
+
"SpacedBinaryOperator"
32
+
],
30
33
textChoices:[
31
34
"*"
32
35
]),
33
36
Child(name:"IdentifierRestriction",
34
-
kind:"IdentifierToken"),
37
+
kind:"IdentifierToken",
38
+
tokenChoices:[
39
+
"Identifier"
40
+
]),
35
41
Child(name:"AvailabilityVersionRestriction",
36
42
kind:"AvailabilityVersionRestriction"),
37
43
Child(name:"AvailabilityLabeledArgument",
@@ -40,7 +46,10 @@ let AVAILABILITY_NODES: [Node] = [
40
46
Child(name:"TrailingComma",
41
47
kind:"CommaToken",
42
48
description:"A trailing comma if the argument is followed by anotherargument",
43
-
isOptional:true)
49
+
isOptional:true,
50
+
tokenChoices:[
51
+
"Comma"
52
+
])
44
53
]),
45
54
46
55
Node(name:"AvailabilityLabeledArgument",
@@ -49,16 +58,25 @@ let AVAILABILITY_NODES: [Node] = [
49
58
children:[
50
59
Child(name:"Label",
51
60
kind:"IdentifierToken",
52
-
description:"The label of the argument"),
61
+
description:"The label of the argument",
62
+
tokenChoices:[
63
+
"Identifier"
64
+
]),
53
65
Child(name:"Colon",
54
66
kind:"ColonToken",
55
-
description:"The colon separating label and value"),
67
+
description:"The colon separating label and value",
68
+
tokenChoices:[
69
+
"Colon"
70
+
]),
56
71
Child(name:"Value",
57
72
kind:"Syntax",
58
73
description:"The value of this labeled argument",
59
74
nodeChoices:[
60
75
Child(name:"String",
61
-
kind:"StringLiteralToken"),
76
+
kind:"StringLiteralToken",
77
+
tokenChoices:[
78
+
"StringLiteral"
79
+
]),
62
80
Child(name:"Version",
63
81
kind:"VersionTuple")
64
82
])
@@ -71,6 +89,9 @@ let AVAILABILITY_NODES: [Node] = [
71
89
Child(name:"Platform",
72
90
kind:"IdentifierToken",
73
91
description:"The name of the OS on which the availability should berestricted or 'swift' if the availability should berestricted based on a Swift version.",
92
+
tokenChoices:[
93
+
"Identifier"
94
+
],
74
95
classification:"Keyword"),
75
96
Child(name:"Version",
76
97
kind:"VersionTuple",
@@ -86,18 +107,30 @@ let AVAILABILITY_NODES: [Node] = [
86
107
description:"In case the version consists only of the major version, aninteger literal that specifies the major version. In casethe version consists of major and minor version number, afloating literal in which the decimal part is interpretedas the minor version.",
87
108
nodeChoices:[
88
109
Child(name:"Major",
89
-
kind:"IntegerLiteralToken"),
110
+
kind:"IntegerLiteralToken",
111
+
tokenChoices:[
112
+
"IntegerLiteral"
113
+
]),
90
114
Child(name:"MajorMinor",
91
-
kind:"FloatingLiteralToken")
115
+
kind:"FloatingLiteralToken",
116
+
tokenChoices:[
117
+
"FloatingLiteral"
118
+
])
92
119
]),
93
120
Child(name:"PatchPeriod",
94
121
kind:"PeriodToken",
95
122
description:"If the version contains a patch number, the periodseparating the minor from the patch number.",
0 commit comments