Model var as a pattern operator (#4720)

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
Geoff Romer
2025-01-17 17:51:34 +00:00
committed by GitHub
co-authored by Richard Smith
parent 6572da7314
commit 13434f0e8a
510 changed files with 11819 additions and 3352 deletions
+2
View File
@@ -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: