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/gyb_generated/AttributeNodes.swift
+90-1Lines changed: 90 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,9 @@ public let ATTRIBUTE_NODES: [Node] = [
78
78
Child(name:"EffectsArguments",
79
79
kind:"EffectsArguments"),
80
80
Child(name:"DocumentationArguments",
81
-
kind:"DocumentationAttributeArguments")
81
+
kind:"DocumentationAttributeArguments"),
82
+
Child(name:"PackageAttributeArguments",
83
+
kind:"PackageAttributeArguments")
82
84
]),
83
85
Child(name:"RightParen",
84
86
kind:"RightParenToken",
@@ -236,6 +238,93 @@ public let ATTRIBUTE_NODES: [Node] = [
236
238
isOptional:true)
237
239
]),
238
240
241
+
Node(name:"PackageAttributeArguments",
242
+
nameForDiagnostics:"@_package arguemnts",
243
+
description:"The arguments for the `@_package` attribute imitating `PackageDescription`",
244
+
kind:"Syntax",
245
+
children:[
246
+
Child(name:"LocationLabel",
247
+
kind:"IdentifierToken",
248
+
description:"The location label.",
249
+
tokenChoices:[
250
+
"Identifier"
251
+
],
252
+
textChoices:[
253
+
"url",
254
+
"path",
255
+
"id"
256
+
]),
257
+
Child(name:"LocationColon",
258
+
kind:"ColonToken",
259
+
tokenChoices:[
260
+
"Colon"
261
+
]),
262
+
Child(name:"Location",
263
+
kind:"StringLiteralToken",
264
+
description:"The location/identifier of package.",
265
+
tokenChoices:[
266
+
"StringLiteral"
267
+
]),
268
+
Child(name:"LocReqComma",
269
+
kind:"CommaToken",
270
+
description:"The comma separating the location and requirement",
271
+
tokenChoices:[
272
+
"Comma"
273
+
]),
274
+
Child(name:"RequirementLabel",
275
+
kind:"IdentifierToken",
276
+
description:"The requirement label.",
277
+
isOptional:true,
278
+
tokenChoices:[
279
+
"Identifier"
280
+
],
281
+
textChoices:[
282
+
"from",
283
+
"branch",
284
+
"revision"
285
+
]),
286
+
Child(name:"RequirementColon",
287
+
kind:"ColonToken",
288
+
isOptional:true,
289
+
tokenChoices:[
290
+
"Colon"
291
+
]),
292
+
Child(name:"Requirement",
293
+
kind:"Expr",
294
+
description:"The version requirement of package.",
295
+
isOptional:true),
296
+
Child(name:"ReqProdComma",
297
+
kind:"CommaToken",
298
+
description:"The comma separating the requirement and product name",
299
+
isOptional:true,
300
+
tokenChoices:[
301
+
"Comma"
302
+
]),
303
+
Child(name:"ProductLabel",
304
+
kind:"IdentifierToken",
305
+
description:"The product label.",
306
+
isOptional:true,
307
+
tokenChoices:[
308
+
"Identifier"
309
+
],
310
+
textChoices:[
311
+
"product"
312
+
]),
313
+
Child(name:"ProductColon",
314
+
kind:"ColonToken",
315
+
isOptional:true,
316
+
tokenChoices:[
317
+
"Colon"
318
+
]),
319
+
Child(name:"ProductName",
320
+
kind:"StringLiteralToken",
321
+
description:"The exact product name from package",
322
+
isOptional:true,
323
+
tokenChoices:[
324
+
"StringLiteral"
325
+
])
326
+
]),
327
+
239
328
Node(name:"ObjCSelectorPiece",
240
329
nameForDiagnostics:"Objective-C selector piece",
241
330
description:"A piece of an Objective-C selector. Either consisting of just anidentifier for a nullary selector, an identifier and a colon for alabeled argument or just a colon for an unlabeled argument",
0 commit comments