From fbeb8f2c784806e206904887c19c392b9df0bd6e Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Fri, 5 Apr 2024 15:14:25 -0400 Subject: [PATCH] [ruby/prism] Set up location correctly for hashed locals https://github.com/ruby/prism/commit/0334140790 --- prism/prism.c | 1 + 1 file changed, 1 insertion(+) diff --git a/prism/prism.c b/prism/prism.c index d47cf204a7..086716e92b 100644 --- a/prism/prism.c +++ b/prism/prism.c @@ -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