inline dbg

This commit is contained in:
Folkert 2022-11-23 21:23:28 +01:00
parent dcb530d3af
commit e7f3c6f281
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
18 changed files with 192 additions and 21 deletions

View file

@ -611,6 +611,16 @@ fn deep_copy_expr_help<C: CopyEnv>(env: &mut C, copied: &mut Vec<Variable>, expr
lookups_in_cond: lookups_in_cond.to_vec(),
},
Dbg {
loc_condition,
loc_continuation,
variable,
} => Dbg {
loc_condition: Box::new(loc_condition.map(|e| go_help!(e))),
loc_continuation: Box::new(loc_continuation.map(|e| go_help!(e))),
variable: sub!(*variable),
},
TypedHole(v) => TypedHole(sub!(*v)),
RuntimeError(err) => RuntimeError(err.clone()),