diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2023-10-05 20:41:41 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-10-06 12:21:03 +0000 |
| commit | 7db4ce13ed051bc422c5db594bb41edbaeb1ae35 (patch) | |
| tree | beeea6a29e4a88fd696ef1ea106df57c872ce680 /include | |
| parent | 723318f5d7a6475f69fc0d095a4149547b6050a3 (diff) | |
[ruby/prism] Introduce transparent scopes.
A transparent scope is a scope that cannot have local variables added to
it's local table. When a local is added to it's table, it instead gets
added to the first non-transparent parent scope.
This is used in for loops to ensure the correct depth for local
variables inside the body
https://github.com/ruby/prism/commit/ddb8e82253
Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
