summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/block_decomp_splat.txt
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-12-04 16:40:59 -0500
committerJemma Issroff <jemmaissroff@gmail.com>2023-12-06 09:55:48 -0500
commit018dbf18d50b34a3ea564bfe0264a423de4b33bb (patch)
tree366e75c39f9061d853830bb602276b1f893db1ce /test/prism/snapshots/seattlerb/block_decomp_splat.txt
parentda1519b223e1accfcef1c831f9fdc6421724ea7c (diff)
[ruby/prism] Add locals_body_index to DefNode, BlockNode, LambdaNode
The locals_body_index gives the index in the locals array where the locals from the body start. This allows compilers to easily index past the parameters in the locals array. https://github.com/ruby/prism/commit/5d4627b890
Diffstat (limited to 'test/prism/snapshots/seattlerb/block_decomp_splat.txt')
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_splat.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/block_decomp_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_splat.txt
index 4335b5f4ac..49e31bdd13 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_splat.txt
@@ -14,6 +14,7 @@
├── block:
│ @ BlockNode (location: (1,2)-(1,12))
│ ├── locals: [:a]
+ │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (1,4)-(1,10))
│ │ ├── parameters: