File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
CodeGeneration/Sources/SyntaxSupport Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,41 @@ public let EXPR_NODES: [Node] = [
184
184
) ,
185
185
]
186
186
) ,
187
+
188
+ // the canImport expr in if config expression
189
+ Node (
190
+ name: " CanImportExpr " ,
191
+ nameForDiagnostics: " 'canImport' expression in if config expression " ,
192
+ kind: " Expr " ,
193
+ children: [
194
+ Child (
195
+ name: " CanImportKeyword " ,
196
+ kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] )
197
+ ) ,
198
+ Child (
199
+ name: " LeftParen " ,
200
+ kind: . token( choices: [ . token( tokenKind: " LeftParenToken " ) ] )
201
+ ) ,
202
+ Child (
203
+ name: " ImportPath " ,
204
+ kind: . token( choices: [ . token( tokenKind: " IdentifierToken " ) ] )
205
+ ) ,
206
+ Child (
207
+ name: " Comma " ,
208
+ kind: . token( choices: [ . token( tokenKind: " CommaToken " ) ] ) ,
209
+ isOptional: true
210
+ ) ,
211
+ Child (
212
+ name: " Version " ,
213
+ kind: . node( kind: " TupleExprElement " ) ,
214
+ isOptional: true
215
+ ) ,
216
+ Child (
217
+ name: " RightParen " ,
218
+ kind: . token( choices: [ . token( tokenKind: " RightParenToken " ) ] )
219
+ )
220
+ ]
221
+ ) ,
187
222
188
223
// case-item -> pattern where-clause? ','?
189
224
Node (
You can’t perform that action at this time.
0 commit comments