mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
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:
co-authored by
Jon Ross-Perkins
parent
35f5a7f115
commit
74e1a9949f
@@ -197,9 +197,10 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
|
||||
case RequirementRewrite::Kind:
|
||||
case Return::Kind:
|
||||
case ReturnSlotPattern::Kind:
|
||||
case Vtable::Kind:
|
||||
case ReturnExpr::Kind:
|
||||
case TuplePattern::Kind:
|
||||
case VarPattern::Kind:
|
||||
case Vtable::Kind:
|
||||
return ExprCategory::NotExpr;
|
||||
|
||||
case ImportRefUnloaded::Kind:
|
||||
|
||||
Reference in New Issue
Block a user