[ruby/prism] Set up location correctly for hashed locals
https://github.com/ruby/prism/commit/0334140790
This commit is contained in:
parent
1953ead74e
commit
fbeb8f2c78
@ -905,6 +905,7 @@ pm_locals_write(pm_locals_t *locals, pm_constant_id_t name, const uint8_t *start
|
||||
if (local->name == PM_CONSTANT_ID_UNSET) {
|
||||
*local = (pm_local_t) {
|
||||
.name = name,
|
||||
.location = { .start = start, .end = end },
|
||||
.index = locals->size++,
|
||||
.reads = reads,
|
||||
.hash = initial_hash
|
||||
|
Loading…
x
Reference in New Issue
Block a user