misc cleanup suggestions

This commit is contained in:
Brendan Hansknecht 2023-11-29 21:05:56 -08:00
parent b62c9667d5
commit 1f14aa84a2
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
4 changed files with 31 additions and 49 deletions

View file

@ -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;