Merge pull request #4993 from joshuawarner32/tuple-gen-tuple-backend-experiment

Implement mono / code generation for tuples
This commit is contained in:
Ayaz 2023-02-08 10:42:51 -05:00 committed by GitHub
commit 9340a67e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 1773 additions and 290 deletions

View file

@ -1890,9 +1890,8 @@ fn expr_to_pattern_help<'a>(arena: &'a Bump, expr: &Expr<'a>) -> Result<Pattern<
is_negative,
},
// These would not have parsed as patterns
Expr::RecordAccessorFunction(_)
Expr::AccessorFunction(_)
| Expr::RecordAccess(_, _)
| Expr::TupleAccessorFunction(_)
| Expr::TupleAccess(_, _)
| Expr::List { .. }
| Expr::Closure(_, _)
@ -2488,8 +2487,7 @@ fn ident_to_expr<'a>(arena: &'a Bump, src: Ident<'a>) -> Expr<'a> {
answer
}
Ident::RecordAccessorFunction(string) => Expr::RecordAccessorFunction(string),
Ident::TupleAccessorFunction(string) => Expr::TupleAccessorFunction(string),
Ident::AccessorFunction(string) => Expr::AccessorFunction(string),
Ident::Malformed(string, problem) => Expr::MalformedIdent(string, problem),
}
}