Skip to content

Commit ed00260

Browse files
authored
Merge pull request swiftlang#170 from ahoppen/multiline-generated-comments
Make node descriptions multi-line
2 parents 91982c2 + 49e84dc commit ed00260

File tree

1 file changed

+51
-22
lines changed

1 file changed

+51
-22
lines changed

Diff for: Sources/SwiftSyntax/gyb_generated/SyntaxNodes.swift

+51-22
Original file line numberDiff line numberDiff line change
@@ -12031,7 +12031,8 @@ public protocol MemberDeclListItemSyntaxProtocol: SyntaxProtocol {}
1203112031

1203212032

1203312033
///
12034-
/// A member declaration of a type consisting of a declaration and an optional semicolon;
12034+
/// A member declaration of a type consisting of a declaration and an
12035+
/// optional semicolon;
1203512036
///
1203612037
public struct MemberDeclListItemSyntax: SyntaxProtocol {
1203712038
enum Cursor: Int {
@@ -15197,7 +15198,8 @@ public protocol EnumCaseElementSyntaxProtocol: SyntaxProtocol {}
1519715198

1519815199

1519915200
///
15200-
/// An element of an enum case, containing the name of the case and, optionally, either associated values or an assignment to a raw value.
15201+
/// An element of an enum case, containing the name of the case and,
15202+
/// optionally, either associated values or an assignment to a raw value.
1520115203
///
1520215204
public struct EnumCaseElementSyntax: SyntaxProtocol {
1520315205
enum Cursor: Int {
@@ -15292,7 +15294,8 @@ public struct EnumCaseElementSyntax: SyntaxProtocol {
1529215294
return EnumCaseElementSyntax(newData)
1529315295
}
1529415296
///
15295-
/// The trailing comma of this element, if the case has multiple elements.
15297+
/// The trailing comma of this element, if the case has
15298+
/// multiple elements.
1529615299
///
1529715300
public var trailingComma: TokenSyntax? {
1529815301
get {
@@ -15375,7 +15378,8 @@ public protocol EnumCaseDeclSyntaxProtocol: DeclSyntaxProtocol {}
1537515378

1537615379

1537715380
///
15378-
/// A `case` declaration of a Swift `enum`. It can have 1 or more `EnumCaseElement`s inside, each declaring a different case of the
15381+
/// A `case` declaration of a Swift `enum`. It can have 1 or more
15382+
/// `EnumCaseElement`s inside, each declaring a different case of the
1537915383
/// enum.
1538015384
///
1538115385
public struct EnumCaseDeclSyntax: DeclSyntaxProtocol {
@@ -15791,7 +15795,8 @@ public struct EnumDeclSyntax: DeclSyntaxProtocol {
1579115795
return EnumDeclSyntax(newData)
1579215796
}
1579315797
///
15794-
/// The inheritance clause describing conformances or raw values for this enum.
15798+
/// The inheritance clause describing conformances or raw
15799+
/// values for this enum.
1579515800
///
1579615801
public var inheritanceClause: TypeInheritanceClauseSyntax? {
1579715802
get {
@@ -15815,7 +15820,8 @@ public struct EnumDeclSyntax: DeclSyntaxProtocol {
1581515820
return EnumDeclSyntax(newData)
1581615821
}
1581715822
///
15818-
/// The `where` clause that applies to the generic parameters of this enum.
15823+
/// The `where` clause that applies to the generic parameters of
15824+
/// this enum.
1581915825
///
1582015826
public var genericWhereClause: GenericWhereClauseSyntax? {
1582115827
get {
@@ -17496,7 +17502,9 @@ public struct AttributeSyntax: SyntaxProtocol {
1749617502
return AttributeSyntax(newData)
1749717503
}
1749817504
///
17499-
/// The arguments of the attribute. In case the attribute takes multiple arguments, they are gather in the appropriate takes first.
17505+
/// The arguments of the attribute. In case the attribute
17506+
/// takes multiple arguments, they are gather in the
17507+
/// appropriate takes first.
1750017508
///
1750117509
public var argument: Syntax? {
1750217510
get {
@@ -17648,7 +17656,8 @@ public protocol LabeledSpecializeEntrySyntaxProtocol: SyntaxProtocol {}
1764817656

1764917657

1765017658
///
17651-
/// A labeled argument for the `@_specialize` attribute like `exported: true`
17659+
/// A labeled argument for the `@_specialize` attribute like
17660+
/// `exported: true`
1765217661
///
1765317662
public struct LabeledSpecializeEntrySyntax: SyntaxProtocol {
1765417663
enum Cursor: Int {
@@ -17817,7 +17826,9 @@ public protocol NamedAttributeStringArgumentSyntaxProtocol: SyntaxProtocol {}
1781717826

1781817827

1781917828
///
17820-
/// The argument for the `@_dynamic_replacement` or `@_private` attribute of the form `for: "function()"` or `sourceFile: "Src.swift"`
17829+
/// The argument for the `@_dynamic_replacement` or `@_private`
17830+
/// attribute of the form `for: "function()"` or `sourceFile:
17831+
/// "Src.swift"`
1782117832
///
1782217833
public struct NamedAttributeStringArgumentSyntax: SyntaxProtocol {
1782317834
enum Cursor: Int {
@@ -18006,7 +18017,8 @@ public struct DeclNameSyntax: SyntaxProtocol {
1800618017
return DeclNameSyntax(newData)
1800718018
}
1800818019
///
18009-
/// The argument labels of the protocol's requirement if it is a function requirement.
18020+
/// The argument labels of the protocol's requirement if it
18021+
/// is a function requirement.
1801018022
///
1801118023
public var declNameArguments: DeclNameArgumentsSyntax? {
1801218024
get {
@@ -18084,7 +18096,8 @@ public protocol ImplementsAttributeArgumentsSyntaxProtocol: SyntaxProtocol {}
1808418096

1808518097

1808618098
///
18087-
/// The arguments for the `@_implements` attribute of the form `Type, methodName(arg1Label:arg2Label:)`
18099+
/// The arguments for the `@_implements` attribute of the form
18100+
/// `Type, methodName(arg1Label:arg2Label:)`
1808818101
///
1808918102
public struct ImplementsAttributeArgumentsSyntax: SyntaxProtocol {
1809018103
enum Cursor: Int {
@@ -18112,7 +18125,8 @@ public struct ImplementsAttributeArgumentsSyntax: SyntaxProtocol {
1811218125
}
1811318126

1811418127
///
18115-
/// The type for which the method with this attribute implements a requirement.
18128+
/// The type for which the method with this attribute
18129+
/// implements a requirement.
1811618130
///
1811718131
public var type: SimpleTypeIdentifierSyntax {
1811818132
get {
@@ -18181,7 +18195,8 @@ public struct ImplementsAttributeArgumentsSyntax: SyntaxProtocol {
1818118195
return ImplementsAttributeArgumentsSyntax(newData)
1818218196
}
1818318197
///
18184-
/// The argument labels of the protocol's requirement if it is a function requirement.
18198+
/// The argument labels of the protocol's requirement if it
18199+
/// is a function requirement.
1818518200
///
1818618201
public var declNameArguments: DeclNameArgumentsSyntax? {
1818718202
get {
@@ -18259,7 +18274,9 @@ public protocol ObjCSelectorPieceSyntaxProtocol: SyntaxProtocol {}
1825918274

1826018275

1826118276
///
18262-
/// A piece of an Objective-C selector. Either consisiting 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
18277+
/// A piece of an Objective-C selector. Either consisiting of just an
18278+
/// identifier for a nullary selector, an identifier and a colon for a
18279+
/// labeled argument or just a colon for an unlabeled argument
1826318280
///
1826418281
public struct ObjCSelectorPieceSyntax: SyntaxProtocol {
1826518282
enum Cursor: Int {
@@ -27822,7 +27839,8 @@ public protocol AvailabilityArgumentSyntaxProtocol: SyntaxProtocol {}
2782227839

2782327840

2782427841
///
27825-
/// A single argument to an `@available` argument like `*`, `iOS 10.1`, or `message: "This has been deprecated"`.
27842+
/// A single argument to an `@available` argument like `*`, `iOS 10.1`,
27843+
/// or `message: "This has been deprecated"`.
2782627844
///
2782727845
public struct AvailabilityArgumentSyntax: SyntaxProtocol {
2782827846
enum Cursor: Int {
@@ -27869,7 +27887,8 @@ public struct AvailabilityArgumentSyntax: SyntaxProtocol {
2786927887
return AvailabilityArgumentSyntax(newData)
2787027888
}
2787127889
///
27872-
/// A trailing comma if the argument is followed by another argument
27890+
/// A trailing comma if the argument is followed by another
27891+
/// argument
2787327892
///
2787427893
public var trailingComma: TokenSyntax? {
2787527894
get {
@@ -27947,7 +27966,8 @@ public protocol AvailabilityLabeledArgumentSyntaxProtocol: SyntaxProtocol {}
2794727966

2794827967

2794927968
///
27950-
/// A argument to an `@available` attribute that consists of a label and a value, e.g. `message: "This has been deprecated"`.
27969+
/// A argument to an `@available` attribute that consists of a label and
27970+
/// a value, e.g. `message: "This has been deprecated"`.
2795127971
///
2795227972
public struct AvailabilityLabeledArgumentSyntax: SyntaxProtocol {
2795327973
enum Cursor: Int {
@@ -28091,7 +28111,8 @@ public protocol AvailabilityVersionRestrictionSyntaxProtocol: SyntaxProtocol {}
2809128111

2809228112

2809328113
///
28094-
/// An argument to `@available` that restricts the availability on a certain platform to a version, e.g. `iOS 10` or `swift 3.4`.
28114+
/// An argument to `@available` that restricts the availability on a
28115+
/// certain platform to a version, e.g. `iOS 10` or `swift 3.4`.
2809528116
///
2809628117
public struct AvailabilityVersionRestrictionSyntax: SyntaxProtocol {
2809728118
enum Cursor: Int {
@@ -28117,7 +28138,9 @@ public struct AvailabilityVersionRestrictionSyntax: SyntaxProtocol {
2811728138
}
2811828139

2811928140
///
28120-
/// 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.
28141+
/// The name of the OS on which the availability should be
28142+
/// restricted or 'swift' if the availability should be
28143+
/// restricted based on a Swift version.
2812128144
///
2812228145
public var platform: TokenSyntax {
2812328146
get {
@@ -28214,7 +28237,8 @@ public protocol VersionTupleSyntaxProtocol: SyntaxProtocol {}
2821428237

2821528238

2821628239
///
28217-
/// A version number of the form major.minor.patch in which the minor and patch part may be ommited.
28240+
/// A version number of the form major.minor.patch in which the minor
28241+
/// and patch part may be ommited.
2821828242
///
2821928243
public struct VersionTupleSyntax: SyntaxProtocol {
2822028244
enum Cursor: Int {
@@ -28241,7 +28265,11 @@ public struct VersionTupleSyntax: SyntaxProtocol {
2824128265
}
2824228266

2824328267
///
28244-
/// In case the version consists only of the major version, an integer literal that specifies the major version. In case the version consists of major and minor version number, a floating literal in which the decimal part is interpreted as the minor version.
28268+
/// In case the version consists only of the major version, an
28269+
/// integer literal that specifies the major version. In case
28270+
/// the version consists of major and minor version number, a
28271+
/// floating literal in which the decimal part is interpreted
28272+
/// as the minor version.
2824528273
///
2824628274
public var majorMinor: Syntax {
2824728275
get {
@@ -28264,7 +28292,8 @@ public struct VersionTupleSyntax: SyntaxProtocol {
2826428292
return VersionTupleSyntax(newData)
2826528293
}
2826628294
///
28267-
/// If the version contains a patch number, the period separating the minor from the patch number.
28295+
/// If the version contains a patch number, the period
28296+
/// separating the minor from the patch number.
2826828297
///
2826928298
public var patchPeriod: TokenSyntax? {
2827028299
get {

0 commit comments

Comments
 (0)