mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
cleanup
This commit is contained in:
parent
b8ec53738a
commit
5ae188c08f
3 changed files with 19 additions and 84 deletions
|
@ -886,30 +886,6 @@ pub fn desugar_expr<'a>(
|
|||
})
|
||||
}
|
||||
LowLevelDbg(_, _, _) => unreachable!("Only exists after desugaring"),
|
||||
// Suffixed(expr) => {
|
||||
// // Rewrite `Suffixed(BinOps([args...], Var(...)))` to `BinOps([args...], Suffixed(Var(...)))`
|
||||
// // This is to handle cases like e.g. `"Hello" |> line!`
|
||||
// if let BinOps(args, sub_expr) = expr {
|
||||
// return desugar_expr(
|
||||
// arena,
|
||||
// arena.alloc(Loc::at(
|
||||
// loc_expr.region,
|
||||
// BinOps(
|
||||
// args,
|
||||
// arena.alloc(Loc::at(sub_expr.region, Suffixed(&sub_expr.value))),
|
||||
// ),
|
||||
// )),
|
||||
// src,
|
||||
// line_info,
|
||||
// module_path,
|
||||
// );
|
||||
// }
|
||||
|
||||
// // Suffixed are also desugared in Defs
|
||||
// // Any nodes that don't get desugared will be caught by canonicalize_expr
|
||||
// // and we can handle those cases as required
|
||||
// loc_expr
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue