about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-03T00·40+0300
committertazjin <tazjin@tvl.su>2022-09-08T19·54+0000
commit0af1df4be2a7dd660cb9370b0bbf97f4fb7ab150 (patch)
tree836d3526a3e4c3701d8f0ee9596738adfeb785b7 /default.nix
parent23f248b530bedc556123033519514e03b1a8278f (diff)
refactor(tvix/eval): clean up logic in Compiler::end_scope r/4760
The condition here was extremely hard to read prior to this change.

As the locals vector is now guaranteed to never be empty (there is
always at least a phantom for the current chunk's root expression),
the logic here can be simplified to just dropping tailing locals
entries while their depth matches that of the scope being closed.

Change-Id: I24973e23bc2ad25e62ece64ab4d8624e6e274c16
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6427
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'default.nix')
0 files changed, 0 insertions, 0 deletions