mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:14:43 +01:00
Model var as a pattern operator (#4720)
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
co-authored by
Richard Smith
parent
6572da7314
commit
13434f0e8a
@@ -189,6 +189,7 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
|
||||
case FieldDecl::Kind:
|
||||
case FunctionDecl::Kind:
|
||||
case ImplDecl::Kind:
|
||||
case NameBindingDecl::Kind:
|
||||
case Namespace::Kind:
|
||||
case OutParamPattern::Kind:
|
||||
case RequirementEquivalent::Kind:
|
||||
@@ -198,6 +199,7 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
|
||||
case ReturnSlotPattern::Kind:
|
||||
case Vtable::Kind:
|
||||
case ReturnExpr::Kind:
|
||||
case VarPattern::Kind:
|
||||
return ExprCategory::NotExpr;
|
||||
|
||||
case ImportRefUnloaded::Kind:
|
||||
|
||||
Reference in New Issue
Block a user