add update mode to reset and reuse

This commit is contained in:
Folkert 2021-11-28 14:13:02 +01:00
parent 1241d5ccbd
commit 0bdda2506c
8 changed files with 40 additions and 21 deletions

View file

@ -757,8 +757,8 @@ where
self.set_last_seen(*sym, stmt, &owning_symbol);
}
}
Expr::Reset(sym) => {
self.set_last_seen(*sym, stmt, &owning_symbol);
Expr::Reset { symbol, .. } => {
self.set_last_seen(*symbol, stmt, &owning_symbol);
}
Expr::EmptyArray => {}
Expr::RuntimeErrorFunction(_) => {}