Skip to content

Commit be45c0e

Browse files
committed
Minor changes on documentation
Rerun CodeGeneration
1 parent f726b85 commit be45c0e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CodeGeneration/Sources/SyntaxSupport/AvailabilityNodes.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public let AVAILABILITY_NODES: [Node] = [
151151
Node(
152152
name: "VersionTuple",
153153
nameForDiagnostics: "version tuple",
154-
description: "A version number of the form major.minor.patch in which the minor and patch part may be omitted.",
154+
description: "A version number like `1.2.0`. Only the first version component is required. There might be an arbitrary number of following components.",
155155
kind: "Syntax",
156156
children: [
157157
Child(
@@ -162,6 +162,7 @@ public let AVAILABILITY_NODES: [Node] = [
162162
Child(
163163
name: "Components",
164164
kind: .collection(kind: "VersionComponentList", collectionElementName: "VersionComponent"),
165+
description: "Any version components that are not the major version . For example, for `1.2.0`, this will contain `.2.0`",
165166
isOptional: true
166167
),
167168
]

CodeGeneration/Sources/SyntaxSupport/ExprNodes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public let EXPR_NODES: [Node] = [
188188
// the canImport expr in if config expression
189189
Node(
190190
name: "CanImportExpr",
191-
nameForDiagnostics: "'canImport' expression in if config expression",
191+
nameForDiagnostics: "'canImport' expression",
192192
kind: "Expr",
193193
children: [
194194
Child(

Sources/SwiftParserDiagnostics/generated/SyntaxKindNameForDiagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extension SyntaxKind {
7070
case .breakStmt:
7171
return "'break' statement"
7272
case .canImportExpr:
73-
return "'canImport' expression in if config expression"
73+
return "'canImport' expression"
7474
case .catchClauseList:
7575
return "'catch' clause"
7676
case .catchClause:

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodes.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17552,7 +17552,7 @@ public struct VersionComponentSyntax: SyntaxProtocol, SyntaxHashable {
1755217552

1755317553
// MARK: - VersionTupleSyntax
1755417554

17555-
/// A version number of the form major.minor.patch in which the minor and patch part may be omitted.
17555+
/// A version number like `1.2.0`. Only the first version component is required. There might be an arbitrary number of following components.
1755617556
public struct VersionTupleSyntax: SyntaxProtocol, SyntaxHashable {
1755717557
public let _syntaxNode: Syntax
1755817558

@@ -17638,6 +17638,7 @@ public struct VersionTupleSyntax: SyntaxProtocol, SyntaxHashable {
1763817638
}
1763917639
}
1764017640

17641+
/// Any version components that are not the major version . For example, for `1.2.0`, this will contain `.2.0`
1764117642
public var components: VersionComponentListSyntax? {
1764217643
get {
1764317644
return data.child(at: 3, parent: Syntax(self)).map(VersionComponentListSyntax.init)

0 commit comments

Comments
 (0)