Support tuple patterns outside parameter lists (#4923)

Parameter lists need substantially different treatment than tuple
patterns in other contexts, so this change splits them into separate
parse node kinds.

---------

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
Geoff RomerandJon Ross-Perkins authored and GitHub committed 2025-02-20 03:17:45 +00:00
1 parent 35f5a7f115
commit 74e1a9949f
201 files changed
+1680 -860

No files matched your search

+2
View File
@@ -152,6 +152,8 @@ CARBON_PARSE_NODE_KIND(TuplePatternStart)
CARBON_PARSE_NODE_KIND(PatternListComma)
CARBON_PARSE_NODE_KIND(TuplePattern)
CARBON_PARSE_NODE_KIND(ExplicitParamListStart)
CARBON_PARSE_NODE_KIND(ExplicitParamList)
CARBON_PARSE_NODE_KIND(ImplicitParamListStart)
CARBON_PARSE_NODE_KIND(ImplicitParamList)