mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Inline remaining missing canonicalization branches
This commit is contained in:
parent
7df31739a7
commit
adb5ba7f5e
1 changed files with 12 additions and 1 deletions
|
@ -743,7 +743,18 @@ fn canonicalize<'a>(
|
|||
ast::Expr::SpaceAfter(sub_expr, _spaces) => {
|
||||
return canonicalize(env, scope, region, sub_expr);
|
||||
}
|
||||
_ => {
|
||||
ast::Expr::BlockStr(_)
|
||||
| ast::Expr::Field(_, _)
|
||||
| ast::Expr::QualifiedField(_, _)
|
||||
| ast::Expr::AccessorFunction(_)
|
||||
| ast::Expr::If(_)
|
||||
| ast::Expr::Then(_)
|
||||
| ast::Expr::Else(_)
|
||||
| ast::Expr::Case(_)
|
||||
| ast::Expr::When(_)
|
||||
| ast::Expr::Variant(_, _)
|
||||
| ast::Expr::MalformedIdent(_)
|
||||
| ast::Expr::AssignField(_, _) => {
|
||||
panic!(
|
||||
"TODO restore the rest of canonicalize()'s branches {:?}",
|
||||
local_successors(&References::new(), &MutMap::default())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue