Skip to content

Commit c319e85

Browse files
committed
Remove Modeling for Fully-Generic Primary Associated Type Syntax
Constraints in these positions were not accepted. Remove the modeling for them.
1 parent 35ff605 commit c319e85

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

utils/gyb_syntax_support/GenericNodes.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,11 @@
6767
Node('PrimaryAssociatedTypeList', kind='SyntaxCollection',
6868
element='PrimaryAssociatedType'),
6969

70-
# primary-associated-type -> type-name
71-
# | type-name (: type-identifier)? (= type)?
70+
# primary-associated-type -> type-name ','?
7271
Node('PrimaryAssociatedType', kind='Syntax',
7372
traits=['WithTrailingComma'],
7473
children=[
75-
Child('Attributes', kind='AttributeList',
76-
collection_element_name='Attribute', is_optional=True),
7774
Child('Name', kind='IdentifierToken'),
78-
Child('Colon', kind='ColonToken',
79-
is_optional=True),
80-
Child('InheritedType', kind='Type',
81-
is_optional=True),
82-
Child('Initializer', kind='TypeInitializerClause',
83-
is_optional=True),
8475
Child('TrailingComma', kind='CommaToken',
8576
is_optional=True),
8677
]),

0 commit comments

Comments
 (0)