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

@ -657,7 +657,6 @@ impl IterTokens for Loc<Expr<'_>> {
Expr::Record(rcd) => rcd.iter_tokens(arena),
Expr::Tuple(tup) => tup.iter_tokens(arena),
Expr::RecordBuilder(rb) => rb.iter_tokens(arena),
Expr::IngestedFile(_path, ty) => ty.iter_tokens(arena),
Expr::Var { .. } => onetoken(Token::Variable, region, arena),
Expr::Underscore(_) => onetoken(Token::Variable, region, arena),
Expr::Crash => onetoken(Token::Keyword, region, arena),