Skip to content

Commit 767c10a

Browse files
committed
Add missing comma in doc comments of missing nodes
1 parent 720eb86 commit 767c10a

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

CodeGeneration/Sources/SyntaxSupport/CommonNodes.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public let COMMON_NODES: [Node] = [
180180
name: "Placeholder",
181181
kind: .token(choices: [.token(tokenKind: "IdentifierToken")], requiresLeadingSpace: false, requiresTrailingSpace: false),
182182
documentation: """
183-
A placeholder, i.e. `<#decl#>` that can be inserted into the source code to represent the missing declaration.
183+
A placeholder, i.e. `<#decl#>`, that can be inserted into the source code to represent the missing declaration.
184184
This token should always have `presence = .missing`.
185185
"""
186186
),
@@ -197,7 +197,7 @@ public let COMMON_NODES: [Node] = [
197197
name: "Placeholder",
198198
kind: .token(choices: [.token(tokenKind: "IdentifierToken")], requiresLeadingSpace: false, requiresTrailingSpace: false),
199199
documentation: """
200-
A placeholder, i.e. `<#expression#>` that can be inserted into the source code to represent the missing expression.
200+
A placeholder, i.e. `<#expression#>`, that can be inserted into the source code to represent the missing expression.
201201
This token should always have `presence = .missing`.
202202
"""
203203
)
@@ -214,7 +214,7 @@ public let COMMON_NODES: [Node] = [
214214
name: "Placeholder",
215215
kind: .token(choices: [.token(tokenKind: "IdentifierToken")], requiresLeadingSpace: false, requiresTrailingSpace: false),
216216
documentation: """
217-
A placeholder, i.e. `<#pattern#>` that can be inserted into the source code to represent the missing pattern.
217+
A placeholder, i.e. `<#pattern#>`, that can be inserted into the source code to represent the missing pattern.
218218
This token should always have `presence = .missing`.
219219
"""
220220
)
@@ -231,7 +231,7 @@ public let COMMON_NODES: [Node] = [
231231
name: "Placeholder",
232232
kind: .token(choices: [.token(tokenKind: "IdentifierToken")], requiresLeadingSpace: false, requiresTrailingSpace: false),
233233
documentation: """
234-
A placeholder, i.e. `<#statement#>` that can be inserted into the source code to represent the missing pattern.
234+
A placeholder, i.e. `<#statement#>`, that can be inserted into the source code to represent the missing pattern.
235235
This token should always have `presence = .missing`.
236236
"""
237237
)
@@ -248,7 +248,7 @@ public let COMMON_NODES: [Node] = [
248248
name: "Placeholder",
249249
kind: .token(choices: [.token(tokenKind: "IdentifierToken")], requiresLeadingSpace: false, requiresTrailingSpace: false),
250250
documentation: """
251-
A placeholder, i.e. `<#syntax#>` that can be inserted into the source code to represent the missing pattern.
251+
A placeholder, i.e. `<#syntax#>`, that can be inserted into the source code to represent the missing pattern.
252252
This token should always have `presence = .missing`
253253
"""
254254
)
@@ -265,7 +265,7 @@ public let COMMON_NODES: [Node] = [
265265
name: "Placeholder",
266266
kind: .token(choices: [.token(tokenKind: "IdentifierToken")], requiresLeadingSpace: false, requiresTrailingSpace: false),
267267
documentation: """
268-
A placeholder, i.e. `<#type#>` that can be inserted into the source code to represent the missing type. This token should always have `presence = .missing`.
268+
A placeholder, i.e. `<#type#>`, that can be inserted into the source code to represent the missing type. This token should always have `presence = .missing`.
269269
"""
270270
)
271271
]

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxDeclNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4661,7 +4661,7 @@ public struct MissingDeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
46614661
/// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
46624662
/// - attributes: If there were standalone attributes without a declaration to attach them to, the ``MissingDeclSyntax`` will contain these.
46634663
/// - modifiers: If there were standalone modifiers without a declaration to attach them to, the ``MissingDeclSyntax`` will contain these.
4664-
/// - placeholder: A placeholder, i.e. `<#decl#>` that can be inserted into the source code to represent the missing declaration.
4664+
/// - placeholder: A placeholder, i.e. `<#decl#>`, that can be inserted into the source code to represent the missing declaration.
46654665
/// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
46664666
public init(
46674667
leadingTrivia: Trivia? = nil,
@@ -4803,7 +4803,7 @@ public struct MissingDeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
48034803
}
48044804
}
48054805

