mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
updated Stmt::Dbg
This commit is contained in:
parent
43259b9ad6
commit
36f90c05e2
2 changed files with 9 additions and 2 deletions
|
@ -677,10 +677,17 @@ fn insert_refcount_operations_stmt<'v, 'a>(
|
||||||
} => {
|
} => {
|
||||||
let new_remainder = insert_refcount_operations_stmt(arena, environment, remainder);
|
let new_remainder = insert_refcount_operations_stmt(arena, environment, remainder);
|
||||||
|
|
||||||
|
let newer_remainder = consume_and_insert_dec_stmts(
|
||||||
|
arena,
|
||||||
|
environment,
|
||||||
|
environment.borrowed_usages([*symbol]),
|
||||||
|
new_remainder,
|
||||||
|
);
|
||||||
|
|
||||||
arena.alloc(Stmt::Dbg {
|
arena.alloc(Stmt::Dbg {
|
||||||
symbol: *symbol,
|
symbol: *symbol,
|
||||||
variable: *variable,
|
variable: *variable,
|
||||||
remainder: new_remainder,
|
remainder: newer_remainder,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Stmt::Join {
|
Stmt::Join {
|
||||||
|
|
|
@ -4,8 +4,8 @@ procedure Bool.2 ():
|
||||||
|
|
||||||
procedure Test.1 ():
|
procedure Test.1 ():
|
||||||
let Test.0 : Str = "";
|
let Test.0 : Str = "";
|
||||||
dec Test.0;
|
|
||||||
dbg Test.0;
|
dbg Test.0;
|
||||||
|
dec Test.0;
|
||||||
let Test.3 : Int1 = CallByName Bool.2;
|
let Test.3 : Int1 = CallByName Bool.2;
|
||||||
expect Test.3;
|
expect Test.3;
|
||||||
let Test.2 : {} = Struct {};
|
let Test.2 : {} = Struct {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue