Skip to content

Commit 47713c5

Browse files
committed
Remove syntax nodes only used for the C++ parser's handling of keypaths
1 parent cdbdcba commit 47713c5

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

gyb_syntax_support/ExprNodes.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -682,24 +682,6 @@
682682
]),
683683
]),
684684

685-
# TODO: Remove this. It is only used by the C++ parser.
686-
Node('OldKeyPathExpr', name_for_diagnostics='key path', kind='Expr',
687-
children=[
688-
Child('Backslash', kind='BackslashToken'),
689-
Child('RootExpr', kind='Expr', name_for_diagnostics='root', is_optional=True,
690-
node_choices=[
691-
Child('IdentifierExpr', kind='IdentifierExpr'),
692-
Child('SpecializeExpr', kind='SpecializeExpr'),
693-
Child('OptionalChainingExpr', kind='OptionalChainingExpr')
694-
]),
695-
Child('Expression', kind='Expr', name_for_diagnostics='expression'),
696-
]),
697-
698-
# TODO: Remove this. It is only used by the C++ parser.
699-
Node('KeyPathBaseExpr', name_for_diagnostics=None, kind='Expr',
700-
children=[
701-
Child('Period', kind='PeriodToken')
702-
]),
703685
# e.g. "a." or "a"
704686
Node('ObjcNamePiece', name_for_diagnostics=None, kind='Syntax',
705687
children=[

0 commit comments

Comments
 (0)