[Syntax] Update DeclNodes.py for designated protocols parsing support.

This commit is contained in:
Mark Lacey
2018-09-15 00:21:14 -07:00
parent aeee1a8bc1
commit a148b21730

View File

@@ -680,6 +680,13 @@ DECL_NODES = [
description='''
The name of the precedence group for the operator
'''),
Child('TrailingComma', kind='CommaToken',
is_optional=True),
Child('ProtocolName', kind='IdentifierToken',
description='''
The protocol associated with the operator
''',
is_optional=True),
]),
# precedence-group-decl -> attributes? modifiers? 'precedencegroup'