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.
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: '#'
188
+
/// ### Tokens
189
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `'#'`
185
190
varpound:TokenSyntax{
186
191
get
187
192
set
188
193
}
189
194
190
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: <identifier>
195
+
/// ### Tokens
196
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `<identifier>`
191
197
varmacroName:TokenSyntax{
192
198
get
193
199
set
@@ -198,7 +204,8 @@ public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
198
204
set
199
205
}
200
206
201
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: '('
207
+
/// ### Tokens
208
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `'('`
202
209
varleftParen:TokenSyntax?{
203
210
get
204
211
set
@@ -209,7 +216,8 @@ public protocol FreestandingMacroExpansionSyntax: SyntaxProtocol {
209
216
set
210
217
}
211
218
212
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: ')'
219
+
/// ### Tokens
220
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `')'`
213
221
varrightParen:TokenSyntax?{
214
222
get
215
223
set
@@ -257,7 +265,8 @@ public extension SyntaxProtocol {
257
265
258
266
259
267
publicprotocolNamedDeclSyntax:SyntaxProtocol{
260
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: <identifier>
268
+
/// ### Tokens
269
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `<identifier>`
261
270
varname:TokenSyntax{
262
271
get
263
272
set
@@ -297,7 +306,9 @@ public extension SyntaxProtocol {
297
306
///
298
307
/// See the types conforming to this protocol for examples of where missing nodes can occur.
299
308
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>
309
+
/// A placeholder, i.e. `<#placeholder#>`, that can be inserted into the source code to represent the missing node.
310
+
/// ### Tokens
311
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `<identifier>`
301
312
varplaceholder:TokenSyntax{
302
313
get
303
314
set
@@ -335,13 +346,15 @@ public extension SyntaxProtocol {
335
346
336
347
337
348
publicprotocolParenthesizedSyntax:SyntaxProtocol{
338
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: '('
349
+
/// ### Tokens
350
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `'('`
339
351
varleftParen:TokenSyntax{
340
352
get
341
353
set
342
354
}
343
355
344
-
/// For syntax trees generated by the parser, this is guaranteed to be the following kind: ')'
356
+
/// ### Tokens
357
+
/// For syntax trees generated by the parser, this is guaranteed to be the followingkind: `')'`
345
358
varrightParen:TokenSyntax{
346
359
get
347
360
set
@@ -573,7 +586,8 @@ public extension SyntaxProtocol {
0 commit comments