|
220 | 220 |
|
221 | 221 | # function-call-argument -> label? ':'? expression ','?
|
222 | 222 | Node('FunctionCallArgument', kind='Syntax',
|
| 223 | + traits=['WithTrailingComma'], |
223 | 224 | children=[
|
224 | 225 | Child('Label', kind='IdentifierToken',
|
225 | 226 | is_optional=True),
|
|
232 | 233 |
|
233 | 234 | # An element inside a tuple element list
|
234 | 235 | Node('TupleElement', kind='Syntax',
|
| 236 | + traits=['WithTrailingComma'], |
235 | 237 | children=[
|
236 | 238 | Child('Label', kind='IdentifierToken',
|
237 | 239 | is_optional=True),
|
|
244 | 246 |
|
245 | 247 | # element inside an array expression: expression ','?
|
246 | 248 | Node('ArrayElement', kind='Syntax',
|
| 249 | + traits=['WithTrailingComma'], |
247 | 250 | children=[
|
248 | 251 | Child('Expression', kind='Expr'),
|
249 | 252 | Child('TrailingComma', kind='CommaToken', is_optional=True),
|
250 | 253 | ]),
|
251 | 254 |
|
252 | 255 | # element inside an array expression: expression ','?
|
253 | 256 | Node('DictionaryElement', kind='Syntax',
|
| 257 | + traits=['WithTrailingComma'], |
254 | 258 | children=[
|
255 | 259 | Child('KeyExpression', kind='Expr'),
|
256 | 260 | Child('Colon', kind='ColonToken'),
|
|
340 | 344 | ]),
|
341 | 345 |
|
342 | 346 | Node('ClosureCaptureItem', kind='Syntax',
|
| 347 | + traits=['WithTrailingComma'], |
343 | 348 | children=[
|
344 | 349 | Child("Specifier", kind='TokenList', is_optional=True),
|
345 | 350 | Child("Name", kind='IdentifierToken', is_optional=True),
|
|
359 | 364 | ]),
|
360 | 365 |
|
361 | 366 | Node('ClosureParam', kind='Syntax',
|
| 367 | + traits=['WithTrailingComma'], |
362 | 368 | children=[
|
363 | 369 | Child('Name', kind='Token',
|
364 | 370 | token_choices=[
|
|
0 commit comments