Canonicalize ingested files directly instead of creating AST nodes

This commit is contained in:
Agus Zubiaga 2024-04-23 18:55:41 -03:00
parent a832de79d7
commit 7efc7a4a3e
No known key found for this signature in database
11 changed files with 146 additions and 121 deletions

View file

@ -2362,8 +2362,7 @@ fn expr_to_pattern_help<'a>(arena: &'a Bump, expr: &Expr<'a>) -> Result<Pattern<
is_negative,
},
// These would not have parsed as patterns
Expr::IngestedFile(_, _)
| Expr::AccessorFunction(_)
Expr::AccessorFunction(_)
| Expr::RecordAccess(_, _)
| Expr::TupleAccess(_, _)
| Expr::List { .. }