Skip to content

Commit 2862db3

Browse files
committed
Improved wording in token documentation for node children
1 parent f963cf2 commit 2862db3

File tree

11 files changed

+410
-410
lines changed

11 files changed

+410
-410
lines changed

CodeGeneration/Sources/SyntaxSupport/Child.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public class Child {
110110
from: """
111111
### Tokens
112112
113-
For syntax trees generated by the parser, this is guaranteed to be the following \(choices)
113+
For syntax trees generated by the parser, this is guaranteed to be one of the following \(choices)
114114
"""
115115
)
116116

Sources/SwiftSyntax/generated/SyntaxTraits.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
public protocol BracedSyntax: SyntaxProtocol {
1919
/// ### Tokens
2020
///
21-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'{'`
21+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `'{'`
2222
var leftBrace: TokenSyntax {
2323
get
2424
set
2525
}
2626

2727
/// ### Tokens
2828
///
29-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'}'`
29+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `'}'`
3030
var rightBrace: TokenSyntax {
3131
get
3232
set
@@ -129,7 +129,7 @@ public protocol EffectSpecifiersSyntax: SyntaxProtocol {
129129

130130
/// ### Tokens
131131
///
132-
/// For syntax trees generated by the parser, this is guaranteed to be the following kinds:
132+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kinds:
133133
/// - `'async'`
134134
/// - `'reasync'`
135135
var asyncSpecifier: TokenSyntax? {
@@ -144,7 +144,7 @@ public protocol EffectSpecifiersSyntax: SyntaxProtocol {
144144

145145
/// ### Tokens
146146
///
147-
/// For syntax trees generated by the parser, this is guaranteed to be the following kinds:
147+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kinds:
148148
/// - `'throws'`
149149
/// - `'rethrows'`
150150
var throwsSpecifier: TokenSyntax? {
@@ -191,15 +191,15 @@ public extension SyntaxProtocol {
191191
public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
192192
/// ### Tokens
193193
///
194-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'#'`
194+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `'#'`
195195
var pound: TokenSyntax {
196196
get
197197
set
198198
}
199199

200200
/// ### Tokens
201201
///
202-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `<identifier>`
202+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `<identifier>`
203203
var macroName: TokenSyntax {
204204
get
205205
set
@@ -212,7 +212,7 @@ public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
212212

213213
/// ### Tokens
214214
///
215-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'('`
215+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `'('`
216216
var leftParen: TokenSyntax? {
217217
get
218218
set
@@ -225,7 +225,7 @@ public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
225225

226226
/// ### Tokens
227227
///
228-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `')'`
228+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `')'`
229229
var rightParen: TokenSyntax? {
230230
get
231231
set
@@ -275,7 +275,7 @@ public extension SyntaxProtocol {
275275
public protocol NamedDeclSyntax: SyntaxProtocol {
276276
/// ### Tokens
277277
///
278-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `<identifier>`
278+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `<identifier>`
279279
var name: TokenSyntax {
280280
get
281281
set
@@ -319,7 +319,7 @@ public protocol MissingNodeSyntax: SyntaxProtocol {
319319
///
320320
/// ### Tokens
321321
///
322-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `<identifier>`
322+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `<identifier>`
323323
var placeholder: TokenSyntax {
324324
get
325325
set
@@ -359,15 +359,15 @@ public extension SyntaxProtocol {
359359
public protocol ParenthesizedSyntax: SyntaxProtocol {
360360
/// ### Tokens
361361
///
362-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'('`
362+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `'('`
363363
var leftParen: TokenSyntax {
364364
get
365365
set
366366
}
367367

368368
/// ### Tokens
369369
///
370-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `')'`
370+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `')'`
371371
var rightParen: TokenSyntax {
372372
get
373373
set
@@ -601,7 +601,7 @@ public extension SyntaxProtocol {
601601
public protocol WithTrailingCommaSyntax: SyntaxProtocol {
602602
/// ### Tokens
603603
///
604-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `','`
604+
/// For syntax trees generated by the parser, this is guaranteed to be one of the following kind: `','`
605605
var trailingComma: TokenSyntax? {
606606
get
607607
set

0 commit comments

Comments
 (0)