4806-
/// A placeholder, i.e. `<#decl#>` that can be inserted into the source code to represent the missing declaration./// This token should always have `presence = .missing`.
4806+
/// A placeholder, i.e. `<#decl#>`, that can be inserted into the source code to represent the missing declaration./// This token should always have `presence = .missing`.
48074807
public var placeholder: TokenSyntax {
48084808
get {
48094809
return TokenSyntax(data.child(at: 5, parent: Syntax(self))!)

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxExprNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4187,7 +4187,7 @@ public struct MissingExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
41874187

41884188
/// - Parameters:
41894189
/// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
4190-
/// - placeholder: A placeholder, i.e. `<#expression#>` that can be inserted into the source code to represent the missing expression.
4190+
/// - placeholder: A placeholder, i.e. `<#expression#>`, that can be inserted into the source code to represent the missing expression.
41914191
/// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
41924192
public init(
41934193
leadingTrivia: Trivia? = nil,
@@ -4223,7 +4223,7 @@ public struct MissingExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
42234223
}
42244224
}
42254225

4226-
/// A placeholder, i.e. `<#expression#>` that can be inserted into the source code to represent the missing expression./// This token should always have `presence = .missing`.
4226+
/// A placeholder, i.e. `<#expression#>`, that can be inserted into the source code to represent the missing expression./// This token should always have `presence = .missing`.
42274227
public var placeholder: TokenSyntax {
42284228
get {
42294229
return TokenSyntax(data.child(at: 1, parent: Syntax(self))!)

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13529,7 +13529,7 @@ public struct MissingSyntax: SyntaxProtocol, SyntaxHashable {
1352913529

1353013530
/// - Parameters:
1353113531
/// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
13532-
/// - placeholder: A placeholder, i.e. `<#syntax#>` that can be inserted into the source code to represent the missing pattern.
13532+
/// - placeholder: A placeholder, i.e. `<#syntax#>`, that can be inserted into the source code to represent the missing pattern.
1353313533
/// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
1353413534
public init(
1353513535
leadingTrivia: Trivia? = nil,
@@ -13565,7 +13565,7 @@ public struct MissingSyntax: SyntaxProtocol, SyntaxHashable {
1356513565
}
1356613566
}
1356713567

13568-
/// A placeholder, i.e. `<#syntax#>` that can be inserted into the source code to represent the missing pattern./// This token should always have `presence = .missing`
13568+
/// A placeholder, i.e. `<#syntax#>`, that can be inserted into the source code to represent the missing pattern./// This token should always have `presence = .missing`
1356913569
public var placeholder: TokenSyntax {
1357013570
get {
1357113571
return TokenSyntax(data.child(at: 1, parent: Syntax(self))!)

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxPatternNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public struct MissingPatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
333333

334334
/// - Parameters:
335335
/// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
336-
/// - placeholder: A placeholder, i.e. `<#pattern#>` that can be inserted into the source code to represent the missing pattern.
336+
/// - placeholder: A placeholder, i.e. `<#pattern#>`, that can be inserted into the source code to represent the missing pattern.
337337
/// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
338338
public init(
339339
leadingTrivia: Trivia? = nil,
@@ -369,7 +369,7 @@ public struct MissingPatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
369369
}
370370
}
371371

372-
/// A placeholder, i.e. `<#pattern#>` that can be inserted into the source code to represent the missing pattern./// This token should always have `presence = .missing`.
372+
/// A placeholder, i.e. `<#pattern#>`, that can be inserted into the source code to represent the missing pattern./// This token should always have `presence = .missing`.
373373
public var placeholder: TokenSyntax {
374374
get {
375375
return TokenSyntax(data.child(at: 1, parent: Syntax(self))!)

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxStmtNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ public struct MissingStmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
15731573

15741574
/// - Parameters:
15751575
/// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
1576-
/// - placeholder: A placeholder, i.e. `<#statement#>` that can be inserted into the source code to represent the missing pattern.
1576+
/// - placeholder: A placeholder, i.e. `<#statement#>`, that can be inserted into the source code to represent the missing pattern.
15771577
/// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
15781578
public init(
15791579
leadingTrivia: Trivia? = nil,
@@ -1609,7 +1609,7 @@ public struct MissingStmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
16091609
}
16101610
}
16111611

1612-
/// A placeholder, i.e. `<#statement#>` that can be inserted into the source code to represent the missing pattern./// This token should always have `presence = .missing`.
1612+
/// A placeholder, i.e. `<#statement#>`, that can be inserted into the source code to represent the missing pattern./// This token should always have `presence = .missing`.
16131613
public var placeholder: TokenSyntax {
16141614
get {
16151615
return TokenSyntax(data.child(at: 1, parent: Syntax(self))!)

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxTypeNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ public struct MissingTypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
15701570

15711571
/// - Parameters:
15721572
/// - leadingTrivia: Trivia to be prepended to the leading trivia of the node’s first token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
1573-
/// - placeholder: A placeholder, i.e. `<#type#>` that can be inserted into the source code to represent the missing type. This token should always have `presence = .missing`.
1573+
/// - placeholder: A placeholder, i.e. `<#type#>`, that can be inserted into the source code to represent the missing type. This token should always have `presence = .missing`.
15741574
/// - trailingTrivia: Trivia to be appended to the trailing trivia of the node’s last token. If the node is empty, there is no token to attach the trivia to and the parameter is ignored.
15751575
public init(
15761576
leadingTrivia: Trivia? = nil,
@@ -1606,7 +1606,7 @@ public struct MissingTypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
16061606
}
16071607
}
16081608

1609-
/// A placeholder, i.e. `<#type#>` that can be inserted into the source code to represent the missing type. This token should always have `presence = .missing`.
1609+
/// A placeholder, i.e. `<#type#>`, that can be inserted into the source code to represent the missing type. This token should always have `presence = .missing`.
16101610
public var placeholder: TokenSyntax {
16111611
get {
16121612
return TokenSyntax(data.child(at: 1, parent: Syntax(self))!)

0 commit comments

Comments
 (0)