Skip to content

Commit 3397fe4

Browse files
committed
Add text_choices for isolated and _const token in FunctionParameter
This would have caught a misparsing issue that I’m fixing in the old libSyntax parser.
1 parent 6068fc4 commit 3397fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gyb_syntax_support/DeclNodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@
377377
children=[
378378
Child('Attributes', kind='AttributeList', name_for_diagnostics='attributes',
379379
collection_element_name='Attribute', is_optional=True),
380-
Child('IsolatedToken', kind='Token',
380+
Child('IsolatedToken', kind='IdentifierToken', text_choices=['isolated'],
381381
is_optional=True),
382-
Child('ConstToken', kind='Token',
382+
Child('ConstToken', kind='IdentifierToken', text_choices=['_const'],
383383
is_optional=True),
384384
Child('FirstName', kind='Token', name_for_diagnostics='name',
385385
token_choices=[

0 commit comments

Comments
 (0)