mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
misc cleanup suggestions
This commit is contained in:
parent
b62c9667d5
commit
1f14aa84a2
4 changed files with 31 additions and 49 deletions
|
@ -461,6 +461,8 @@ pub fn desugar_expr<'a>(arena: &'a Bump, loc_expr: &'a Loc<Expr<'a>>) -> &'a Loc
|
|||
})
|
||||
}
|
||||
Dbg(condition, continuation) => {
|
||||
// Desugars a `dbg x` statement into
|
||||
// `roc_dbg (Inspect.toDbgStr (Inspect.inspect x))`
|
||||
let desugared_continuation = &*arena.alloc(desugar_expr(arena, continuation));
|
||||
|
||||
let region = condition.region;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue