diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2024-01-08 13:31:29 +0000 |
|---|---|---|
| committer | Matt Valentine-House <matt@eightbitraptor.com> | 2024-01-08 19:55:26 +0000 |
| commit | 47ff4a165802236ae951c39fda1adf2887ad75b1 (patch) | |
| tree | 189b61d4e31cacfb926d945a2f36f0be101c3579 /include/ruby/internal/variable.h | |
| parent | 94a98ce632eec8faba16355676d9d56313d6b381 (diff) | |
[PRISM] Blocks should track the found local depth
Rather than rely purely on local depth offset. This is because we can't
assume a specific depth offset for all variable accesses happening
within a block in the same way that we can for rescue/ensure/for or
other nodes that push scopes.
This is because block parameters are defined in the scope level, so we
always need to start from the top most scope and walk backwards.
Fixes ruby/prism@2053
Diffstat (limited to 'include/ruby/internal/variable.h')
0 files changed, 0 insertions, 0 deletions
