mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
add basic Dbg desugaring and LowLevelDbg
This commit is contained in:
parent
3f276b6018
commit
b7f72eff86
12 changed files with 84 additions and 30 deletions
|
@ -741,7 +741,7 @@ pub fn constrain_expr(
|
|||
}
|
||||
|
||||
Dbg {
|
||||
loc_condition,
|
||||
loc_message,
|
||||
loc_continuation,
|
||||
variable,
|
||||
symbol: _,
|
||||
|
@ -749,12 +749,12 @@ pub fn constrain_expr(
|
|||
let dbg_type = constraints.push_variable(*variable);
|
||||
let expected_dbg = constraints.push_expected_type(Expected::NoExpectation(dbg_type));
|
||||
|
||||
let cond_con = constrain_expr(
|
||||
let message_con = constrain_expr(
|
||||
types,
|
||||
constraints,
|
||||
env,
|
||||
loc_condition.region,
|
||||
&loc_condition.value,
|
||||
loc_message.region,
|
||||
&loc_message.value,
|
||||
expected_dbg,
|
||||
);
|
||||
|
||||
|
@ -767,7 +767,7 @@ pub fn constrain_expr(
|
|||
expected,
|
||||
);
|
||||
|
||||
constraints.exists_many([*variable], [cond_con, continuation_con])
|
||||
constraints.exists_many([*variable], [message_con, continuation_con])
|
||||
}
|
||||
|
||||
If {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue