Skip to content

Commit a148b21

Browse files
committed
[Syntax] Update DeclNodes.py for designated protocols parsing support.
1 parent aeee1a8 commit a148b21

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/gyb_syntax_support/DeclNodes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,13 @@
680680
description='''
681681
The name of the precedence group for the operator
682682
'''),
683+
Child('TrailingComma', kind='CommaToken',
684+
is_optional=True),
685+
Child('ProtocolName', kind='IdentifierToken',
686+
description='''
687+
The protocol associated with the operator
688+
''',
689+
is_optional=True),
683690
]),
684691

685692
# precedence-group-decl -> attributes? modifiers? 'precedencegroup'

0 commit comments

Comments
 (0)