mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftSyntax: Add LabeledSyntax trait. NFC
This commit also adds several "WithTrailingComma" I've missed in the previous commit.
This commit is contained in:
@@ -68,11 +68,11 @@ PATTERN_NODES = [
|
||||
|
||||
# tuple-pattern-element -> identifier? ':' pattern ','?
|
||||
Node('TuplePatternElement', kind='Syntax',
|
||||
traits=['WithTrailingComma'],
|
||||
traits=['WithTrailingComma', 'Labeled'],
|
||||
children=[
|
||||
Child('LabelName', kind='IdentifierToken',
|
||||
is_optional=True),
|
||||
Child('Colon', kind='ColonToken',
|
||||
Child('LabelColon', kind='ColonToken',
|
||||
is_optional=True),
|
||||
Child('Pattern', kind='Pattern'),
|
||||
Child('TrailingComma', kind='CommaToken',
|
||||
|
||||
Reference in New Issue
Block a user