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
I played around withs some maximum line lengths and 160 seems to strike a good balance of prohibiting excessivly long lines while not forcing line wraps on lines that are more clearly represented on a single line.
description:"The base name of the protocol's requirement."
304
307
),
@@ -322,7 +325,8 @@ public let ATTRIBUTE_NODES: [Node] = [
322
325
kind:.derivativeRegistrationAttributeArguments,
323
326
base:.syntax,
324
327
nameForDiagnostics:"attribute arguments",
325
-
documentation:"The arguments for the '@derivative(of:)' and '@transpose(of:)' attributes: the 'of:' label, the original declaration name, and an optional differentiability parameter list.",
328
+
documentation:
329
+
"The arguments for the '@derivative(of:)' and '@transpose(of:)' attributes: the 'of:' label, the original declaration name, and an optional differentiability parameter list.",
326
330
children:[
327
331
Child(
328
332
name:"OfLabel",
@@ -461,7 +465,8 @@ public let ATTRIBUTE_NODES: [Node] = [
461
465
kind:.differentiableAttributeArguments,
462
466
base:.syntax,
463
467
nameForDiagnostics:"'@differentiable' arguments",
464
-
documentation:"The arguments for the `@differentiable` attribute: an optional differentiability kind, an optional differentiability parameter clause, and an optional 'where' clause.",
468
+
documentation:
469
+
"The arguments for the `@differentiable` attribute: an optional differentiability kind, an optional differentiability parameter clause, and an optional 'where' clause.",
465
470
children:[
466
471
Child(
467
472
name:"DiffKind",
@@ -515,7 +520,11 @@ public let ATTRIBUTE_NODES: [Node] = [
), // Keywords can be: public, internal, private, fileprivate, open
520
529
Child(
521
530
name:"String",
@@ -670,7 +679,8 @@ public let ATTRIBUTE_NODES: [Node] = [
670
679
kind:.objCSelectorPiece,
671
680
base:.syntax,
672
681
nameForDiagnostics:"Objective-C selector piece",
673
-
documentation:"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",
682
+
documentation:
683
+
"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",
674
684
children:[
675
685
Child(
676
686
name:"Name",
@@ -776,7 +786,10 @@ public let ATTRIBUTE_NODES: [Node] = [
description:"The name of the OS on which the availability should be restricted or 'swift' if the availability should be restricted based on a Swift version.",
115
+
description:
116
+
"The name of the OS on which the availability should be restricted or 'swift' if the availability should be restricted based on a Swift version.",
@@ -374,7 +383,8 @@ public let DECL_NODES: [Node] = [
374
383
Child(
375
384
name:"MemberBlock",
376
385
kind:.node(kind:.memberDeclBlock),
377
-
description:"The members of the class declaration. As class extension declarations may declare additional members, the contents of this member block isn't guaranteed to be a complete list of members for this type."
386
+
description:
387
+
"The members of the class declaration. As class extension declarations may declare additional members, the contents of this member block isn't guaranteed to be a complete list of members for this type."
378
388
),
379
389
]
380
390
),
@@ -767,7 +777,8 @@ public let DECL_NODES: [Node] = [
767
777
Child(
768
778
name:"MemberBlock",
769
779
kind:.node(kind:.memberDeclBlock),
770
-
description:"The cases and other members associated with this enum declaration. Because enum extension declarations may declare additional members the contents of this member block isn't guaranteed to be a complete list of members for this type."
780
+
description:
781
+
"The cases and other members associated with this enum declaration. Because enum extension declarations may declare additional members the contents of this member block isn't guaranteed to be a complete list of members for this type."
771
782
),
772
783
]
773
784
),
@@ -855,7 +866,10 @@ public let DECL_NODES: [Node] = [
description:"When true, an operator in the corresponding precedence group uses the same grouping rules during optional chaining as the assignment operators from the standard library. Otherwise, operators in the precedence group follows the same optional chaining rules as operators that don't perform assignment."
1677
+
description:
1678
+
"When true, an operator in the corresponding precedence group uses the same grouping rules during optional chaining as the assignment operators from the standard library. Otherwise, operators in the precedence group follows the same optional chaining rules as operators that don't perform assignment."
1657
1679
),
1658
1680
]
1659
1681
),
@@ -1678,7 +1700,8 @@ public let DECL_NODES: [Node] = [
description:"Operators that are `left`-associative group left-to-right. Operators that are `right`-associative group right-to-left. Operators that are specified with an associativity of `none` don't associate at all"
1703
+
description:
1704
+
"Operators that are `left`-associative group left-to-right. Operators that are `right`-associative group right-to-left. Operators that are specified with an associativity of `none` don't associate at all"
1682
1705
),
1683
1706
]
1684
1707
),
@@ -2032,7 +2055,8 @@ public let DECL_NODES: [Node] = [
2032
2055
Child(
2033
2056
name:"MemberBlock",
2034
2057
kind:.node(kind:.memberDeclBlock),
2035
-
description:"The members of the struct declaration. Because struct extension declarations may declare additional members the contents of this member block isn't guaranteed to be a complete list of members for this type."
2058
+
description:
2059
+
"The members of the struct declaration. Because struct extension declarations may declare additional members the contents of this member block isn't guaranteed to be a complete list of members for this type."
description:"If this is specified, it is the name by which the parameter can be referenced inside the closure body. If it is `nil`, the closure parameter is referenced by the first name.",
385
+
description:
386
+
"If this is specified, it is the name by which the parameter can be referenced inside the closure body. If it is `nil`, the closure parameter is referenced by the first name.",
386
387
isOptional:true
387
388
),
388
389
Child(
@@ -832,7 +833,11 @@ public let EXPR_NODES: [Node] = [
Copy file name to clipboardExpand all lines: CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntaxbuilder/BuildableCollectionNodesFile.swift
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,10 @@ let buildableCollectionNodesFile = SourceFileSyntax(leadingTrivia: copyrightHead
letdocComment= node.documentation.isEmpty ?[.docLineComment("/// `\(node.kind.syntaxType)` represents a collection of `\(elementType.syntaxBaseName)`")]: node.documentation
25
+
letdocComment=
26
+
node.documentation.isEmpty
27
+
?[.docLineComment("/// `\(node.kind.syntaxType)` represents a collection of `\(elementType.syntaxBaseName)`")]
0 commit comments