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
- Moves complexity of generating the comment into `Child.swift` and uses
`grammar.grammar()` directly.
- Appends a `TriviaPiece.newlines(1)` between trivia pieces when merging
with the original comment.
- Uses approach similar to `SyntaxNodesFile.swift` to concatenating
documentation pieces.
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: '#'
192
+
/// ### Tokens
193
+
///
194
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'#'`
185
195
varpound:TokenSyntax{
186
196
get
187
197
set
188
198
}
189
199
190
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: <identifier>
200
+
/// ### Tokens
201
+
///
202
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `<identifier>`
191
203
varmacroName:TokenSyntax{
192
204
get
193
205
set
@@ -198,7 +210,9 @@ public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
198
210
set
199
211
}
200
212
201
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: '('
213
+
/// ### Tokens
214
+
///
215
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'('`
202
216
varleftParen:TokenSyntax?{
203
217
get
204
218
set
@@ -209,7 +223,9 @@ public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
209
223
set
210
224
}
211
225
212
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: ')'
226
+
/// ### Tokens
227
+
///
228
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `')'`
213
229
varrightParen:TokenSyntax?{
214
230
get
215
231
set
@@ -257,7 +273,9 @@ public extension SyntaxProtocol {
257
273
258
274
259
275
publicprotocolNamedDeclSyntax:SyntaxProtocol{
260
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: <identifier>
276
+
/// ### Tokens
277
+
///
278
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `<identifier>`
261
279
varname:TokenSyntax{
262
280
get
263
281
set
@@ -297,7 +315,11 @@ public extension SyntaxProtocol {
297
315
///
298
316
/// See the types conforming to this protocol for examples of where missing nodes can occur.
299
317
publicprotocolMissingNodeSyntax:SyntaxProtocol{
300
-
/// A placeholder, i.e. `<#placeholder#>`, that can be inserted into the source code to represent the missing node./// For syntax trees generated by the parser, this is guaranteed to be the following kind: <identifier>
318
+
/// A placeholder, i.e. `<#placeholder#>`, that can be inserted into the source code to represent the missing node.
319
+
///
320
+
/// ### Tokens
321
+
///
322
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `<identifier>`
301
323
varplaceholder:TokenSyntax{
302
324
get
303
325
set
@@ -335,13 +357,17 @@ public extension SyntaxProtocol {
335
357
336
358
337
359
publicprotocolParenthesizedSyntax:SyntaxProtocol{
338
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: '('
360
+
/// ### Tokens
361
+
///
362
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `'('`
339
363
varleftParen:TokenSyntax{
340
364
get
341
365
set
342
366
}
343
367
344
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: ')'
368
+
/// ### Tokens
369
+
///
370
+
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: `')'`
345
371
varrightParen:TokenSyntax{
346
372
get
347
373
set
@@ -573,7 +599,9 @@ public extension SyntaxProtocol {
0 commit comments