summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-02-01 11:43:56 -0500
committergit <svn-admin@ruby-lang.org>2024-02-01 16:48:55 +0000
commit494778c66340be109f4d3bc4e51e57da967e7027 (patch)
tree8d5b2103982f3e29fb6a3bdfa510c93c57b35606
parent67c5690a6d29e861fcb8522dc4213f9d26d3aab6 (diff)
[ruby/prism] Remove locals_body_index
We're not using this anymore, and it doesn't make a lot of sense outside the context of a compiler anyway, and in anyway it's wrong when you have local variables written in default values. https://github.com/ruby/prism/commit/5edbd9c25b
-rw-r--r--prism/config.yml6
-rw-r--r--prism/prism.c28
-rw-r--r--test/prism/errors_test.rb25
-rw-r--r--test/prism/snapshots/arrays.txt9
-rw-r--r--test/prism/snapshots/begin_ensure.txt2
-rw-r--r--test/prism/snapshots/blocks.txt21
-rw-r--r--test/prism/snapshots/break.txt2
-rw-r--r--test/prism/snapshots/case.txt1
-rw-r--r--test/prism/snapshots/command_method_call.txt1
-rw-r--r--test/prism/snapshots/endless_methods.txt3
-rw-r--r--test/prism/snapshots/hashes.txt1
-rw-r--r--test/prism/snapshots/if.txt3
-rw-r--r--test/prism/snapshots/indented_file_end.txt1
-rw-r--r--test/prism/snapshots/keyword_method_names.txt9
-rw-r--r--test/prism/snapshots/lambda.txt5
-rw-r--r--test/prism/snapshots/method_calls.txt23
-rw-r--r--test/prism/snapshots/methods.txt66
-rw-r--r--test/prism/snapshots/non_alphanumeric_methods.txt35
-rw-r--r--test/prism/snapshots/patterns.txt8
-rw-r--r--test/prism/snapshots/procs.txt11
-rw-r--r--test/prism/snapshots/regex.txt1
-rw-r--r--test/prism/snapshots/repeat_parameters.txt13
-rw-r--r--test/prism/snapshots/rescue.txt3
-rw-r--r--test/prism/snapshots/seattlerb/TestRubyParserShared.txt2
-rw-r--r--test/prism/snapshots/seattlerb/args_kw_block.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg__bare.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_kwsplat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_opt_splat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_optional.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_scope.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_scope2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_splat_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_args_kwargs.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_args_no_kwargs.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt2_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt3.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_break.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt2
-rw-r--r--test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt2
-rw-r--r--test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt2
-rw-r--r--test/prism/snapshots/seattlerb/block_call_operation_colon.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_call_operation_dot.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_command_operation_colon.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_command_operation_dot.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_splat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_kw.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_kw__required.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_kwarg_lvar.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_next.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_opt_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_opt_splat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_optarg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_paren_splat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_reg_optarg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_return.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_scope.txt1
-rw-r--r--test/prism/snapshots/seattlerb/block_splat_reg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/bug169.txt1
-rw-r--r--test/prism/snapshots/seattlerb/bug236.txt2
-rw-r--r--test/prism/snapshots/seattlerb/bug_187.txt2
-rw-r--r--test/prism/snapshots/seattlerb/bug_249.txt2
-rw-r--r--test/prism/snapshots/seattlerb/bug_args__19.txt1
-rw-r--r--test/prism/snapshots/seattlerb/bug_args_masgn.txt1
-rw-r--r--test/prism/snapshots/seattlerb/bug_args_masgn2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt1
-rw-r--r--test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt2
-rw-r--r--test/prism/snapshots/seattlerb/bug_masgn_right.txt1
-rw-r--r--test/prism/snapshots/seattlerb/call_array_block_call.txt1
-rw-r--r--test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt2
-rw-r--r--test/prism/snapshots/seattlerb/call_begin_call_block_call.txt1
-rw-r--r--test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt2
-rw-r--r--test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt2
-rw-r--r--test/prism/snapshots/seattlerb/case_in.txt1
-rw-r--r--test/prism/snapshots/seattlerb/class_comments.txt1
-rw-r--r--test/prism/snapshots/seattlerb/dasgn_icky2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_arg_forward_args.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_args_forward_args.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_comments.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_endless_command.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_forward_args.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_env.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_val.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_no_kwargs.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_oneliner.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_opt_last_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_opt_reg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_powarg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_splat_arg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defn_unary_not.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defns_reserved.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt2
-rw-r--r--test/prism/snapshots/seattlerb/defs_comments.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_endless_command.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_kwarg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_oneliner.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_3.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_5.txt2
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__10.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__11.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__12.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__6.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__7.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__8.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__9.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult6_.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult6__7.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult6__8.txt1
-rw-r--r--test/prism/snapshots/seattlerb/difficult7_.txt1
-rw-r--r--test/prism/snapshots/seattlerb/do_bug.txt1
-rw-r--r--test/prism/snapshots/seattlerb/do_lambda.txt1
-rw-r--r--test/prism/snapshots/seattlerb/f_kw.txt1
-rw-r--r--test/prism/snapshots/seattlerb/f_kw__required.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_10_1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_10_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_11_1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_11_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_2__19.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_3.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_4.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_5.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_6.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_7_1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_7_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_8_1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_8_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_9_1.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_9_2.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_kwarg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt1
-rw-r--r--test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt4
-rw-r--r--test/prism/snapshots/seattlerb/magic_encoding_comment.txt1
-rw-r--r--test/prism/snapshots/seattlerb/module_comments.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_def_special_name.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_call_no_args.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_defn_complex.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt2
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt1
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_return.txt1
-rw-r--r--test/prism/snapshots/seattlerb/pipe_semicolon.txt1
-rw-r--r--test/prism/snapshots/seattlerb/pipe_space.txt1
-rw-r--r--test/prism/snapshots/seattlerb/required_kwarg_no_value.txt1
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt1
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt1
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_raised.txt1
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt1
-rw-r--r--test/prism/snapshots/seattlerb/rescue_in_block.txt1
-rw-r--r--test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt1
-rw-r--r--test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt1
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_iter_call.txt2
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt2
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_kw.txt1
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_kw__required.txt1
-rw-r--r--test/prism/snapshots/seattlerb/stabby_proc_scope.txt1
-rw-r--r--test/prism/snapshots/super.txt2
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/block.txt30
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/class.txt1
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/def.txt30
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/defs.txt11
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/dstr.txt1
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/if.txt1
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/lambda.txt6
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/literal.txt1
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/module.txt1
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/send.txt4
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/27.txt1
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/31.txt2
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/32.txt2
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/super.txt5
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/while.txt6
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/block.txt6
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/def.txt2
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/while.txt4
-rw-r--r--test/prism/snapshots/while.txt7
-rw-r--r--test/prism/snapshots/whitequark/anonymous_blockarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/arg.txt2
-rw-r--r--test/prism/snapshots/whitequark/arg_duplicate_ignored.txt2
-rw-r--r--test/prism/snapshots/whitequark/arg_label.txt3
-rw-r--r--test/prism/snapshots/whitequark/arg_scope.txt1
-rw-r--r--test/prism/snapshots/whitequark/args.txt31
-rw-r--r--test/prism/snapshots/whitequark/begin_cmdarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/blockarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/blockargs.txt35
-rw-r--r--test/prism/snapshots/whitequark/break_block.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_435.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_447.txt2
-rw-r--r--test/prism/snapshots/whitequark/bug_452.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_466.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_481.txt2
-rw-r--r--test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_cmdarg.txt2
-rw-r--r--test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt2
-rw-r--r--test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt11
-rw-r--r--test/prism/snapshots/whitequark/bug_heredoc_do.txt1
-rw-r--r--test/prism/snapshots/whitequark/bug_lambda_leakage.txt1
-rw-r--r--test/prism/snapshots/whitequark/class_definition_in_while_cond.txt4
-rw-r--r--test/prism/snapshots/whitequark/const_op_asgn.txt2
-rw-r--r--test/prism/snapshots/whitequark/def.txt6
-rw-r--r--test/prism/snapshots/whitequark/defs.txt5
-rw-r--r--test/prism/snapshots/whitequark/endless_comparison_method.txt6
-rw-r--r--test/prism/snapshots/whitequark/endless_method.txt4
-rw-r--r--test/prism/snapshots/whitequark/endless_method_command_syntax.txt8
-rw-r--r--test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt1
-rw-r--r--test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt2
-rw-r--r--test/prism/snapshots/whitequark/endless_method_without_args.txt4
-rw-r--r--test/prism/snapshots/whitequark/forward_arg.txt1
-rw-r--r--test/prism/snapshots/whitequark/forward_arg_with_open_args.txt10
-rw-r--r--test/prism/snapshots/whitequark/forward_args_legacy.txt3
-rw-r--r--test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/forwarded_kwrestarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/forwarded_restarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/kwarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/kwnilarg.txt3
-rw-r--r--test/prism/snapshots/whitequark/kwoptarg.txt1
-rw-r--r--test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt1
-rw-r--r--test/prism/snapshots/whitequark/kwrestarg_named.txt1
-rw-r--r--test/prism/snapshots/whitequark/kwrestarg_unnamed.txt1
-rw-r--r--test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt2
-rw-r--r--test/prism/snapshots/whitequark/method_definition_in_while_cond.txt8
-rw-r--r--test/prism/snapshots/whitequark/next_block.txt1
-rw-r--r--test/prism/snapshots/whitequark/numbered_args_after_27.txt4
-rw-r--r--test/prism/snapshots/whitequark/numparam_outside_block.txt1
-rw-r--r--test/prism/snapshots/whitequark/optarg.txt2
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_272.txt1
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_490.txt3
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_507.txt1
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_525.txt2
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_604.txt1
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_645.txt1
-rw-r--r--test/prism/snapshots/whitequark/procarg0.txt2
-rw-r--r--test/prism/snapshots/whitequark/rescue_in_lambda_block.txt1
-rw-r--r--test/prism/snapshots/whitequark/rescue_without_begin_end.txt1
-rw-r--r--test/prism/snapshots/whitequark/restarg_named.txt1
-rw-r--r--test/prism/snapshots/whitequark/restarg_unnamed.txt1
-rw-r--r--test/prism/snapshots/whitequark/return_block.txt1
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_10653.txt5
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11107.txt2
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11380.txt2
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873.txt18
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873_a.txt30
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873_b.txt2
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_12073.txt1
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_13547.txt1
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_14690.txt2
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_15789.txt4
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_9669.txt1
-rw-r--r--test/prism/snapshots/whitequark/send_block_chain_cmd.txt10
-rw-r--r--test/prism/snapshots/whitequark/send_block_conditional.txt1
-rw-r--r--test/prism/snapshots/whitequark/send_lambda.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args.txt2
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args_noparen.txt2
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args_shadow.txt1
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_legacy.txt1
-rw-r--r--test/prism/snapshots/whitequark/send_self_block.txt4
-rw-r--r--test/prism/snapshots/whitequark/space_args_arg_block.txt3
-rw-r--r--test/prism/snapshots/whitequark/space_args_block.txt1
-rw-r--r--test/prism/snapshots/whitequark/super_block.txt2
-rw-r--r--test/prism/snapshots/whitequark/trailing_forward_arg.txt1
-rw-r--r--test/prism/snapshots/whitequark/var_op_asgn.txt1
294 files changed, 3 insertions, 890 deletions
diff --git a/prism/config.yml b/prism/config.yml
index 2a4c2cd951..d5451f295e 100644
--- a/prism/config.yml
+++ b/prism/config.yml
@@ -690,8 +690,6 @@ nodes:
fields:
- name: locals
type: constant[]
- - name: locals_body_index
- type: uint32
- name: parameters
type: node?
- name: body
@@ -1260,8 +1258,6 @@ nodes:
type: node?
- name: locals
type: constant[]
- - name: locals_body_index
- type: uint32
- name: def_keyword_loc
type: location
- name: operator_loc
@@ -1985,8 +1981,6 @@ nodes:
fields:
- name: locals
type: constant[]
- - name: locals_body_index
- type: uint32
- name: operator_loc
type: location
- name: opening_loc
diff --git a/prism/prism.c b/prism/prism.c
index 2f54e9ee93..9cc983ba34 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -1521,7 +1521,7 @@ pm_block_argument_node_create(pm_parser_t *parser, const pm_token_t *operator, p
* Allocate and initialize a new BlockNode node.
*/
static pm_block_node_t *
-pm_block_node_create(pm_parser_t *parser, pm_constant_id_list_t *locals, uint32_t locals_body_index, const pm_token_t *opening, pm_node_t *parameters, pm_node_t *body, const pm_token_t *closing) {
+pm_block_node_create(pm_parser_t *parser, pm_constant_id_list_t *locals, const pm_token_t *opening, pm_node_t *parameters, pm_node_t *body, const pm_token_t *closing) {
pm_block_node_t *node = PM_ALLOC_NODE(parser, pm_block_node_t);
*node = (pm_block_node_t) {
@@ -1530,7 +1530,6 @@ pm_block_node_create(pm_parser_t *parser, pm_constant_id_list_t *locals, uint32_
.location = { .start = opening->start, .end = closing->end },
},
.locals = *locals,
- .locals_body_index = locals_body_index,
.parameters = parameters,
.body = body,
.opening_loc = PM_LOCATION_TOKEN_VALUE(opening),
@@ -2793,7 +2792,6 @@ pm_def_node_create(
pm_parameters_node_t *parameters,
pm_node_t *body,
pm_constant_id_list_t *locals,
- uint32_t locals_body_index,
const pm_token_t *def_keyword,
const pm_token_t *operator,
const pm_token_t *lparen,
@@ -2825,7 +2823,6 @@ pm_def_node_create(
.parameters = parameters,
.body = body,
.locals = *locals,
- .locals_body_index = locals_body_index,
.def_keyword_loc = PM_LOCATION_TOKEN_VALUE(def_keyword),
.operator_loc = PM_OPTIONAL_LOCATION_TOKEN_VALUE(operator),
.lparen_loc = PM_OPTIONAL_LOCATION_TOKEN_VALUE(lparen),
@@ -4135,7 +4132,6 @@ static pm_lambda_node_t *
pm_lambda_node_create(
pm_parser_t *parser,
pm_constant_id_list_t *locals,
- uint32_t locals_body_index,
const pm_token_t *operator,
const pm_token_t *opening,
const pm_token_t *closing,
@@ -4153,7 +4149,6 @@ pm_lambda_node_create(
},
},
.locals = *locals,
- .locals_body_index = locals_body_index,
.operator_loc = PM_LOCATION_TOKEN_VALUE(operator),
.opening_loc = PM_LOCATION_TOKEN_VALUE(opening),
.closing_loc = PM_LOCATION_TOKEN_VALUE(closing),
@@ -12422,12 +12417,6 @@ parse_block(pm_parser_t *parser) {
pm_block_parameters_node_closing_set(block_parameters, &parser->previous);
}
- uint32_t locals_body_index = 0;
-
- if (block_parameters) {
- locals_body_index = (uint32_t) parser->current_scope->locals.size;
- }
-
accept1(parser, PM_TOKEN_NEWLINE);
pm_node_t *statements = NULL;
@@ -12459,7 +12448,6 @@ parse_block(pm_parser_t *parser) {
if (parameters == NULL && (maximum > 0)) {
parameters = (pm_node_t *) pm_numbered_parameters_node_create(parser, &(pm_location_t) { .start = opening.start, .end = parser->previous.end }, maximum);
- locals_body_index = maximum;
}
pm_constant_id_list_t locals = parser->current_scope->locals;
@@ -12467,7 +12455,7 @@ parse_block(pm_parser_t *parser) {
pm_accepts_block_stack_pop(parser);
pm_parser_current_param_name_restore(parser, saved_param_name);
- return pm_block_node_create(parser, &locals, locals_body_index, &opening, parameters, statements, &parser->previous);
+ return pm_block_node_create(parser, &locals, &opening, parameters, statements, &parser->previous);
}
/**
@@ -15521,8 +15509,6 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
}
}
- uint32_t locals_body_index = (uint32_t) parser->current_scope->locals.size;
-
context_pop(parser);
pm_node_t *statements = NULL;
pm_token_t equal;
@@ -15601,7 +15587,6 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
params,
statements,
&locals,
- locals_body_index,
&def_keyword,
&operator,
&lparen,
@@ -16544,12 +16529,6 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
}
}
- uint32_t locals_body_index = 0;
-
- if (block_parameters) {
- locals_body_index = (uint32_t) parser->current_scope->locals.size;
- }
-
pm_token_t opening;
pm_node_t *body = NULL;
parser->lambda_enclosure_nesting = previous_lambda_enclosure_nesting;
@@ -16584,7 +16563,6 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
if (parameters == NULL && (maximum > 0)) {
parameters = (pm_node_t *) pm_numbered_parameters_node_create(parser, &(pm_location_t) { .start = operator.start, .end = parser->previous.end }, maximum);
- locals_body_index = maximum;
}
pm_constant_id_list_t locals = parser->current_scope->locals;
@@ -16593,7 +16571,7 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
pm_accepts_block_stack_pop(parser);
pm_parser_current_param_name_restore(parser, saved_param_name);
- return (pm_node_t *) pm_lambda_node_create(parser, &locals, locals_body_index, &operator, &opening, &parser->previous, parameters, body);
+ return (pm_node_t *) pm_lambda_node_create(parser, &locals, &operator, &opening, &parser->previous, parameters, body);
}
case PM_TOKEN_UPLUS: {
parser_lex(parser);
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb
index c65fff5167..ea5ecb7cce 100644
--- a/test/prism/errors_test.rb
+++ b/test/prism/errors_test.rb
@@ -443,7 +443,6 @@ module Prism
nil,
StatementsNode([ModuleNode([], Location(), ConstantReadNode(:A), nil, Location(), :A)]),
[],
- 0,
Location(),
nil,
nil,
@@ -475,7 +474,6 @@ module Prism
nil,
BlockNode(
[],
- 0,
nil,
StatementsNode([ModuleNode([], Location(), ConstantReadNode(:Foo), nil, Location(), :Foo)]),
Location(),
@@ -484,7 +482,6 @@ module Prism
)]
),
[],
- 0,
Location(),
nil,
nil,
@@ -535,7 +532,6 @@ module Prism
)]
),
[],
- 0,
Location(),
nil,
nil,
@@ -576,7 +572,6 @@ module Prism
], [], nil, [], [], nil, nil),
nil,
[:A, :@a, :$A, :@@a],
- 4,
Location(),
nil,
Location(),
@@ -648,7 +643,6 @@ module Prism
),
nil,
[:a, :b, :c],
- 3,
Location(),
nil,
Location(),
@@ -665,7 +659,6 @@ module Prism
def test_do_not_allow_trailing_commas_in_lambda_parameters
expected = LambdaNode(
[:a, :b],
- 2,
Location(),
Location(),
Location(),
@@ -734,7 +727,6 @@ module Prism
),
nil,
[:block, :a],
- 2,
Location(),
nil,
Location(),
@@ -755,7 +747,6 @@ module Prism
ParametersNode([], [], nil, [RequiredParameterNode(0, :a)], [], nil, BlockParameterNode(0, nil, nil, Location())),
nil,
[:a],
- 1,
Location(),
nil,
Location(),
@@ -785,7 +776,6 @@ module Prism
),
nil,
[:a],
- 1,
Location(),
nil,
Location(),
@@ -814,7 +804,6 @@ module Prism
),
nil,
[:b, :a],
- 2,
Location(),
nil,
Location(),
@@ -843,7 +832,6 @@ module Prism
),
nil,
[:rest, :b],
- 2,
Location(),
nil,
Location(),
@@ -865,7 +853,6 @@ module Prism
ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil),
nil,
[],
- 0,
Location(),
nil,
Location(),
@@ -895,7 +882,6 @@ module Prism
),
nil,
[:args, :a, :b],
- 3,
Location(),
nil,
Location(),
@@ -926,7 +912,6 @@ module Prism
),
nil,
[:args, :a, :b],
- 3,
Location(),
nil,
Location(),
@@ -957,7 +942,6 @@ module Prism
),
nil,
[:args, :a, :b],
- 3,
Location(),
nil,
Location(),
@@ -991,7 +975,6 @@ module Prism
),
nil,
[:a, :b, :c, :d, :e],
- 5,
Location(),
nil,
Location(),
@@ -1041,7 +1024,6 @@ module Prism
nil,
StatementsNode([IntegerNode(IntegerBaseFlags::DECIMAL)]),
[],
- 0,
Location(),
nil,
Location(),
@@ -1058,7 +1040,6 @@ module Prism
def test_do_not_allow_forward_arguments_in_lambda_literals
expected = LambdaNode(
[],
- 0,
Location(),
Location(),
Location(),
@@ -1083,7 +1064,6 @@ module Prism
nil,
BlockNode(
[],
- 0,
BlockParametersNode(ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil), [], Location(), Location()),
nil,
Location(),
@@ -1158,7 +1138,6 @@ module Prism
ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b), RequiredParameterNode(ParameterFlags::REPEATED_PARAMETER, :a)], [], nil, [], [], nil, nil),
nil,
[:a, :b],
- 2,
Location(),
nil,
Location(),
@@ -1179,7 +1158,6 @@ module Prism
ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b)], [], RestParameterNode(ParameterFlags::REPEATED_PARAMETER, :a, Location(), Location()), [], [], nil, nil),
nil,
[:a, :b],
- 2,
Location(),
nil,
Location(),
@@ -1199,7 +1177,6 @@ module Prism
ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b)], [], nil, [], [], KeywordRestParameterNode(ParameterFlags::REPEATED_PARAMETER, :a, Location(), Location()), nil),
nil,
[:a, :b],
- 2,
Location(),
nil,
Location(),
@@ -1219,7 +1196,6 @@ module Prism
ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b)], [], nil, [], [], nil, BlockParameterNode(ParameterFlags::REPEATED_PARAMETER, :a, Location(), Location())),
nil,
[:a, :b],
- 2,
Location(),
nil,
Location(),
@@ -1239,7 +1215,6 @@ module Prism
ParametersNode([], [OptionalParameterNode(0, :a, Location(), Location(), IntegerNode(IntegerBaseFlags::DECIMAL))], RestParameterNode(0, :c, Location(), Location()), [RequiredParameterNode(0, :b)], [], nil, nil),
nil,
[:a, :b, :c],
- 3,
Location(),
nil,
Location(),
diff --git a/test/prism/snapshots/arrays.txt b/test/prism/snapshots/arrays.txt
index dd84e25b4a..d6b3775698 100644
--- a/test/prism/snapshots/arrays.txt
+++ b/test/prism/snapshots/arrays.txt
@@ -1067,7 +1067,6 @@
│ │ ├── expression: ∅
│ │ └── operator_loc: (89,6)-(89,7) = "&"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (88,0)-(88,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (88,7)-(88,8) = "("
@@ -1848,7 +1847,6 @@
│ │ ├── closing_loc: (128,13)-(128,14) = "]"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (128,0)-(128,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (128,5)-(128,6) = "("
@@ -1905,7 +1903,6 @@
│ │ ├── closing_loc: (130,16)-(130,17) = "]"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (130,0)-(130,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (130,5)-(130,6) = "("
@@ -1962,7 +1959,6 @@
│ │ ├── closing_loc: (132,13)-(132,14) = "]"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (132,0)-(132,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (132,5)-(132,6) = "("
@@ -2021,7 +2017,6 @@
│ │ ├── closing_loc: (134,16)-(134,17) = "]"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (134,0)-(134,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (134,5)-(134,6) = "("
@@ -2079,7 +2074,6 @@
│ │ @ IntegerNode (location: (136,18)-(136,19))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (136,0)-(136,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (136,5)-(136,6) = "("
@@ -2138,7 +2132,6 @@
│ │ @ IntegerNode (location: (138,22)-(138,23))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (138,0)-(138,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (138,5)-(138,6) = "("
@@ -2202,7 +2195,6 @@
│ │ ├── ensure_clause: ∅
│ │ └── end_keyword_loc: (140,26)-(140,29) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (140,0)-(140,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (140,5)-(140,6) = "("
@@ -2268,7 +2260,6 @@
│ ├── ensure_clause: ∅
│ └── end_keyword_loc: (142,29)-(142,32) = "end"
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (142,0)-(142,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (142,5)-(142,6) = "("
diff --git a/test/prism/snapshots/begin_ensure.txt b/test/prism/snapshots/begin_ensure.txt
index b86feefc1d..9af9b9e573 100644
--- a/test/prism/snapshots/begin_ensure.txt
+++ b/test/prism/snapshots/begin_ensure.txt
@@ -195,7 +195,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (15,40)-(21,3))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body:
│ │ │ │ │ │ @ StatementsNode (location: (16,2)-(20,5))
@@ -230,7 +229,6 @@
│ │ │ │ │ │ │ │ └── block:
│ │ │ │ │ │ │ │ @ BlockNode (location: (18,22)-(19,7))
│ │ │ │ │ │ │ │ ├── locals: []
- │ │ │ │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ │ │ │ ├── body: ∅
│ │ │ │ │ │ │ │ ├── opening_loc: (18,22)-(18,24) = "do"
diff --git a/test/prism/snapshots/blocks.txt b/test/prism/snapshots/blocks.txt
index 577a11ab16..398a228fd3 100644
--- a/test/prism/snapshots/blocks.txt
+++ b/test/prism/snapshots/blocks.txt
@@ -38,7 +38,6 @@
│ └── block:
│ @ BlockNode (location: (1,9)-(1,16))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (1,11)-(1,14))
@@ -90,7 +89,6 @@
│ └── block:
│ @ BlockNode (location: (3,9)-(5,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (4,0)-(4,3))
@@ -134,7 +132,6 @@
│ └── block:
│ @ BlockNode (location: (7,12)-(7,35))
│ ├── locals: [:x, :memo]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (7,14)-(7,23))
│ │ ├── parameters:
@@ -182,7 +179,6 @@
│ └── block:
│ @ BlockNode (location: (9,4)-(9,10))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (9,4)-(9,6) = "do"
@@ -224,7 +220,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (11,14)-(11,20))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (11,14)-(11,16) = "do"
@@ -258,7 +253,6 @@
│ └── block:
│ @ BlockNode (location: (13,8)-(13,14))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (13,8)-(13,10) = "do"
@@ -301,7 +295,6 @@
│ └── block:
│ @ BlockNode (location: (15,12)-(15,18))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (15,12)-(15,14) = "do"
@@ -318,7 +311,6 @@
│ └── block:
│ @ BlockNode (location: (17,4)-(18,3))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (17,7)-(17,17))
│ │ ├── parameters:
@@ -379,7 +371,6 @@
│ └── block:
│ @ BlockNode (location: (20,4)-(22,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (21,0)-(22,3))
@@ -410,7 +401,6 @@
│ └── block:
│ @ BlockNode (location: (24,4)-(29,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (25,2)-(28,5))
@@ -427,7 +417,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (25,6)-(28,5))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (26,4)-(27,7))
@@ -444,7 +433,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (26,8)-(27,7))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (26,8)-(26,10) = "do"
@@ -488,7 +476,6 @@
│ └── block:
│ @ BlockNode (location: (31,9)-(31,16))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (31,11)-(31,14))
@@ -517,7 +504,6 @@
│ └── block:
│ @ BlockNode (location: (33,4)-(33,24))
│ ├── locals: [:x, :y, :z]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (33,6)-(33,20))
│ │ ├── parameters:
@@ -567,7 +553,6 @@
│ └── block:
│ @ BlockNode (location: (35,4)-(35,11))
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (35,6)-(35,9))
│ │ ├── parameters:
@@ -608,7 +593,6 @@
│ └── block:
│ @ BlockNode (location: (38,5)-(39,3))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (38,8)-(38,11))
│ │ ├── parameters:
@@ -641,7 +625,6 @@
│ └── block:
│ @ BlockNode (location: (41,5)-(41,12))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (41,7)-(41,10))
│ │ ├── parameters:
@@ -674,7 +657,6 @@
│ └── block:
│ @ BlockNode (location: (43,2)-(44,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (43,2)-(43,4) = "do"
@@ -691,7 +673,6 @@
│ └── block:
│ @ BlockNode (location: (46,2)-(46,4))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (46,2)-(46,3) = "{"
@@ -719,7 +700,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (48,11)-(52,1))
│ │ ├── locals: [:a, :b]
- │ │ ├── locals_body_index: 2
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (48,13)-(51,3))
│ │ │ ├── parameters:
@@ -765,7 +745,6 @@
└── block:
@ BlockNode (location: (54,4)-(54,17))
├── locals: [:bar]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (54,7)-(54,13))
│ ├── parameters:
diff --git a/test/prism/snapshots/break.txt b/test/prism/snapshots/break.txt
index c30231c02d..b7d891f0d6 100644
--- a/test/prism/snapshots/break.txt
+++ b/test/prism/snapshots/break.txt
@@ -140,7 +140,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (23,4)-(23,16))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (23,6)-(23,14))
@@ -182,7 +181,6 @@
│ └── block:
│ @ BlockNode (location: (25,4)-(25,17))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (25,6)-(25,9))
│ │ ├── parameters:
diff --git a/test/prism/snapshots/case.txt b/test/prism/snapshots/case.txt
index b8cafca6a0..b74ff535e0 100644
--- a/test/prism/snapshots/case.txt
+++ b/test/prism/snapshots/case.txt
@@ -439,7 +439,6 @@
└── block:
@ BlockNode (location: (51,7)-(55,3))
├── locals: [:_1]
- ├── locals_body_index: 1
├── parameters:
│ @ NumberedParametersNode (location: (51,7)-(55,3))
│ └── maximum: 1
diff --git a/test/prism/snapshots/command_method_call.txt b/test/prism/snapshots/command_method_call.txt
index bf9194176d..de6093abbd 100644
--- a/test/prism/snapshots/command_method_call.txt
+++ b/test/prism/snapshots/command_method_call.txt
@@ -416,7 +416,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/endless_methods.txt b/test/prism/snapshots/endless_methods.txt
index f3f4820dab..7485160a83 100644
--- a/test/prism/snapshots/endless_methods.txt
+++ b/test/prism/snapshots/endless_methods.txt
@@ -14,7 +14,6 @@
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -49,7 +48,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -97,7 +95,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/hashes.txt b/test/prism/snapshots/hashes.txt
index 824326e863..5fd0636548 100644
--- a/test/prism/snapshots/hashes.txt
+++ b/test/prism/snapshots/hashes.txt
@@ -279,7 +279,6 @@
│ └── block:
│ @ BlockNode (location: (23,4)-(26,3))
│ ├── locals: [:b]
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (24,2)-(25,20))
diff --git a/test/prism/snapshots/if.txt b/test/prism/snapshots/if.txt
index 76e102d42d..476088de72 100644
--- a/test/prism/snapshots/if.txt
+++ b/test/prism/snapshots/if.txt
@@ -349,7 +349,6 @@
│ └── block:
│ @ BlockNode (location: (34,9)-(35,5))
│ ├── locals: [:_]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (34,12)-(34,15))
│ │ ├── parameters:
@@ -392,7 +391,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (37,9)-(38,5))
│ │ ├── locals: [:_]
- │ │ ├── locals_body_index: 1
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (37,12)-(37,15))
│ │ │ ├── parameters:
@@ -431,7 +429,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (40,9)-(41,5))
│ │ │ ├── locals: [:_]
- │ │ │ ├── locals_body_index: 1
│ │ │ ├── parameters:
│ │ │ │ @ BlockParametersNode (location: (40,12)-(40,15))
│ │ │ │ ├── parameters:
diff --git a/test/prism/snapshots/indented_file_end.txt b/test/prism/snapshots/indented_file_end.txt
index 91e8aed58a..aa43ec5a1e 100644
--- a/test/prism/snapshots/indented_file_end.txt
+++ b/test/prism/snapshots/indented_file_end.txt
@@ -10,7 +10,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,4)-(1,7) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/keyword_method_names.txt b/test/prism/snapshots/keyword_method_names.txt
index 3fdf69971d..9eb0428084 100644
--- a/test/prism/snapshots/keyword_method_names.txt
+++ b/test/prism/snapshots/keyword_method_names.txt
@@ -10,7 +10,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -25,7 +24,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (4,0)-(4,3) = "def"
│ ├── operator_loc: (4,8)-(4,9) = "."
│ ├── lparen_loc: ∅
@@ -63,13 +61,11 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (8,6)-(9,5))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (8,6)-(8,8) = "do"
│ │ │ └── closing_loc: (9,2)-(9,5) = "end"
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (7,8)-(7,11) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
@@ -99,7 +95,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (12,0)-(12,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (12,5)-(12,6) = "("
@@ -114,7 +109,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (15,0)-(15,3) = "def"
│ ├── operator_loc: (15,16)-(15,17) = "."
│ ├── lparen_loc: ∅
@@ -142,7 +136,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (22,0)-(22,3) = "def"
│ ├── operator_loc: (22,12)-(22,13) = "."
│ ├── lparen_loc: ∅
@@ -157,7 +150,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ ├── operator_loc: (25,12)-(25,13) = "."
│ ├── lparen_loc: ∅
@@ -172,7 +164,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (28,0)-(28,3) = "def"
├── operator_loc: (28,7)-(28,9) = "::"
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/lambda.txt b/test/prism/snapshots/lambda.txt
index 05e803c62b..6b50f02af7 100644
--- a/test/prism/snapshots/lambda.txt
+++ b/test/prism/snapshots/lambda.txt
@@ -5,7 +5,6 @@
└── body: (length: 5)
├── @ LambdaNode (location: (1,0)-(3,4))
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (3,2)-(3,3) = "{"
│ ├── closing_loc: (3,3)-(3,4) = "}"
@@ -29,7 +28,6 @@
│ └── body: ∅
├── @ LambdaNode (location: (5,0)-(5,18))
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (5,0)-(5,2) = "->"
│ ├── opening_loc: (5,15)-(5,16) = "{"
│ ├── closing_loc: (5,17)-(5,18) = "}"
@@ -81,7 +79,6 @@
│ └── body: ∅
├── @ LambdaNode (location: (7,0)-(7,15))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (7,0)-(7,2) = "->"
│ ├── opening_loc: (7,13)-(7,14) = "{"
│ ├── closing_loc: (7,14)-(7,15) = "}"
@@ -132,7 +129,6 @@
│ └── body: ∅
├── @ LambdaNode (location: (9,0)-(9,19))
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (9,0)-(9,2) = "->"
│ ├── opening_loc: (9,13)-(9,15) = "do"
│ ├── closing_loc: (9,16)-(9,19) = "end"
@@ -169,7 +165,6 @@
│ └── body: ∅
└── @ LambdaNode (location: (11,0)-(11,18))
├── locals: [:foo]
- ├── locals_body_index: 1
├── operator_loc: (11,0)-(11,2) = "->"
├── opening_loc: (11,12)-(11,14) = "do"
├── closing_loc: (11,15)-(11,18) = "end"
diff --git a/test/prism/snapshots/method_calls.txt b/test/prism/snapshots/method_calls.txt
index f40c2158e4..0463d04ab1 100644
--- a/test/prism/snapshots/method_calls.txt
+++ b/test/prism/snapshots/method_calls.txt
@@ -931,7 +931,6 @@
│ └── block:
│ @ BlockNode (location: (64,16)-(64,36))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (64,19)-(64,25))
│ │ ├── parameters:
@@ -1393,7 +1392,6 @@
│ └── block:
│ @ BlockNode (location: (93,7)-(93,10))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (93,7)-(93,8) = "{"
@@ -1420,7 +1418,6 @@
│ └── block:
│ @ BlockNode (location: (95,8)-(95,14))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (95,10)-(95,12))
@@ -1512,7 +1509,6 @@
│ └── block:
│ @ BlockNode (location: (101,14)-(101,17))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (101,14)-(101,15) = "{"
@@ -1592,7 +1588,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (105,20)-(105,26))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── opening_loc: (105,20)-(105,22) = "do"
@@ -1642,7 +1637,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (107,16)-(107,22))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── opening_loc: (107,16)-(107,18) = "do"
@@ -1693,7 +1687,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (109,15)-(109,27))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body:
│ │ │ │ │ @ StatementsNode (location: (109,18)-(109,23))
@@ -1712,7 +1705,6 @@
│ └── block:
│ @ BlockNode (location: (109,30)-(109,36))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (109,30)-(109,32) = "do"
@@ -1751,7 +1743,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (111,18)-(111,24))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (111,18)-(111,20) = "do"
@@ -1792,7 +1783,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (113,19)-(113,25))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (113,19)-(113,21) = "do"
@@ -1827,7 +1817,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (115,9)-(115,15))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (115,9)-(115,11) = "do"
@@ -1866,7 +1855,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (117,16)-(117,24))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (117,19)-(117,20))
@@ -1927,7 +1915,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (121,8)-(123,7))
│ │ │ ├── locals: [:a]
- │ │ │ ├── locals_body_index: 1
│ │ │ ├── parameters:
│ │ │ │ @ BlockParametersNode (location: (121,11)-(121,14))
│ │ │ │ ├── parameters:
@@ -2004,7 +1991,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (128,8)-(130,7))
│ │ │ ├── locals: [:a]
- │ │ │ ├── locals_body_index: 1
│ │ │ ├── parameters:
│ │ │ │ @ BlockParametersNode (location: (128,11)-(128,14))
│ │ │ │ ├── parameters:
@@ -2060,7 +2046,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (133,8)-(134,7))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (133,8)-(133,10) = "do"
@@ -2094,7 +2079,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (137,7)-(137,9))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (137,7)-(137,8) = "{"
@@ -2128,7 +2112,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (139,7)-(139,16))
│ │ ├── locals: [:a]
- │ │ ├── locals_body_index: 1
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (139,9)-(139,12))
│ │ │ ├── parameters:
@@ -2171,7 +2154,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (141,2)-(141,4))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (141,2)-(141,3) = "{"
@@ -2196,7 +2178,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (141,9)-(141,11))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (141,9)-(141,10) = "{"
@@ -2236,7 +2217,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (143,9)-(143,11))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (143,9)-(143,10) = "{"
@@ -2342,7 +2322,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (149,0)-(149,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (149,5)-(149,6) = "("
@@ -2374,7 +2353,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (151,11)-(151,16))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (151,13)-(151,14))
@@ -2405,7 +2383,6 @@
│ └── block:
│ @ BlockNode (location: (154,4)-(154,6))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (154,4)-(154,5) = "{"
diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt
index 7f3b61f75d..524f023fe9 100644
--- a/test/prism/snapshots/methods.txt
+++ b/test/prism/snapshots/methods.txt
@@ -30,7 +30,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar, :baz]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -84,7 +83,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar, :baz, :optional, :bin, :bag]
- │ ├── locals_body_index: 5
│ ├── def_keyword_loc: (4,0)-(4,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (4,7)-(4,8) = "("
@@ -109,7 +107,6 @@
│ │ │ └── end_keyword_loc: (8,15)-(8,18) = "end"
│ │ └── end_keyword_loc: (8,15)-(8,18) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (8,0)-(8,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -137,7 +134,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (10,0)-(10,3) = "def"
│ ├── operator_loc: (10,7)-(10,8) = "."
│ ├── lparen_loc: ∅
@@ -165,7 +161,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (13,0)-(13,3) = "def"
│ ├── operator_loc: (13,7)-(13,9) = "::"
│ ├── lparen_loc: ∅
@@ -180,7 +175,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (16,0)-(16,3) = "def"
│ ├── operator_loc: (16,9)-(16,10) = "."
│ ├── lparen_loc: ∅
@@ -203,7 +197,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (19,0)-(19,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (19,5)-(19,6) = "("
@@ -219,7 +212,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (22,0)-(22,3) = "def"
│ ├── operator_loc: (22,8)-(22,9) = "."
│ ├── lparen_loc: ∅
@@ -243,7 +235,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ ├── operator_loc: (25,5)-(25,6) = "."
│ ├── lparen_loc: ∅
@@ -259,7 +250,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (28,0)-(28,3) = "def"
│ ├── operator_loc: (28,8)-(28,9) = "."
│ ├── lparen_loc: ∅
@@ -285,7 +275,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (31,0)-(31,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -317,7 +306,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (35,0)-(35,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (35,5)-(35,6) = "("
@@ -344,7 +332,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (38,0)-(38,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (38,5)-(38,6) = "("
@@ -371,7 +358,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (41,0)-(41,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (41,5)-(41,6) = "("
@@ -393,7 +379,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (44,7)-(44,10) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -424,7 +409,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b, :c, :d]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (47,0)-(47,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -439,7 +423,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (50,0)-(50,3) = "def"
│ ├── operator_loc: (50,7)-(50,8) = "."
│ ├── lparen_loc: ∅
@@ -472,7 +455,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b, :c]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (53,0)-(53,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -505,7 +487,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b, :c]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (56,0)-(56,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (56,5)-(56,6) = "("
@@ -538,7 +519,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b, :c]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (59,0)-(59,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (59,5)-(59,6) = "("
@@ -582,7 +562,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b, :c]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (65,0)-(65,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -596,7 +575,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (68,0)-(68,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (68,5)-(68,6) = "("
@@ -629,7 +607,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b, :c]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (71,0)-(71,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -654,7 +631,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (74,0)-(74,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -690,7 +666,6 @@
│ │ │ └── end_keyword_loc: (77,29)-(77,32) = "end"
│ │ └── end_keyword_loc: (77,29)-(77,32) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (77,0)-(77,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -717,7 +692,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (79,0)-(79,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -744,7 +718,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (82,0)-(82,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (82,5)-(82,6) = "("
@@ -768,7 +741,6 @@
│ │ │ └── flags: decimal
│ │ └── operator_loc: (86,2)-(86,3) = "="
│ ├── locals: [:b]
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (85,0)-(85,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -783,7 +755,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (89,0)-(89,3) = "def"
│ ├── operator_loc: (89,8)-(89,9) = "."
│ ├── lparen_loc: ∅
@@ -798,7 +769,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (92,0)-(92,3) = "def"
│ ├── operator_loc: (92,8)-(92,9) = "."
│ ├── lparen_loc: ∅
@@ -812,7 +782,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (95,0)-(95,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -856,7 +825,6 @@
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "bye"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (98,0)-(98,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -874,7 +842,6 @@
│ │ └── @ IntegerNode (location: (103,10)-(103,11))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (103,0)-(103,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -892,7 +859,6 @@
│ │ └── @ IntegerNode (location: (104,10)-(104,11))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (104,0)-(104,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -921,7 +887,6 @@
│ │ └── @ IntegerNode (location: (106,15)-(106,18))
│ │ └── flags: decimal
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (106,0)-(106,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (106,7)-(106,8) = "("
@@ -939,7 +904,6 @@
│ │ └── @ IntegerNode (location: (108,10)-(108,13))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (108,0)-(108,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -984,7 +948,6 @@
│ │ ├── closing_loc: (110,13)-(110,14) = ")"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (110,0)-(110,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (110,5)-(110,6) = "("
@@ -1023,7 +986,6 @@
│ │ ├── closing_loc: (112,17)-(112,18) = ")"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (112,0)-(112,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (112,5)-(112,6) = "("
@@ -1066,7 +1028,6 @@
│ │ ├── closing_loc: (114,23)-(114,24) = ")"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (114,0)-(114,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (114,5)-(114,6) = "("
@@ -1100,7 +1061,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (116,0)-(116,3) = "def"
│ ├── operator_loc: (116,11)-(116,12) = "."
│ ├── lparen_loc: ∅
@@ -1127,7 +1087,6 @@
│ │ └── operator_loc: (119,6)-(119,7) = "&"
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (119,0)-(119,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1154,7 +1113,6 @@
│ │ └── operator_loc: (122,6)-(122,7) = "&"
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (122,0)-(122,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (122,5)-(122,6) = "("
@@ -1170,7 +1128,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (125,0)-(125,3) = "def"
│ ├── operator_loc: (125,9)-(125,10) = "."
│ ├── lparen_loc: ∅
@@ -1204,7 +1161,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (128,0)-(128,3) = "def"
│ ├── operator_loc: (128,11)-(128,12) = "."
│ ├── lparen_loc: ∅
@@ -1219,7 +1175,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (131,0)-(131,3) = "def"
│ ├── operator_loc: (131,8)-(131,9) = "."
│ ├── lparen_loc: ∅
@@ -1242,7 +1197,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (133,11)-(133,14) = "def"
│ ├── operator_loc: (133,20)-(133,21) = "."
│ ├── lparen_loc: ∅
@@ -1297,7 +1251,6 @@
│ │ │ └── closing_loc: (136,24)-(136,25) = "}"
│ │ └── closing_loc: (136,25)-(136,26) = "\""
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (136,0)-(136,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (136,5)-(136,6) = "("
@@ -1372,7 +1325,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (138,0)-(138,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1414,7 +1366,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (142,0)-(142,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (142,7)-(142,8) = "("
@@ -1454,7 +1405,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (145,0)-(145,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (145,7)-(145,8) = "("
@@ -1494,7 +1444,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (148,0)-(148,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (148,7)-(148,8) = "("
@@ -1537,7 +1486,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (151,0)-(151,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (151,7)-(151,8) = "("
@@ -1578,7 +1526,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (154,0)-(154,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (154,7)-(154,8) = "("
@@ -1619,7 +1566,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (157,0)-(157,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (157,7)-(157,8) = "("
@@ -1678,7 +1624,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (161,12)-(161,14))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (161,12)-(161,13) = "{"
@@ -1686,7 +1631,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (160,0)-(160,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (160,10)-(160,11) = "("
@@ -1711,7 +1655,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (165,0)-(165,3) = "def"
│ ├── operator_loc: (165,7)-(165,8) = "."
│ ├── lparen_loc: ∅
@@ -1748,7 +1691,6 @@
│ │ ├── opening_loc: (167,10)-(167,11) = "["
│ │ └── closing_loc: (167,12)-(167,13) = "]"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (167,0)-(167,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (167,5)-(167,6) = "("
@@ -1795,7 +1737,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (169,0)-(169,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1842,7 +1783,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (171,0)-(171,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1889,7 +1829,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (173,0)-(173,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1922,7 +1861,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (175,0)-(175,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1960,7 +1898,6 @@
│ │ ├── expression: ∅
│ │ └── operator_loc: (178,6)-(178,7) = "&"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (177,0)-(177,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (177,7)-(177,8) = "("
@@ -2008,7 +1945,6 @@
│ │ │ │ │ │ ├── name: :bar
│ │ │ │ │ │ └── depth: 0
│ │ │ │ │ ├── locals: [:bar]
- │ │ │ │ │ ├── locals_body_index: 1
│ │ │ │ │ ├── def_keyword_loc: (181,15)-(181,18) = "def"
│ │ │ │ │ ├── operator_loc: ∅
│ │ │ │ │ ├── lparen_loc: (181,22)-(181,23) = "("
@@ -2030,7 +1966,6 @@
│ │ └── @ IntegerNode (location: (181,41)-(181,42))
│ │ └── flags: decimal
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (181,0)-(181,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (181,7)-(181,8) = "("
@@ -2079,7 +2014,6 @@
│ └── @ IntegerNode (location: (183,36)-(183,37))
│ └── flags: decimal
├── locals: [:bar]
- ├── locals_body_index: 1
├── def_keyword_loc: (183,0)-(183,3) = "def"
├── operator_loc: (183,20)-(183,21) = "."
├── lparen_loc: (183,24)-(183,25) = "("
diff --git a/test/prism/snapshots/non_alphanumeric_methods.txt b/test/prism/snapshots/non_alphanumeric_methods.txt
index 21bec6eff3..2ed66fe0e2 100644
--- a/test/prism/snapshots/non_alphanumeric_methods.txt
+++ b/test/prism/snapshots/non_alphanumeric_methods.txt
@@ -10,7 +10,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -24,7 +23,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (4,0)-(4,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -38,7 +36,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -52,7 +49,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (10,0)-(10,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -67,7 +63,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (13,0)-(13,3) = "def"
│ ├── operator_loc: (13,8)-(13,9) = "."
│ ├── lparen_loc: ∅
@@ -81,7 +76,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (16,0)-(16,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -95,7 +89,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (19,0)-(19,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -109,7 +102,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (22,0)-(22,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -142,7 +134,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (27,0)-(27,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -156,7 +147,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (30,0)-(30,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (30,5)-(30,6) = "("
@@ -181,7 +171,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (33,0)-(33,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -196,7 +185,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (36,0)-(36,3) = "def"
│ ├── operator_loc: (36,8)-(36,9) = "."
│ ├── lparen_loc: ∅
@@ -210,7 +198,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (39,0)-(39,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -224,7 +211,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (42,0)-(42,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -238,7 +224,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (45,0)-(45,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -262,7 +247,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (48,0)-(48,3) = "def"
│ ├── operator_loc: (48,5)-(48,6) = "."
│ ├── lparen_loc: ∅
@@ -276,7 +260,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (50,0)-(50,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -290,7 +273,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (53,0)-(53,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -304,7 +286,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (56,0)-(56,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -318,7 +299,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (59,0)-(59,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -332,7 +312,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (62,0)-(62,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -346,7 +325,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (65,0)-(65,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -360,7 +338,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (68,0)-(68,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -374,7 +351,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (71,0)-(71,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -388,7 +364,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (74,0)-(74,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -402,7 +377,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (77,0)-(77,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -416,7 +390,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (80,0)-(80,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -430,7 +403,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (83,0)-(83,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -444,7 +416,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (86,0)-(86,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -458,7 +429,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (89,0)-(89,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -472,7 +442,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (92,0)-(92,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -486,7 +455,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (95,0)-(95,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -501,7 +469,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (98,0)-(98,3) = "def"
│ ├── operator_loc: (98,8)-(98,9) = "."
│ ├── lparen_loc: ∅
@@ -515,7 +482,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (101,0)-(101,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -529,7 +495,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (104,0)-(104,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/patterns.txt b/test/prism/snapshots/patterns.txt
index 93333ce785..97d2e5637c 100644
--- a/test/prism/snapshots/patterns.txt
+++ b/test/prism/snapshots/patterns.txt
@@ -488,7 +488,6 @@
│ ├── pattern:
│ │ @ LambdaNode (location: (26,7)-(26,17))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (26,7)-(26,9) = "->"
│ │ ├── opening_loc: (26,10)-(26,11) = "{"
│ │ ├── closing_loc: (26,16)-(26,17) = "}"
@@ -1208,7 +1207,6 @@
│ │ ├── left:
│ │ │ @ LambdaNode (location: (52,7)-(52,17))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── operator_loc: (52,7)-(52,9) = "->"
│ │ │ ├── opening_loc: (52,10)-(52,11) = "{"
│ │ │ ├── closing_loc: (52,16)-(52,17) = "}"
@@ -1222,7 +1220,6 @@
│ │ ├── right:
│ │ │ @ LambdaNode (location: (52,21)-(52,31))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── operator_loc: (52,21)-(52,23) = "->"
│ │ │ ├── opening_loc: (52,24)-(52,25) = "{"
│ │ │ ├── closing_loc: (52,30)-(52,31) = "}"
@@ -2822,7 +2819,6 @@
│ ├── pattern:
│ │ @ LambdaNode (location: (125,7)-(125,17))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (125,7)-(125,9) = "->"
│ │ ├── opening_loc: (125,10)-(125,11) = "{"
│ │ ├── closing_loc: (125,16)-(125,17) = "}"
@@ -3496,7 +3492,6 @@
│ │ ├── pattern:
│ │ │ @ LambdaNode (location: (152,13)-(152,23))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── operator_loc: (152,13)-(152,15) = "->"
│ │ │ ├── opening_loc: (152,16)-(152,17) = "{"
│ │ │ ├── closing_loc: (152,22)-(152,23) = "}"
@@ -4485,7 +4480,6 @@
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ LambdaNode (location: (179,13)-(179,23))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── operator_loc: (179,13)-(179,15) = "->"
│ │ │ │ ├── opening_loc: (179,16)-(179,17) = "{"
│ │ │ │ ├── closing_loc: (179,22)-(179,23) = "}"
@@ -4695,7 +4689,6 @@
│ └── block:
│ @ BlockNode (location: (198,4)-(200,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (199,2)-(199,29))
@@ -4786,7 +4779,6 @@
│ └── block:
│ @ BlockNode (location: (204,7)-(204,19))
│ ├── locals: [:_1]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ NumberedParametersNode (location: (204,7)-(204,19))
│ │ └── maximum: 1
diff --git a/test/prism/snapshots/procs.txt b/test/prism/snapshots/procs.txt
index 31ae6ece5b..1c3e425c7b 100644
--- a/test/prism/snapshots/procs.txt
+++ b/test/prism/snapshots/procs.txt
@@ -5,7 +5,6 @@
└── body: (length: 10)
├── @ LambdaNode (location: (1,0)-(1,21))
│ ├── locals: [:a, :b, :c, :d]
- │ ├── locals_body_index: 4
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,16)-(1,17) = "{"
│ ├── closing_loc: (1,20)-(1,21) = "}"
@@ -43,7 +42,6 @@
│ └── depth: 0
├── @ LambdaNode (location: (3,0)-(5,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (3,0)-(3,2) = "->"
│ ├── opening_loc: (3,3)-(3,5) = "do"
│ ├── closing_loc: (5,0)-(5,3) = "end"
@@ -62,7 +60,6 @@
│ └── end_keyword_loc: (5,0)-(5,3) = "end"
├── @ LambdaNode (location: (7,0)-(11,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (7,0)-(7,2) = "->"
│ ├── opening_loc: (7,3)-(7,5) = "do"
│ ├── closing_loc: (11,0)-(11,3) = "end"
@@ -92,7 +89,6 @@
│ └── end_keyword_loc: (11,0)-(11,3) = "end"
├── @ LambdaNode (location: (13,0)-(13,10))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (13,0)-(13,2) = "->"
│ ├── opening_loc: (13,3)-(13,4) = "{"
│ ├── closing_loc: (13,9)-(13,10) = "}"
@@ -112,7 +108,6 @@
│ └── block: ∅
├── @ LambdaNode (location: (15,0)-(15,15))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (15,0)-(15,2) = "->"
│ ├── opening_loc: (15,3)-(15,5) = "do"
│ ├── closing_loc: (15,12)-(15,15) = "end"
@@ -132,7 +127,6 @@
│ └── block: ∅
├── @ LambdaNode (location: (17,0)-(17,29))
│ ├── locals: [:a, :b, :c, :d, :e]
- │ ├── locals_body_index: 5
│ ├── operator_loc: (17,0)-(17,2) = "->"
│ ├── opening_loc: (17,24)-(17,25) = "{"
│ ├── closing_loc: (17,28)-(17,29) = "}"
@@ -182,7 +176,6 @@
│ └── depth: 0
├── @ LambdaNode (location: (19,0)-(19,40))
│ ├── locals: [:a, :b, :c, :d, :e, :f, :g]
- │ ├── locals_body_index: 7
│ ├── operator_loc: (19,0)-(19,2) = "->"
│ ├── opening_loc: (19,35)-(19,36) = "{"
│ ├── closing_loc: (19,39)-(19,40) = "}"
@@ -242,7 +235,6 @@
│ └── depth: 0
├── @ LambdaNode (location: (21,0)-(23,3))
│ ├── locals: [:a, :b, :c, :d, :e, :f, :g]
- │ ├── locals_body_index: 7
│ ├── operator_loc: (21,0)-(21,2) = "->"
│ ├── opening_loc: (21,35)-(21,37) = "do"
│ ├── closing_loc: (23,0)-(23,3) = "end"
@@ -302,7 +294,6 @@
│ └── depth: 0
├── @ LambdaNode (location: (25,0)-(25,25))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (25,0)-(25,2) = "->"
│ ├── opening_loc: (25,7)-(25,8) = "{"
│ ├── closing_loc: (25,24)-(25,25) = "}"
@@ -328,7 +319,6 @@
│ └── body: (length: 1)
│ └── @ LambdaNode (location: (25,9)-(25,23))
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (25,9)-(25,11) = "->"
│ ├── opening_loc: (25,14)-(25,15) = "{"
│ ├── closing_loc: (25,22)-(25,23) = "}"
@@ -373,7 +363,6 @@
│ └── block: ∅
└── @ LambdaNode (location: (27,0)-(27,19))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── operator_loc: (27,0)-(27,2) = "->"
├── opening_loc: (27,16)-(27,17) = "{"
├── closing_loc: (27,18)-(27,19) = "}"
diff --git a/test/prism/snapshots/regex.txt b/test/prism/snapshots/regex.txt
index 06c9bc646b..82cb489c4c 100644
--- a/test/prism/snapshots/regex.txt
+++ b/test/prism/snapshots/regex.txt
@@ -327,7 +327,6 @@
└── block:
@ BlockNode (location: (40,4)-(40,24))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (40,6)-(40,22))
diff --git a/test/prism/snapshots/repeat_parameters.txt b/test/prism/snapshots/repeat_parameters.txt
index f680a2f1b9..031a304eb0 100644
--- a/test/prism/snapshots/repeat_parameters.txt
+++ b/test/prism/snapshots/repeat_parameters.txt
@@ -24,7 +24,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :_]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -55,7 +54,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :_]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (4,0)-(4,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (4,7)-(4,8) = "("
@@ -89,7 +87,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :_, :_b]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (7,7)-(7,8) = "("
@@ -126,7 +123,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :_, :_b]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (10,0)-(10,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (10,7)-(10,8) = "("
@@ -187,7 +183,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :b, :_c, :d, :e, :f]
- │ ├── locals_body_index: 6
│ ├── def_keyword_loc: (13,0)-(13,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (13,7)-(13,8) = "("
@@ -221,7 +216,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:_a, :b, :c]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (16,0)-(16,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (16,7)-(16,8) = "("
@@ -279,7 +273,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :_b, :c, :d, :e]
- │ ├── locals_body_index: 5
│ ├── def_keyword_loc: (19,0)-(19,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (19,7)-(19,8) = "("
@@ -317,7 +310,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:_a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (22,0)-(22,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (22,7)-(22,8) = "("
@@ -347,7 +339,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:_a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (25,7)-(25,8) = "("
@@ -383,7 +374,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:_a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (28,0)-(28,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (28,7)-(28,8) = "("
@@ -413,7 +403,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:_a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (31,0)-(31,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (31,7)-(31,8) = "("
@@ -443,7 +432,6 @@
│ │ └── operator_loc: (34,12)-(34,13) = "&"
│ ├── body: ∅
│ ├── locals: [:_a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (34,0)-(34,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (34,7)-(34,8) = "("
@@ -473,7 +461,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:_a]
- ├── locals_body_index: 1
├── def_keyword_loc: (37,0)-(37,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (37,7)-(37,8) = "("
diff --git a/test/prism/snapshots/rescue.txt b/test/prism/snapshots/rescue.txt
index 939ba115ae..4057b624e7 100644
--- a/test/prism/snapshots/rescue.txt
+++ b/test/prism/snapshots/rescue.txt
@@ -163,7 +163,6 @@
│ └── block:
│ @ BlockNode (location: (18,4)-(20,3))
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (18,7)-(18,10))
│ │ ├── parameters:
@@ -314,7 +313,6 @@
│ │ └── rescue_expression:
│ │ @ NilNode (location: (26,41)-(26,44))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (26,0)-(26,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -382,7 +380,6 @@
│ │ ├── ensure_clause: ∅
│ │ └── end_keyword_loc: (31,0)-(31,3) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (28,0)-(28,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt
index 1232410543..f90f073d72 100644
--- a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt
+++ b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt
@@ -168,7 +168,6 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── locals: [:a, :b]
- │ │ ├── locals_body_index: 2
│ │ ├── def_keyword_loc: (52,2)-(52,5) = "def"
│ │ ├── operator_loc: (52,10)-(52,11) = "."
│ │ ├── lparen_loc: (52,12)-(52,13) = "("
@@ -263,7 +262,6 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── locals: [:a, :b]
- │ │ ├── locals_body_index: 2
│ │ ├── def_keyword_loc: (67,2)-(67,5) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: (67,7)-(67,8) = "("
diff --git a/test/prism/snapshots/seattlerb/args_kw_block.txt b/test/prism/snapshots/seattlerb/args_kw_block.txt
index 85a7e856d7..b0f8fa8fd7 100644
--- a/test/prism/snapshots/seattlerb/args_kw_block.txt
+++ b/test/prism/snapshots/seattlerb/args_kw_block.txt
@@ -30,7 +30,6 @@
│ └── operator_loc: (1,12)-(1,13) = "&"
├── body: ∅
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/block_arg__bare.txt b/test/prism/snapshots/seattlerb/block_arg__bare.txt
index 9bf5016ad1..165c2980be 100644
--- a/test/prism/snapshots/seattlerb/block_arg__bare.txt
+++ b/test/prism/snapshots/seattlerb/block_arg__bare.txt
@@ -23,7 +23,6 @@
│ └── operator_loc: (1,6)-(1,7) = "&"
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt
index 7429ae0638..392de8559b 100644
--- a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,11))
├── locals: [:b]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,9))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
index a3588b281e..8916d7b9d1 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,21))
├── locals: [:b, :c, :d, :e]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,19))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
index 41d5f0d5e0..3167d249bd 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,20))
├── locals: [:b, :c, :d]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,18))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt
index baa5f22523..b82f363dc2 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,25))
├── locals: [:b, :c, :d, :e, :f]
- ├── locals_body_index: 5
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,23))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_optional.txt b/test/prism/snapshots/seattlerb/block_arg_optional.txt
index a5dde7ea58..fe5c06ab7d 100644
--- a/test/prism/snapshots/seattlerb/block_arg_optional.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_optional.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,13))
├── locals: [:b]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_scope.txt b/test/prism/snapshots/seattlerb/block_arg_scope.txt
index e17de7cf31..b99cc5e45c 100644
--- a/test/prism/snapshots/seattlerb/block_arg_scope.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_scope.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,12))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,10))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_scope2.txt b/test/prism/snapshots/seattlerb/block_arg_scope2.txt
index b71b8fffb1..98b3a7da3a 100644
--- a/test/prism/snapshots/seattlerb/block_arg_scope2.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_scope2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:b, :c, :d]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,3)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt
index f28af4561a..fd5813c983 100644
--- a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,16))
├── locals: [:b, :c, :d]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,14))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_args_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_kwargs.txt
index 16f0e55314..0975ce3367 100644
--- a/test/prism/snapshots/seattlerb/block_args_kwargs.txt
+++ b/test/prism/snapshots/seattlerb/block_args_kwargs.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,23))
├── locals: [:kwargs]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,14))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt
index bce9b0e2fa..d47349defb 100644
--- a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt
+++ b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,13))
├── locals: []
- ├── locals_body_index: 0
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_args_opt1.txt b/test/prism/snapshots/seattlerb/block_args_opt1.txt
index e7e3fa3ea0..4c06f82954 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt1.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,24))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_args_opt2.txt b/test/prism/snapshots/seattlerb/block_args_opt2.txt
index 3b1db514a0..a7fb2d50a6 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt2.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,18))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,16))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
index 05c9e3cf8d..26cfc32887 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,35))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,23))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_args_opt3.txt b/test/prism/snapshots/seattlerb/block_args_opt3.txt
index b0f3dfef77..2eb98c3c90 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt3.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt3.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,42))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,27))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_break.txt b/test/prism/snapshots/seattlerb/block_break.txt
index 063d6b5014..ce61b2f0d1 100644
--- a/test/prism/snapshots/seattlerb/block_break.txt
+++ b/test/prism/snapshots/seattlerb/block_break.txt
@@ -33,7 +33,6 @@
│ └── block:
│ @ BlockNode (location: (1,14)-(1,26))
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (1,17)-(1,22))
│ │ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt b/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt
index 6e3cb97b72..2e634dc937 100644
--- a/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt
+++ b/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt
@@ -44,7 +44,6 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── locals: [:c]
- │ │ ├── locals_body_index: 1
│ │ ├── def_keyword_loc: (1,2)-(1,5) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -75,7 +74,6 @@
└── block:
@ BlockNode (location: (4,5)-(4,11))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (4,5)-(4,7) = "do"
diff --git a/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt b/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt
index 79c39dbec9..e46104b868 100644
--- a/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt
+++ b/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt
@@ -41,7 +41,6 @@
│ └── block:
│ @ BlockNode (location: (1,8)-(1,16))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (1,11)-(1,12))
@@ -67,7 +66,6 @@
└── block:
@ BlockNode (location: (1,19)-(1,31))
├── locals: [:f]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,22)-(1,25))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt b/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt
index 2f1f72525a..05d076f8d6 100644
--- a/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt
+++ b/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt
@@ -41,7 +41,6 @@
│ └── block:
│ @ BlockNode (location: (1,8)-(1,16))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (1,11)-(1,12))
@@ -80,7 +79,6 @@
└── block:
@ BlockNode (location: (1,21)-(1,33))
├── locals: [:g]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,24)-(1,27))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt
index 9efe4bd674..9fd13b0dfc 100644
--- a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt
+++ b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt
@@ -41,7 +41,6 @@
│ └── block:
│ @ BlockNode (location: (1,6)-(1,12))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,6)-(1,8) = "do"
diff --git a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt
index bd98be70c8..43c19d3318 100644
--- a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt
+++ b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt
@@ -41,7 +41,6 @@
│ └── block:
│ @ BlockNode (location: (1,6)-(1,12))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,6)-(1,8) = "do"
diff --git a/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt b/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt
index 2e198fbf28..10c1780d37 100644
--- a/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt
+++ b/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt
@@ -54,7 +54,6 @@
└── block:
@ BlockNode (location: (2,4)-(2,10))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (2,4)-(2,6) = "do"
diff --git a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt
index d08fe7ece1..30fd6dafa0 100644
--- a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt
+++ b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt
@@ -27,7 +27,6 @@
│ └── block:
│ @ BlockNode (location: (1,5)-(1,11))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,5)-(1,7) = "do"
diff --git a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt
index a603c6aefc..e4f69d3604 100644
--- a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt
+++ b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt
@@ -27,7 +27,6 @@
│ └── block:
│ @ BlockNode (location: (1,5)-(1,11))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,5)-(1,7) = "do"
diff --git a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt
index be0081deea..e309ec1f98 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:a]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt
index b7a45492b4..8d28fa7e02 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:b]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt
index 6b72016b6f..4f4a82acf5 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,18))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,16))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_decomp_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_splat.txt
index 91cd1fa2dd..09d3440126 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_splat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,12))
├── locals: [:a]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,10))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_kw.txt b/test/prism/snapshots/seattlerb/block_kw.txt
index 3a73f0ec7d..36db338271 100644
--- a/test/prism/snapshots/seattlerb/block_kw.txt
+++ b/test/prism/snapshots/seattlerb/block_kw.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,5)-(1,15))
├── locals: [:k]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,7)-(1,13))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_kw__required.txt b/test/prism/snapshots/seattlerb/block_kw__required.txt
index d314cc5c70..8a49c8bec7 100644
--- a/test/prism/snapshots/seattlerb/block_kw__required.txt
+++ b/test/prism/snapshots/seattlerb/block_kw__required.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,5)-(1,16))
├── locals: [:k]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,8)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt
index 360a3e51af..e77bf90a27 100644
--- a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt
+++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,3)-(1,20))
├── locals: [:kw]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,5)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
index f651eef4ad..a527c8c993 100644
--- a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
+++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,3)-(1,33))
├── locals: [:kw, :kw2]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,5)-(1,28))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_next.txt b/test/prism/snapshots/seattlerb/block_next.txt
index 5c3cc4c2a6..71f2deb2dd 100644
--- a/test/prism/snapshots/seattlerb/block_next.txt
+++ b/test/prism/snapshots/seattlerb/block_next.txt
@@ -33,7 +33,6 @@
│ └── block:
│ @ BlockNode (location: (1,13)-(1,25))
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (1,16)-(1,21))
│ │ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_opt_arg.txt b/test/prism/snapshots/seattlerb/block_opt_arg.txt
index 38f678ab82..2e53540491 100644
--- a/test/prism/snapshots/seattlerb/block_opt_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_arg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_opt_splat.txt b/test/prism/snapshots/seattlerb/block_opt_splat.txt
index f0182c9cc1..c15380150c 100644
--- a/test/prism/snapshots/seattlerb/block_opt_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_splat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt
index 48d8d3e4f2..da383a3c88 100644
--- a/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,22))
├── locals: [:b, :c, :d, :e]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,20))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_optarg.txt b/test/prism/snapshots/seattlerb/block_optarg.txt
index 40e334d1da..5da99aec79 100644
--- a/test/prism/snapshots/seattlerb/block_optarg.txt
+++ b/test/prism/snapshots/seattlerb/block_optarg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:b]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_paren_splat.txt b/test/prism/snapshots/seattlerb/block_paren_splat.txt
index 5426cad0a3..ebd937904c 100644
--- a/test/prism/snapshots/seattlerb/block_paren_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_paren_splat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,15))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,13))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_reg_optarg.txt b/test/prism/snapshots/seattlerb/block_reg_optarg.txt
index 7643749576..53c43603a7 100644
--- a/test/prism/snapshots/seattlerb/block_reg_optarg.txt
+++ b/test/prism/snapshots/seattlerb/block_reg_optarg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_return.txt b/test/prism/snapshots/seattlerb/block_return.txt
index 7d9e29036a..e91f5f2592 100644
--- a/test/prism/snapshots/seattlerb/block_return.txt
+++ b/test/prism/snapshots/seattlerb/block_return.txt
@@ -34,7 +34,6 @@
└── block:
@ BlockNode (location: (1,15)-(1,27))
├── locals: [:bar]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,18)-(1,23))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/block_scope.txt b/test/prism/snapshots/seattlerb/block_scope.txt
index 6537393872..a21a28b993 100644
--- a/test/prism/snapshots/seattlerb/block_scope.txt
+++ b/test/prism/snapshots/seattlerb/block_scope.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,10))
├── locals: [:b]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,8))
│ ├── parameters: ∅
diff --git a/test/prism/snapshots/seattlerb/block_splat_reg.txt b/test/prism/snapshots/seattlerb/block_splat_reg.txt
index 47d3b69463..617ff88622 100644
--- a/test/prism/snapshots/seattlerb/block_splat_reg.txt
+++ b/test/prism/snapshots/seattlerb/block_splat_reg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,13))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/bug169.txt b/test/prism/snapshots/seattlerb/bug169.txt
index f3cde864b5..e4fb47a6de 100644
--- a/test/prism/snapshots/seattlerb/bug169.txt
+++ b/test/prism/snapshots/seattlerb/bug169.txt
@@ -22,7 +22,6 @@
└── block:
@ BlockNode (location: (1,5)-(1,7))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,5)-(1,6) = "{"
diff --git a/test/prism/snapshots/seattlerb/bug236.txt b/test/prism/snapshots/seattlerb/bug236.txt
index 07ec809bd1..203a39a793 100644
--- a/test/prism/snapshots/seattlerb/bug236.txt
+++ b/test/prism/snapshots/seattlerb/bug236.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,1)-(1,7))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (1,2)-(1,6))
│ │ ├── parameters:
@@ -49,7 +48,6 @@
└── block:
@ BlockNode (location: (3,1)-(3,6))
├── locals: [:a]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (3,2)-(3,5))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/bug_187.txt b/test/prism/snapshots/seattlerb/bug_187.txt
index 06248a9760..ae72675e5c 100644
--- a/test/prism/snapshots/seattlerb/bug_187.txt
+++ b/test/prism/snapshots/seattlerb/bug_187.txt
@@ -44,13 +44,11 @@
│ │ └── block:
│ │ @ BlockNode (location: (2,4)-(2,10))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (2,4)-(2,6) = "do"
│ │ └── closing_loc: (2,7)-(2,10) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,8)-(1,11) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/bug_249.txt b/test/prism/snapshots/seattlerb/bug_249.txt
index bc57cfb2ab..569bea14c5 100644
--- a/test/prism/snapshots/seattlerb/bug_249.txt
+++ b/test/prism/snapshots/seattlerb/bug_249.txt
@@ -35,7 +35,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (1,17)-(4,4))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body:
│ │ │ │ │ @ StatementsNode (location: (2,0)-(3,3))
@@ -47,7 +46,6 @@
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── def_keyword_loc: (2,0)-(2,3) = "def"
│ │ │ │ │ ├── operator_loc: ∅
│ │ │ │ │ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/bug_args__19.txt b/test/prism/snapshots/seattlerb/bug_args__19.txt
index ec17de9a2e..f451bd0172 100644
--- a/test/prism/snapshots/seattlerb/bug_args__19.txt
+++ b/test/prism/snapshots/seattlerb/bug_args__19.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,16))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn.txt b/test/prism/snapshots/seattlerb/bug_args_masgn.txt
index 1ea7d0555e..297979c182 100644
--- a/test/prism/snapshots/seattlerb/bug_args_masgn.txt
+++ b/test/prism/snapshots/seattlerb/bug_args_masgn.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt
index 947c9cdfd3..6bec9187b3 100644
--- a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt
+++ b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,22))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,20))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt b/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt
index 615e6445b7..42a060d02a 100644
--- a/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt
+++ b/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,19))
├── locals: [:k, :v, :i]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,17))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt
index d65ec901c3..8c64721870 100644
--- a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt
+++ b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt
@@ -35,7 +35,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,6)-(1,9) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -74,7 +73,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (6,6)-(6,9) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (6,11)-(6,12) = "("
diff --git a/test/prism/snapshots/seattlerb/bug_masgn_right.txt b/test/prism/snapshots/seattlerb/bug_masgn_right.txt
index d84a59d97f..b4c75c4607 100644
--- a/test/prism/snapshots/seattlerb/bug_masgn_right.txt
+++ b/test/prism/snapshots/seattlerb/bug_masgn_right.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/call_array_block_call.txt b/test/prism/snapshots/seattlerb/call_array_block_call.txt
index 521da4a202..e02740e7f5 100644
--- a/test/prism/snapshots/seattlerb/call_array_block_call.txt
+++ b/test/prism/snapshots/seattlerb/call_array_block_call.txt
@@ -30,7 +30,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,11)-(1,17))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,11)-(1,13) = "do"
diff --git a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt
index ad2344e519..c6aa722812 100644
--- a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt
+++ b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt
@@ -19,7 +19,6 @@
│ ├── elements: (length: 1)
│ │ └── @ LambdaNode (location: (1,3)-(1,10))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (1,3)-(1,5) = "->"
│ │ ├── opening_loc: (1,8)-(1,9) = "{"
│ │ ├── closing_loc: (1,9)-(1,10) = "}"
@@ -36,7 +35,6 @@
└── block:
@ BlockNode (location: (1,12)-(2,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,12)-(1,14) = "do"
diff --git a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt
index 2ce751ae22..1aa994c8e6 100644
--- a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt
+++ b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt
@@ -41,7 +41,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (2,4)-(2,10))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (2,4)-(2,6) = "do"
diff --git a/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt b/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt
index 180f03b4e3..295a68dcba 100644
--- a/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt
+++ b/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (1,2)-(1,13))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,2)-(1,4) = "->"
│ ├── opening_loc: (1,5)-(1,7) = "do"
│ ├── closing_loc: (1,10)-(1,13) = "end"
@@ -30,7 +29,6 @@
└── block:
@ BlockNode (location: (1,14)-(1,22))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,17)-(1,18))
diff --git a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
index a02923b521..ee2a20aabd 100644
--- a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
+++ b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (1,2)-(1,10))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,2)-(1,4) = "->"
│ ├── opening_loc: (1,5)-(1,6) = "{"
│ ├── closing_loc: (1,9)-(1,10) = "}"
@@ -30,7 +29,6 @@
└── block:
@ BlockNode (location: (1,11)-(1,19))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,14)-(1,15))
diff --git a/test/prism/snapshots/seattlerb/case_in.txt b/test/prism/snapshots/seattlerb/case_in.txt
index 069dec1938..496909e4df 100644
--- a/test/prism/snapshots/seattlerb/case_in.txt
+++ b/test/prism/snapshots/seattlerb/case_in.txt
@@ -552,7 +552,6 @@
│ │ │ ├── requireds: (length: 2)
│ │ │ │ ├── @ LambdaNode (location: (70,4)-(70,18))
│ │ │ │ │ ├── locals: [:b]
- │ │ │ │ │ ├── locals_body_index: 1
│ │ │ │ │ ├── operator_loc: (70,4)-(70,6) = "->"
│ │ │ │ │ ├── opening_loc: (70,10)-(70,11) = "{"
│ │ │ │ │ ├── closing_loc: (70,17)-(70,18) = "}"
diff --git a/test/prism/snapshots/seattlerb/class_comments.txt b/test/prism/snapshots/seattlerb/class_comments.txt
index 47e2043df6..5ac05b6be6 100644
--- a/test/prism/snapshots/seattlerb/class_comments.txt
+++ b/test/prism/snapshots/seattlerb/class_comments.txt
@@ -21,7 +21,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (6,2)-(6,5) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/dasgn_icky2.txt b/test/prism/snapshots/seattlerb/dasgn_icky2.txt
index 881c3ce188..e118362f87 100644
--- a/test/prism/snapshots/seattlerb/dasgn_icky2.txt
+++ b/test/prism/snapshots/seattlerb/dasgn_icky2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(8,3))
├── locals: [:v]
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (2,2)-(7,5))
diff --git a/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt b/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt
index fc726fe4de..3f2bdf44a4 100644
--- a/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt
+++ b/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt
@@ -29,7 +29,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:interp, :args]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,8)-(1,9) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt
index 2068a8011b..4121770c5c 100644
--- a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt
+++ b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt
@@ -41,7 +41,6 @@
│ ├── closing_loc: (1,23)-(1,24) = ")"
│ └── block: ∅
├── locals: [:x]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt
index b6802c2fd8..178b6ccde7 100644
--- a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt
+++ b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt
@@ -53,7 +53,6 @@
│ ├── closing_loc: (1,35)-(1,36) = ")"
│ └── block: ∅
├── locals: [:x, :y, :z]
- ├── locals_body_index: 3
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_comments.txt b/test/prism/snapshots/seattlerb/defn_comments.txt
index bc4ba5462b..585aa65c9a 100644
--- a/test/prism/snapshots/seattlerb/defn_comments.txt
+++ b/test/prism/snapshots/seattlerb/defn_comments.txt
@@ -10,7 +10,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (4,0)-(4,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command.txt b/test/prism/snapshots/seattlerb/defn_endless_command.txt
index ae1a32bb27..b75ef779bb 100644
--- a/test/prism/snapshots/seattlerb/defn_endless_command.txt
+++ b/test/prism/snapshots/seattlerb/defn_endless_command.txt
@@ -27,7 +27,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt
index d649437c30..487be865ea 100644
--- a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt
@@ -33,7 +33,6 @@
│ @ IntegerNode (location: (1,41)-(1,43))
│ └── flags: decimal
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_forward_args.txt b/test/prism/snapshots/seattlerb/defn_forward_args.txt
index e13c469f87..71a984c811 100644
--- a/test/prism/snapshots/seattlerb/defn_forward_args.txt
+++ b/test/prism/snapshots/seattlerb/defn_forward_args.txt
@@ -35,7 +35,6 @@
│ ├── closing_loc: (1,17)-(1,18) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt
index 8b62141c99..4a4d69e4d0 100644
--- a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt
+++ b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt
@@ -35,7 +35,6 @@
│ ├── closing_loc: (2,7)-(2,8) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt
index c0abf7f99a..f420420fc3 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt
@@ -47,7 +47,6 @@
│ ├── closing_loc: (1,40)-(1,41) = ")"
│ └── block: ∅
├── locals: [:testing]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,8)-(1,9) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt
index 4bad9a69d9..d0f2cbada6 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt
@@ -35,7 +35,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt
index 8aafbb0e48..d6e867d77d 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt
@@ -30,7 +30,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
index d1cab9b225..f5fb41836a 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
@@ -30,7 +30,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:b]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt b/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt
index 2e920f9a2e..0eae56924c 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt
@@ -34,7 +34,6 @@
│ ├── name: :kw
│ └── depth: 0
├── locals: [:kw]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt b/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt
index df04231ea4..67d120e13b 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt
@@ -25,7 +25,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_val.txt b/test/prism/snapshots/seattlerb/defn_kwarg_val.txt
index 61c3dd29bd..2b52aff2ca 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_val.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_val.txt
@@ -28,7 +28,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_no_kwargs.txt b/test/prism/snapshots/seattlerb/defn_no_kwargs.txt
index 868fe3d202..0ef0634a53 100644
--- a/test/prism/snapshots/seattlerb/defn_no_kwargs.txt
+++ b/test/prism/snapshots/seattlerb/defn_no_kwargs.txt
@@ -21,7 +21,6 @@
│ └── block: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner.txt b/test/prism/snapshots/seattlerb/defn_oneliner.txt
index d100d10eab..e700499809 100644
--- a/test/prism/snapshots/seattlerb/defn_oneliner.txt
+++ b/test/prism/snapshots/seattlerb/defn_oneliner.txt
@@ -39,7 +39,6 @@
│ ├── closing_loc: (1,26)-(1,27) = ")"
│ └── block: ∅
├── locals: [:cmd]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,8)-(1,9) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt b/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt
index 31418f1116..be3dd8cb99 100644
--- a/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt
+++ b/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt
@@ -36,7 +36,6 @@
│ │ └── @ IntegerNode (location: (2,14)-(2,16))
│ │ └── flags: decimal
│ ├── locals: [:o]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (2,2)-(2,5) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (2,8)-(2,9) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt b/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt
index 5ca8fcad64..54555b1a23 100644
--- a/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt
+++ b/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt
@@ -22,7 +22,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt b/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt
index 6f02f29508..e0fc4636f1 100644
--- a/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt
+++ b/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt
@@ -22,7 +22,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,8)-(1,9) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt b/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt
index bb23f56c70..3cfd09f16f 100644
--- a/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt
@@ -56,7 +56,6 @@
│ │ ├── ensure_clause: ∅
│ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
│ ├── locals: [:cmd]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,8)-(1,9) = "("
@@ -104,7 +103,6 @@
│ │ └── rescue_expression:
│ │ @ NilNode (location: (9,21)-(9,24))
│ ├── locals: [:cmd]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (8,0)-(8,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (8,8)-(8,9) = "("
@@ -152,7 +150,6 @@
│ └── rescue_expression:
│ @ NilNode (location: (13,35)-(13,38))
├── locals: [:cmd]
- ├── locals_body_index: 1
├── def_keyword_loc: (13,0)-(13,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (13,8)-(13,9) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt b/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt
index 05a4cec869..569bc23078 100644
--- a/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt
+++ b/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt
@@ -25,7 +25,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:arg]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_opt_reg.txt b/test/prism/snapshots/seattlerb/defn_opt_reg.txt
index 34b1faafa6..f86168513a 100644
--- a/test/prism/snapshots/seattlerb/defn_opt_reg.txt
+++ b/test/prism/snapshots/seattlerb/defn_opt_reg.txt
@@ -28,7 +28,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt b/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt
index 7cd554222e..ba394bbf1a 100644
--- a/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt
@@ -34,7 +34,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,6)-(1,7) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_powarg.txt b/test/prism/snapshots/seattlerb/defn_powarg.txt
index 5e756ca342..bce131ad18 100644
--- a/test/prism/snapshots/seattlerb/defn_powarg.txt
+++ b/test/prism/snapshots/seattlerb/defn_powarg.txt
@@ -23,7 +23,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:opts]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt b/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt
index fd68d67329..d079e1b5f3 100644
--- a/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt
+++ b/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt
@@ -36,7 +36,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b, :d]
- ├── locals_body_index: 3
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_splat_arg.txt b/test/prism/snapshots/seattlerb/defn_splat_arg.txt
index a187ae49a8..109fac495a 100644
--- a/test/prism/snapshots/seattlerb/defn_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/defn_splat_arg.txt
@@ -26,7 +26,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/defn_unary_not.txt b/test/prism/snapshots/seattlerb/defn_unary_not.txt
index a10614fd2a..df2e3a87bb 100644
--- a/test/prism/snapshots/seattlerb/defn_unary_not.txt
+++ b/test/prism/snapshots/seattlerb/defn_unary_not.txt
@@ -13,7 +13,6 @@
│ └── body: (length: 1)
│ └── @ TrueNode (location: (1,8)-(1,12))
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defns_reserved.txt b/test/prism/snapshots/seattlerb/defns_reserved.txt
index 97ed2d542e..96860b49ce 100644
--- a/test/prism/snapshots/seattlerb/defns_reserved.txt
+++ b/test/prism/snapshots/seattlerb/defns_reserved.txt
@@ -11,7 +11,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: (1,8)-(1,9) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt b/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt
index 09dfef8a25..24bb14f8e1 100644
--- a/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt
+++ b/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt
@@ -45,13 +45,11 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,18)-(1,25))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,18)-(1,20) = "do"
│ │ └── closing_loc: (1,22)-(1,25) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,2)-(1,5) = "def"
│ ├── operator_loc: (1,10)-(1,11) = "."
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_comments.txt b/test/prism/snapshots/seattlerb/defs_comments.txt
index a25b50614d..a2976e7ee2 100644
--- a/test/prism/snapshots/seattlerb/defs_comments.txt
+++ b/test/prism/snapshots/seattlerb/defs_comments.txt
@@ -11,7 +11,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (4,0)-(4,3) = "def"
├── operator_loc: (4,8)-(4,9) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command.txt b/test/prism/snapshots/seattlerb/defs_endless_command.txt
index d9b75ea865..70471e97ad 100644
--- a/test/prism/snapshots/seattlerb/defs_endless_command.txt
+++ b/test/prism/snapshots/seattlerb/defs_endless_command.txt
@@ -37,7 +37,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: (1,5)-(1,6) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
index 72379d9337..1848d4233e 100644
--- a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
@@ -43,7 +43,6 @@
│ @ IntegerNode (location: (1,43)-(1,45))
│ └── flags: decimal
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: (1,5)-(1,6) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_kwarg.txt b/test/prism/snapshots/seattlerb/defs_kwarg.txt
index f96c6264a0..4a481ffe87 100644
--- a/test/prism/snapshots/seattlerb/defs_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/defs_kwarg.txt
@@ -26,7 +26,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:b]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: (1,8)-(1,9) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_oneliner.txt b/test/prism/snapshots/seattlerb/defs_oneliner.txt
index dbbb5e172b..d32975354d 100644
--- a/test/prism/snapshots/seattlerb/defs_oneliner.txt
+++ b/test/prism/snapshots/seattlerb/defs_oneliner.txt
@@ -40,7 +40,6 @@
│ ├── closing_loc: (1,31)-(1,32) = ")"
│ └── block: ∅
├── locals: [:cmd]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: (1,8)-(1,9) = "."
├── lparen_loc: (1,13)-(1,14) = "("
diff --git a/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt b/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt
index 868efde81f..15843bb1f8 100644
--- a/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt
+++ b/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt
@@ -37,7 +37,6 @@
│ │ └── @ IntegerNode (location: (2,19)-(2,21))
│ │ └── flags: decimal
│ ├── locals: [:o]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (2,2)-(2,5) = "def"
│ ├── operator_loc: (2,10)-(2,11) = "."
│ ├── lparen_loc: (2,13)-(2,14) = "("
diff --git a/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt b/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt
index 80d0332823..46a65e50d6 100644
--- a/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt
@@ -57,7 +57,6 @@
│ │ ├── ensure_clause: ∅
│ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
│ ├── locals: [:cmd]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: (1,8)-(1,9) = "."
│ ├── lparen_loc: (1,13)-(1,14) = "("
@@ -106,7 +105,6 @@
│ │ └── rescue_expression:
│ │ @ NilNode (location: (9,21)-(9,24))
│ ├── locals: [:cmd]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (8,0)-(8,3) = "def"
│ ├── operator_loc: (8,8)-(8,9) = "."
│ ├── lparen_loc: (8,13)-(8,14) = "("
@@ -155,7 +153,6 @@
│ └── rescue_expression:
│ @ NilNode (location: (13,40)-(13,43))
├── locals: [:cmd]
- ├── locals_body_index: 1
├── def_keyword_loc: (13,0)-(13,3) = "def"
├── operator_loc: (13,8)-(13,9) = "."
├── lparen_loc: (13,13)-(13,14) = "("
diff --git a/test/prism/snapshots/seattlerb/difficult3_.txt b/test/prism/snapshots/seattlerb/difficult3_.txt
index 4d5051d564..f074c49a9f 100644
--- a/test/prism/snapshots/seattlerb/difficult3_.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,18))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,16))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3_2.txt b/test/prism/snapshots/seattlerb/difficult3_2.txt
index 842c3e86a1..af1a649171 100644
--- a/test/prism/snapshots/seattlerb/difficult3_2.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,13))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3_3.txt b/test/prism/snapshots/seattlerb/difficult3_3.txt
index bfc3a0329b..e49bbcd55a 100644
--- a/test/prism/snapshots/seattlerb/difficult3_3.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_3.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3_5.txt b/test/prism/snapshots/seattlerb/difficult3_5.txt
index 5c62fbed13..793c3f1e11 100644
--- a/test/prism/snapshots/seattlerb/difficult3_5.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_5.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (1,2)-(1,19))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,2)-(1,4) = "->"
│ ├── opening_loc: (1,7)-(1,8) = "{"
│ ├── closing_loc: (1,18)-(1,19) = "}"
@@ -41,7 +40,6 @@
│ └── block:
│ @ BlockNode (location: (1,11)-(1,17))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,11)-(1,13) = "do"
diff --git a/test/prism/snapshots/seattlerb/difficult3__10.txt b/test/prism/snapshots/seattlerb/difficult3__10.txt
index a7dc59371c..0131e44d44 100644
--- a/test/prism/snapshots/seattlerb/difficult3__10.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__10.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,18))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,16))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3__11.txt b/test/prism/snapshots/seattlerb/difficult3__11.txt
index 5b393885a3..a658b091c2 100644
--- a/test/prism/snapshots/seattlerb/difficult3__11.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__11.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:a]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3__12.txt b/test/prism/snapshots/seattlerb/difficult3__12.txt
index 71be50a515..5aa252fe6a 100644
--- a/test/prism/snapshots/seattlerb/difficult3__12.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__12.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3__6.txt b/test/prism/snapshots/seattlerb/difficult3__6.txt
index 77d14c992d..a42a625be7 100644
--- a/test/prism/snapshots/seattlerb/difficult3__6.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__6.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,21))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,19))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3__7.txt b/test/prism/snapshots/seattlerb/difficult3__7.txt
index c21a92d5ec..b08025804c 100644
--- a/test/prism/snapshots/seattlerb/difficult3__7.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__7.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3__8.txt b/test/prism/snapshots/seattlerb/difficult3__8.txt
index 0c437bddc1..b2b118faef 100644
--- a/test/prism/snapshots/seattlerb/difficult3__8.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__8.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,20))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,18))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult3__9.txt b/test/prism/snapshots/seattlerb/difficult3__9.txt
index eec21b775c..85c10a4432 100644
--- a/test/prism/snapshots/seattlerb/difficult3__9.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__9.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,15))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,13))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/difficult6_.txt b/test/prism/snapshots/seattlerb/difficult6_.txt
index 70cd8b29fc..bf80034fe9 100644
--- a/test/prism/snapshots/seattlerb/difficult6_.txt
+++ b/test/prism/snapshots/seattlerb/difficult6_.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,25))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,13)-(1,14) = "{"
├── closing_loc: (1,24)-(1,25) = "}"
diff --git a/test/prism/snapshots/seattlerb/difficult6__7.txt b/test/prism/snapshots/seattlerb/difficult6__7.txt
index c43a9712c1..a135b3b41b 100644
--- a/test/prism/snapshots/seattlerb/difficult6__7.txt
+++ b/test/prism/snapshots/seattlerb/difficult6__7.txt
@@ -36,7 +36,6 @@
└── block:
@ BlockNode (location: (1,8)-(1,11))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,9)-(1,10))
diff --git a/test/prism/snapshots/seattlerb/difficult6__8.txt b/test/prism/snapshots/seattlerb/difficult6__8.txt
index 956f9a53db..a19057e44b 100644
--- a/test/prism/snapshots/seattlerb/difficult6__8.txt
+++ b/test/prism/snapshots/seattlerb/difficult6__8.txt
@@ -36,7 +36,6 @@
└── block:
@ BlockNode (location: (1,9)-(1,12))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,10)-(1,11))
diff --git a/test/prism/snapshots/seattlerb/difficult7_.txt b/test/prism/snapshots/seattlerb/difficult7_.txt
index 0c71a1ad24..40c778cf6c 100644
--- a/test/prism/snapshots/seattlerb/difficult7_.txt
+++ b/test/prism/snapshots/seattlerb/difficult7_.txt
@@ -27,7 +27,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (2,18)-(2,33))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (2,20)-(2,31))
diff --git a/test/prism/snapshots/seattlerb/do_bug.txt b/test/prism/snapshots/seattlerb/do_bug.txt
index a520f5ba20..fa13e431d5 100644
--- a/test/prism/snapshots/seattlerb/do_bug.txt
+++ b/test/prism/snapshots/seattlerb/do_bug.txt
@@ -40,7 +40,6 @@
└── block:
@ BlockNode (location: (2,4)-(4,3))
├── locals: [:c]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (2,7)-(2,10))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/do_lambda.txt b/test/prism/snapshots/seattlerb/do_lambda.txt
index 9de71cea2d..4713fb3e4b 100644
--- a/test/prism/snapshots/seattlerb/do_lambda.txt
+++ b/test/prism/snapshots/seattlerb/do_lambda.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,11))
├── locals: []
- ├── locals_body_index: 0
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,5)-(1,7) = "do"
├── closing_loc: (1,8)-(1,11) = "end"
diff --git a/test/prism/snapshots/seattlerb/f_kw.txt b/test/prism/snapshots/seattlerb/f_kw.txt
index f1aaa471f0..dfb79f98c9 100644
--- a/test/prism/snapshots/seattlerb/f_kw.txt
+++ b/test/prism/snapshots/seattlerb/f_kw.txt
@@ -25,7 +25,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:k]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/f_kw__required.txt b/test/prism/snapshots/seattlerb/f_kw__required.txt
index 6f64c71ae4..f72f43e034 100644
--- a/test/prism/snapshots/seattlerb/f_kw__required.txt
+++ b/test/prism/snapshots/seattlerb/f_kw__required.txt
@@ -22,7 +22,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:k]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_1.txt b/test/prism/snapshots/seattlerb/iter_args_1.txt
index 46775a253d..f76bbfc559 100644
--- a/test/prism/snapshots/seattlerb/iter_args_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,11))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,9))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_10_1.txt b/test/prism/snapshots/seattlerb/iter_args_10_1.txt
index 1f607cd2d3..14dbdc3c03 100644
--- a/test/prism/snapshots/seattlerb/iter_args_10_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_10_1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,21))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,19))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_10_2.txt b/test/prism/snapshots/seattlerb/iter_args_10_2.txt
index d15486a375..c0bc6d4362 100644
--- a/test/prism/snapshots/seattlerb/iter_args_10_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_10_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,25))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,23))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_11_1.txt b/test/prism/snapshots/seattlerb/iter_args_11_1.txt
index 972a0f1c90..c7f86d414d 100644
--- a/test/prism/snapshots/seattlerb/iter_args_11_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_11_1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,24))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,22))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_11_2.txt b/test/prism/snapshots/seattlerb/iter_args_11_2.txt
index 66b82cb507..545f279008 100644
--- a/test/prism/snapshots/seattlerb/iter_args_11_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_11_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,28))
├── locals: [:a, :b, :c, :d, :e]
- ├── locals_body_index: 5
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,26))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_2__19.txt b/test/prism/snapshots/seattlerb/iter_args_2__19.txt
index 3d7d251e3b..a905286f47 100644
--- a/test/prism/snapshots/seattlerb/iter_args_2__19.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_2__19.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,14))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,12))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_3.txt b/test/prism/snapshots/seattlerb/iter_args_3.txt
index 6cd964d27b..66782f0793 100644
--- a/test/prism/snapshots/seattlerb/iter_args_3.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_3.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,20))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,18))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_4.txt b/test/prism/snapshots/seattlerb/iter_args_4.txt
index d2622965d6..c4f2b47a03 100644
--- a/test/prism/snapshots/seattlerb/iter_args_4.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_4.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,16))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,14))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_5.txt b/test/prism/snapshots/seattlerb/iter_args_5.txt
index 4f121beccd..44940629b4 100644
--- a/test/prism/snapshots/seattlerb/iter_args_5.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_5.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,13))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_6.txt b/test/prism/snapshots/seattlerb/iter_args_6.txt
index 4e0c8e1150..768a5df47d 100644
--- a/test/prism/snapshots/seattlerb/iter_args_6.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_6.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,18))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,16))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_7_1.txt b/test/prism/snapshots/seattlerb/iter_args_7_1.txt
index 5e61efdaae..738c5f71ff 100644
--- a/test/prism/snapshots/seattlerb/iter_args_7_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_7_1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,18))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,16))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_7_2.txt b/test/prism/snapshots/seattlerb/iter_args_7_2.txt
index e1fa58d728..da9cf45c0f 100644
--- a/test/prism/snapshots/seattlerb/iter_args_7_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_7_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,22))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,20))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_8_1.txt b/test/prism/snapshots/seattlerb/iter_args_8_1.txt
index 46e1ab5f6b..4811772657 100644
--- a/test/prism/snapshots/seattlerb/iter_args_8_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_8_1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,21))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,19))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_8_2.txt b/test/prism/snapshots/seattlerb/iter_args_8_2.txt
index ecce85c3bf..a2019fce1b 100644
--- a/test/prism/snapshots/seattlerb/iter_args_8_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_8_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,25))
├── locals: [:a, :b, :c, :d]
- ├── locals_body_index: 4
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,23))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_9_1.txt b/test/prism/snapshots/seattlerb/iter_args_9_1.txt
index cb617efc7c..5655080be4 100644
--- a/test/prism/snapshots/seattlerb/iter_args_9_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_9_1.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_args_9_2.txt b/test/prism/snapshots/seattlerb/iter_args_9_2.txt
index 1488be20e2..ba21658660 100644
--- a/test/prism/snapshots/seattlerb/iter_args_9_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_9_2.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,21))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,19))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_kwarg.txt b/test/prism/snapshots/seattlerb/iter_kwarg.txt
index fc91eaa703..f5968e3340 100644
--- a/test/prism/snapshots/seattlerb/iter_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/iter_kwarg.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,12))
├── locals: [:b]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,10))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
index 5fcda7645e..14276baf88 100644
--- a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(1,17))
├── locals: [:b, :c]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,4)-(1,15))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt
index b0ecdc36e8..afc0d3d56f 100644
--- a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt
+++ b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt
@@ -16,7 +16,6 @@
│ │ └── arguments: (length: 1)
│ │ └── @ LambdaNode (location: (1,2)-(1,11))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (1,2)-(1,4) = "->"
│ │ ├── opening_loc: (1,5)-(1,7) = "do"
│ │ ├── closing_loc: (1,8)-(1,11) = "end"
@@ -37,7 +36,6 @@
│ │ └── arguments: (length: 1)
│ │ └── @ LambdaNode (location: (3,2)-(3,7))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (3,2)-(3,4) = "->"
│ │ ├── opening_loc: (3,5)-(3,6) = "{"
│ │ ├── closing_loc: (3,6)-(3,7) = "}"
@@ -58,7 +56,6 @@
│ │ └── arguments: (length: 1)
│ │ └── @ LambdaNode (location: (5,2)-(5,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (5,2)-(5,4) = "->"
│ │ ├── opening_loc: (5,7)-(5,9) = "do"
│ │ ├── closing_loc: (5,10)-(5,13) = "end"
@@ -84,7 +81,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (7,2)-(7,9))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (7,2)-(7,4) = "->"
│ ├── opening_loc: (7,7)-(7,8) = "{"
│ ├── closing_loc: (7,8)-(7,9) = "}"
diff --git a/test/prism/snapshots/seattlerb/magic_encoding_comment.txt b/test/prism/snapshots/seattlerb/magic_encoding_comment.txt
index ce6e432133..9c4ca884d2 100644
--- a/test/prism/snapshots/seattlerb/magic_encoding_comment.txt
+++ b/test/prism/snapshots/seattlerb/magic_encoding_comment.txt
@@ -36,7 +36,6 @@
│ │ │ └── unescaped: "però"
│ │ └── operator_loc: (2,55)-(2,56) = "="
│ ├── locals: [:così]
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (2,36)-(2,39) = "def"
│ ├── operator_loc: (2,44)-(2,45) = "."
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/module_comments.txt b/test/prism/snapshots/seattlerb/module_comments.txt
index 8e8b2fd9cc..2785187a29 100644
--- a/test/prism/snapshots/seattlerb/module_comments.txt
+++ b/test/prism/snapshots/seattlerb/module_comments.txt
@@ -19,7 +19,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,2)-(7,5) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_def_special_name.txt b/test/prism/snapshots/seattlerb/parse_def_special_name.txt
index 1373229932..dfbfe8a391 100644
--- a/test/prism/snapshots/seattlerb/parse_def_special_name.txt
+++ b/test/prism/snapshots/seattlerb/parse_def_special_name.txt
@@ -10,7 +10,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt
index 1688e88c78..8a0fcd63af 100644
--- a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,2)-(3,3))
├── locals: [:x, :y]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,5)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt
index cd61a9897e..9a437d367c 100644
--- a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt
@@ -57,7 +57,6 @@
│ ├── name: :y
│ └── depth: 0
├── locals: [:y]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt
index e9d68521e4..74240322ac 100644
--- a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt
@@ -10,7 +10,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -24,7 +23,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt
index aebf2cf933..8445743293 100644
--- a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt
@@ -21,7 +21,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt b/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt
index cd721a3fea..8d9dbf24ab 100644
--- a/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt
@@ -28,7 +28,6 @@
└── block:
@ BlockNode (location: (1,4)-(3,3))
├── locals: [:x, :y]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,7)-(1,13))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt
index 2fba775aac..663d870137 100644
--- a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt
@@ -28,7 +28,6 @@
└── block:
@ BlockNode (location: (1,5)-(3,3))
├── locals: [:x, :y]
- ├── locals_body_index: 2
├── parameters:
│ @ BlockParametersNode (location: (1,8)-(1,14))
│ ├── parameters:
diff --git a/test/prism/snapshots/seattlerb/parse_line_return.txt b/test/prism/snapshots/seattlerb/parse_line_return.txt
index fc83061d01..9c4a5a1768 100644
--- a/test/prism/snapshots/seattlerb/parse_line_return.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_return.txt
@@ -30,7 +30,6 @@
│ ├── consequent: ∅
│ └── end_keyword_loc: (4,8)-(4,11) = "end"
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,6)-(1,9) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/pipe_semicolon.txt b/test/prism/snapshots/seattlerb/pipe_semicolon.txt
index cf26a2951e..71fb4fbed5 100644
--- a/test/prism/snapshots/seattlerb/pipe_semicolon.txt
+++ b/test/prism/snapshots/seattlerb/pipe_semicolon.txt
@@ -25,7 +25,6 @@
└── block:
@ BlockNode (location: (1,4)-(1,18))
├── locals: [:c]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,7)-(1,14))
│ ├── parameters: ∅
diff --git a/test/prism/snapshots/seattlerb/pipe_space.txt b/test/prism/snapshots/seattlerb/pipe_space.txt
index e1a9ebe9df..302d225337 100644
--- a/test/prism/snapshots/seattlerb/pipe_space.txt
+++ b/test/prism/snapshots/seattlerb/pipe_space.txt
@@ -25,7 +25,6 @@
└── block:
@ BlockNode (location: (1,4)-(1,14))
├── locals: []
- ├── locals_body_index: 0
├── parameters:
│ @ BlockParametersNode (location: (1,7)-(1,10))
│ ├── parameters: ∅
diff --git a/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt b/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt
index 922817c191..54595ac5cb 100644
--- a/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt
+++ b/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt
@@ -26,7 +26,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt
index 761565352b..76e8ac396a 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt
@@ -18,7 +18,6 @@
│ └── block:
│ @ BlockNode (location: (1,5)-(5,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (2,2)-(5,3))
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
index 4d6d8f6f18..3f4ea6a780 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,4)-(9,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ BeginNode (location: (2,2)-(9,3))
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt
index b702acef56..b3183af989 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,4)-(5,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ BeginNode (location: (2,2)-(5,3))
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt
index c52a5e6a49..f5b7a91a7b 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,4)-(9,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ BeginNode (location: (2,2)-(9,3))
diff --git a/test/prism/snapshots/seattlerb/rescue_in_block.txt b/test/prism/snapshots/seattlerb/rescue_in_block.txt
index b13fed1333..f3d42aa548 100644
--- a/test/prism/snapshots/seattlerb/rescue_in_block.txt
+++ b/test/prism/snapshots/seattlerb/rescue_in_block.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,5)-(4,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ BeginNode (location: (2,0)-(4,3))
diff --git a/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt b/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt
index dddd22eb23..e665565d38 100644
--- a/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt
+++ b/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,5))
├── locals: [:a]
- ├── locals_body_index: 1
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,3)-(1,4) = "{"
├── closing_loc: (1,4)-(1,5) = "}"
diff --git a/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt
index d0d5885432..c3d70b6a76 100644
--- a/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt
+++ b/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,23))
├── locals: [:b, :c, :d, :e, :f]
- ├── locals_body_index: 5
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,21)-(1,22) = "{"
├── closing_loc: (1,22)-(1,23) = "}"
diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt
index 7091596e0b..e51c7d97ed 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (1,2)-(4,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,2)-(1,4) = "->"
│ ├── opening_loc: (1,8)-(1,10) = "do"
│ ├── closing_loc: (4,0)-(4,3) = "end"
@@ -51,7 +50,6 @@
│ └── block:
│ @ BlockNode (location: (2,4)-(3,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (2,4)-(2,6) = "do"
diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt
index 6942fa9fd6..9489b13a95 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (1,2)-(4,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,2)-(1,4) = "->"
│ ├── opening_loc: (1,8)-(1,10) = "do"
│ ├── closing_loc: (4,0)-(4,3) = "end"
@@ -46,7 +45,6 @@
│ └── block:
│ @ BlockNode (location: (2,5)-(3,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (2,5)-(2,7) = "do"
diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw.txt b/test/prism/snapshots/seattlerb/stabby_block_kw.txt
index 342145bb63..fd6bab809c 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_kw.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_kw.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,13))
├── locals: [:k]
- ├── locals_body_index: 1
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,10)-(1,11) = "{"
├── closing_loc: (1,12)-(1,13) = "}"
diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt b/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt
index ed34442272..b5040d91db 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,11))
├── locals: [:k]
- ├── locals_body_index: 1
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,8)-(1,9) = "{"
├── closing_loc: (1,10)-(1,11) = "}"
diff --git a/test/prism/snapshots/seattlerb/stabby_proc_scope.txt b/test/prism/snapshots/seattlerb/stabby_proc_scope.txt
index 38d9a455cb..898f823f24 100644
--- a/test/prism/snapshots/seattlerb/stabby_proc_scope.txt
+++ b/test/prism/snapshots/seattlerb/stabby_proc_scope.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,11))
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,9)-(1,10) = "{"
├── closing_loc: (1,10)-(1,11) = "}"
diff --git a/test/prism/snapshots/super.txt b/test/prism/snapshots/super.txt
index a3e9069b4a..068e407e9d 100644
--- a/test/prism/snapshots/super.txt
+++ b/test/prism/snapshots/super.txt
@@ -71,7 +71,6 @@
│ └── block:
│ @ BlockNode (location: (13,6)-(13,8))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (13,6)-(13,7) = "{"
@@ -93,7 +92,6 @@
│ └── block:
│ @ BlockNode (location: (15,15)-(15,17))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (15,15)-(15,16) = "{"
diff --git a/test/prism/snapshots/unparser/corpus/literal/block.txt b/test/prism/snapshots/unparser/corpus/literal/block.txt
index 17cde39e64..1cf3823e48 100644
--- a/test/prism/snapshots/unparser/corpus/literal/block.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/block.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,4)-(2,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,4)-(1,5) = "{"
@@ -32,7 +31,6 @@
│ └── block:
│ @ BlockNode (location: (3,4)-(4,1))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (3,6)-(3,9))
│ │ ├── parameters:
@@ -65,7 +63,6 @@
│ └── block:
│ @ BlockNode (location: (5,4)-(6,1))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (5,6)-(5,10))
│ │ ├── parameters:
@@ -99,7 +96,6 @@
│ └── block:
│ @ BlockNode (location: (7,4)-(8,1))
│ ├── locals: [:a, :x]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (7,6)-(7,13))
│ │ ├── parameters:
@@ -136,7 +132,6 @@
│ └── block:
│ @ BlockNode (location: (9,4)-(10,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (9,6)-(9,12))
│ │ ├── parameters:
@@ -177,7 +172,6 @@
│ └── block:
│ @ BlockNode (location: (11,7)-(13,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (12,2)-(12,5))
@@ -197,7 +191,6 @@
│ └── block:
│ @ BlockNode (location: (14,4)-(16,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (14,6)-(14,13))
│ │ ├── parameters:
@@ -238,7 +231,6 @@
│ └── block:
│ @ BlockNode (location: (17,4)-(19,1))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (17,6)-(17,12))
│ │ ├── parameters:
@@ -279,7 +271,6 @@
│ └── block:
│ @ BlockNode (location: (20,4)-(22,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (21,2)-(21,5))
@@ -318,7 +309,6 @@
│ └── block:
│ @ BlockNode (location: (23,8)-(25,1))
│ ├── locals: [:a, :b, :c]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (23,10)-(23,21))
│ │ ├── parameters:
@@ -385,7 +375,6 @@
│ └── block:
│ @ BlockNode (location: (26,8)-(27,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (26,10)-(26,17))
│ │ ├── parameters:
@@ -433,7 +422,6 @@
│ └── block:
│ @ BlockNode (location: (28,8)-(29,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (28,10)-(28,16))
│ │ ├── parameters:
@@ -479,7 +467,6 @@
│ └── block:
│ @ BlockNode (location: (30,8)-(31,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (30,10)-(30,18))
│ │ ├── parameters: ∅
@@ -517,7 +504,6 @@
│ └── block:
│ @ BlockNode (location: (32,8)-(34,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters:
│ │ @ BlockParametersNode (location: (32,10)-(32,13))
│ │ ├── parameters:
@@ -574,7 +560,6 @@
│ └── block:
│ @ BlockNode (location: (35,8)-(37,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters:
│ │ @ BlockParametersNode (location: (35,10)-(35,15))
│ │ ├── parameters:
@@ -635,7 +620,6 @@
│ └── block:
│ @ BlockNode (location: (38,8)-(40,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters:
│ │ @ BlockParametersNode (location: (38,10)-(38,17))
│ │ ├── parameters:
@@ -702,7 +686,6 @@
│ └── block:
│ @ BlockNode (location: (41,8)-(43,1))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (41,10)-(41,20))
│ │ ├── parameters:
@@ -772,7 +755,6 @@
│ └── block:
│ @ BlockNode (location: (44,8)-(46,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (44,10)-(44,18))
│ │ ├── parameters:
@@ -839,7 +821,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (47,8)-(48,1))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (47,8)-(47,9) = "{"
@@ -863,7 +844,6 @@
│ └── block:
│ @ BlockNode (location: (49,2)-(51,3))
│ ├── locals: [:e]
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (50,0)-(51,3))
@@ -899,7 +879,6 @@
│ └── block:
│ @ BlockNode (location: (52,2)-(56,3))
│ ├── locals: [:bar]
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (53,2)-(56,3))
@@ -952,7 +931,6 @@
│ └── block:
│ @ BlockNode (location: (57,2)-(61,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (58,2)-(61,3))
@@ -1022,7 +1000,6 @@
│ └── block:
│ @ BlockNode (location: (62,2)-(66,3))
│ ├── locals: [:exception]
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (63,2)-(66,3))
@@ -1095,7 +1072,6 @@
│ └── block:
│ @ BlockNode (location: (67,2)-(71,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (68,2)-(71,3))
@@ -1163,7 +1139,6 @@
│ └── block:
│ @ BlockNode (location: (72,2)-(75,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (73,2)-(75,3))
@@ -1208,7 +1183,6 @@
│ └── block:
│ @ BlockNode (location: (76,2)-(81,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (77,2)-(81,3))
@@ -1267,7 +1241,6 @@
│ └── block:
│ @ BlockNode (location: (82,2)-(86,3))
│ ├── locals: [:exception]
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (83,2)-(86,3))
@@ -1338,7 +1311,6 @@
│ └── block:
│ @ BlockNode (location: (87,2)-(89,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (88,0)-(89,3))
@@ -1366,7 +1338,6 @@
│ └── block:
│ @ BlockNode (location: (90,2)-(93,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (91,0)-(93,3))
@@ -1401,7 +1372,6 @@
└── block:
@ BlockNode (location: (94,4)-(96,1))
├── locals: [:_1, :_2]
- ├── locals_body_index: 2
├── parameters:
│ @ NumberedParametersNode (location: (94,4)-(96,1))
│ └── maximum: 2
diff --git a/test/prism/snapshots/unparser/corpus/literal/class.txt b/test/prism/snapshots/unparser/corpus/literal/class.txt
index bb967ca69a..34eb03edb3 100644
--- a/test/prism/snapshots/unparser/corpus/literal/class.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/class.txt
@@ -208,7 +208,6 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "bar"
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (29,2)-(29,5) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/def.txt b/test/prism/snapshots/unparser/corpus/literal/def.txt
index b6d88a4e0f..f1ee5dd046 100644
--- a/test/prism/snapshots/unparser/corpus/literal/def.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/def.txt
@@ -80,7 +80,6 @@
│ │ │ └── end_keyword_loc: (9,0)-(9,3) = "end"
│ │ └── end_keyword_loc: (9,0)-(9,3) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -178,7 +177,6 @@
│ │ │ └── end_keyword_loc: (19,0)-(19,3) = "end"
│ │ └── end_keyword_loc: (19,0)-(19,3) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (11,0)-(11,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -208,7 +206,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar, :baz]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (21,0)-(21,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (21,7)-(21,8) = "("
@@ -222,7 +219,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (24,0)-(24,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -248,7 +244,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (27,0)-(27,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -316,7 +311,6 @@
│ │ │ └── end_keyword_loc: (37,0)-(37,3) = "end"
│ │ └── end_keyword_loc: (37,0)-(37,3) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (31,0)-(31,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -365,7 +359,6 @@
│ │ │ └── end_keyword_loc: (43,0)-(43,3) = "end"
│ │ └── end_keyword_loc: (43,0)-(43,3) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (39,0)-(39,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -417,7 +410,6 @@
│ │ ├── ensure_clause: ∅
│ │ └── end_keyword_loc: (49,0)-(49,3) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (45,0)-(45,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -447,7 +439,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (51,0)-(51,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (51,7)-(51,8) = "("
@@ -480,7 +471,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar, :baz]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (55,0)-(55,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (55,7)-(55,8) = "("
@@ -517,7 +507,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (59,0)-(59,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (59,7)-(59,8) = "("
@@ -562,7 +551,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (63,0)-(63,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (63,7)-(63,8) = "("
@@ -596,7 +584,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (66,0)-(66,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (66,7)-(66,8) = "("
@@ -633,7 +620,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar, :baz]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (70,0)-(70,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (70,7)-(70,8) = "("
@@ -662,7 +648,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (74,0)-(74,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (74,7)-(74,8) = "("
@@ -699,7 +684,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (77,0)-(77,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (77,7)-(77,8) = "("
@@ -736,7 +720,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (80,0)-(80,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (80,7)-(80,8) = "("
@@ -775,7 +758,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (83,0)-(83,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (83,7)-(83,8) = "("
@@ -807,7 +789,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (87,0)-(87,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (87,7)-(87,8) = "("
@@ -842,7 +823,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar, :baz]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (91,0)-(91,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (91,7)-(91,8) = "("
@@ -888,7 +868,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:baz, :bor]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (95,0)-(95,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (95,7)-(95,8) = "("
@@ -939,7 +918,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:baz, :bor, :block]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (99,0)-(99,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (99,7)-(99,8) = "("
@@ -981,7 +959,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar, :baz, :bor]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (103,0)-(103,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (103,7)-(103,8) = "("
@@ -1020,7 +997,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:block]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (107,0)-(107,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (107,7)-(107,8) = "("
@@ -1055,7 +1031,6 @@
│ │ ├── name: :bar
│ │ └── depth: 0
│ ├── locals: [:bar, :block]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (111,0)-(111,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (111,7)-(111,8) = "("
@@ -1091,7 +1066,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (115,0)-(115,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1128,7 +1102,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (120,0)-(120,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (120,5)-(120,6) = "("
@@ -1165,7 +1138,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:bar, :baz]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (123,0)-(123,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (123,7)-(123,8) = "("
@@ -1201,7 +1173,6 @@
│ │ │ └── unescaped: "\n"
│ │ └── closing_loc: (129,0)-(130,0) = " HEREDOC\n"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (126,0)-(126,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1223,7 +1194,6 @@
│ ├── closing_loc: (133,4)-(133,5) = ")"
│ └── unescaped: ""
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (132,0)-(132,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/defs.txt b/test/prism/snapshots/unparser/corpus/literal/defs.txt
index 97bf48af32..c3c9acbbca 100644
--- a/test/prism/snapshots/unparser/corpus/literal/defs.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/defs.txt
@@ -11,7 +11,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: (1,8)-(1,9) = "."
│ ├── lparen_loc: ∅
@@ -38,7 +37,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (4,0)-(4,3) = "def"
│ ├── operator_loc: (4,8)-(4,9) = "."
│ ├── lparen_loc: ∅
@@ -75,7 +73,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (8,0)-(8,3) = "def"
│ ├── operator_loc: (8,8)-(8,9) = "."
│ ├── lparen_loc: ∅
@@ -103,7 +100,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (13,0)-(13,3) = "def"
│ ├── operator_loc: (13,7)-(13,8) = "."
│ ├── lparen_loc: ∅
@@ -128,7 +124,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (17,9)-(18,1))
│ │ │ ├── locals: [:bar]
- │ │ │ ├── locals_body_index: 1
│ │ │ ├── parameters:
│ │ │ │ @ BlockParametersNode (location: (17,11)-(17,16))
│ │ │ │ ├── parameters:
@@ -166,7 +161,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (17,0)-(17,3) = "def"
│ ├── operator_loc: (18,2)-(18,3) = "."
│ ├── lparen_loc: ∅
@@ -211,7 +205,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (22,0)-(22,3) = "def"
│ ├── operator_loc: (22,12)-(22,13) = "."
│ ├── lparen_loc: ∅
@@ -259,7 +252,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (26,0)-(26,3) = "def"
│ ├── operator_loc: (26,18)-(26,19) = "."
│ ├── lparen_loc: ∅
@@ -297,7 +289,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (30,0)-(30,3) = "def"
│ ├── operator_loc: (30,14)-(30,15) = "."
│ ├── lparen_loc: ∅
@@ -325,7 +316,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (34,0)-(34,3) = "def"
│ ├── operator_loc: (34,7)-(34,8) = "."
│ ├── lparen_loc: ∅
@@ -361,7 +351,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (38,0)-(38,3) = "def"
├── operator_loc: (38,7)-(38,8) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/dstr.txt b/test/prism/snapshots/unparser/corpus/literal/dstr.txt
index a960746a3e..cc3bfa4b31 100644
--- a/test/prism/snapshots/unparser/corpus/literal/dstr.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/dstr.txt
@@ -318,7 +318,6 @@
└── block:
@ BlockNode (location: (34,16)-(37,1))
├── locals: [:x]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (34,18)-(34,21))
│ ├── parameters:
diff --git a/test/prism/snapshots/unparser/corpus/literal/if.txt b/test/prism/snapshots/unparser/corpus/literal/if.txt
index e4f60f7d28..fbbda9b930 100644
--- a/test/prism/snapshots/unparser/corpus/literal/if.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/if.txt
@@ -232,7 +232,6 @@
│ └── block:
│ @ BlockNode (location: (31,7)-(33,1))
│ ├── locals: [:pair]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (31,9)-(31,15))
│ │ ├── parameters:
diff --git a/test/prism/snapshots/unparser/corpus/literal/lambda.txt b/test/prism/snapshots/unparser/corpus/literal/lambda.txt
index 3362989554..3594787bca 100644
--- a/test/prism/snapshots/unparser/corpus/literal/lambda.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/lambda.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,7)-(2,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,7)-(1,8) = "{"
@@ -32,7 +31,6 @@
│ └── block:
│ @ BlockNode (location: (3,7)-(5,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (3,9)-(3,15))
│ │ ├── parameters:
@@ -63,7 +61,6 @@
│ └── closing_loc: (5,0)-(5,1) = "}"
├── @ LambdaNode (location: (6,0)-(7,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (6,0)-(6,2) = "->"
│ ├── opening_loc: (6,5)-(6,6) = "{"
│ ├── closing_loc: (7,0)-(7,1) = "}"
@@ -76,7 +73,6 @@
│ └── body: ∅
├── @ LambdaNode (location: (8,0)-(9,1))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (8,0)-(8,2) = "->"
│ ├── opening_loc: (8,6)-(8,7) = "{"
│ ├── closing_loc: (9,0)-(9,1) = "}"
@@ -100,7 +96,6 @@
│ └── body: ∅
├── @ LambdaNode (location: (10,0)-(11,1))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── operator_loc: (10,0)-(10,2) = "->"
│ ├── opening_loc: (10,9)-(10,10) = "{"
│ ├── closing_loc: (11,0)-(11,1) = "}"
@@ -127,7 +122,6 @@
│ └── body: ∅
└── @ LambdaNode (location: (12,0)-(13,1))
├── locals: [:a, :b, :c]
- ├── locals_body_index: 3
├── operator_loc: (12,0)-(12,2) = "->"
├── opening_loc: (12,12)-(12,13) = "{"
├── closing_loc: (13,0)-(13,1) = "}"
diff --git a/test/prism/snapshots/unparser/corpus/literal/literal.txt b/test/prism/snapshots/unparser/corpus/literal/literal.txt
index 17df1565c5..e4545d1688 100644
--- a/test/prism/snapshots/unparser/corpus/literal/literal.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/literal.txt
@@ -1073,7 +1073,6 @@
│ └── block:
│ @ BlockNode (location: (83,4)-(86,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (84,2)-(85,7))
diff --git a/test/prism/snapshots/unparser/corpus/literal/module.txt b/test/prism/snapshots/unparser/corpus/literal/module.txt
index 178d27ce97..5dd8c03b51 100644
--- a/test/prism/snapshots/unparser/corpus/literal/module.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/module.txt
@@ -97,7 +97,6 @@
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "bar"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (13,2)-(13,5) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt
index d2a744c687..18608ca005 100644
--- a/test/prism/snapshots/unparser/corpus/literal/send.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/send.txt
@@ -162,7 +162,6 @@
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── def_keyword_loc: (16,6)-(16,9) = "def"
│ │ │ │ │ ├── operator_loc: ∅
│ │ │ │ │ ├── lparen_loc: ∅
@@ -271,7 +270,6 @@
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ │ ├── operator_loc: (25,8)-(25,9) = "."
│ │ ├── lparen_loc: ∅
@@ -295,7 +293,6 @@
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (27,0)-(27,3) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
@@ -376,7 +373,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (33,5)-(34,1))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (33,5)-(33,6) = "{"
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/27.txt b/test/prism/snapshots/unparser/corpus/literal/since/27.txt
index 2099e84209..64f3fd88b3 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/27.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/27.txt
@@ -5,7 +5,6 @@
└── body: (length: 2)
├── @ LambdaNode (location: (1,0)-(3,1))
│ ├── locals: [:_1, :_2]
- │ ├── locals_body_index: 2
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,3)-(1,4) = "{"
│ ├── closing_loc: (3,0)-(3,1) = "}"
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/31.txt b/test/prism/snapshots/unparser/corpus/literal/since/31.txt
index 09e94d6b7f..142a56ae83 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/31.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/31.txt
@@ -38,7 +38,6 @@
│ │ ├── expression: ∅
│ │ └── operator_loc: (2,6)-(2,7) = "&"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -83,7 +82,6 @@
│ ├── expression: ∅
│ └── operator_loc: (6,6)-(6,7) = "&"
├── locals: [:a]
- ├── locals_body_index: 1
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (5,7)-(5,8) = "("
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/32.txt b/test/prism/snapshots/unparser/corpus/literal/since/32.txt
index 9b7fa85fe0..ee8dd7f53d 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/32.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/32.txt
@@ -50,7 +50,6 @@
│ │ ├── closing_loc: (2,18)-(2,19) = ")"
│ │ └── block: ∅
│ ├── locals: [:argument]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -101,7 +100,6 @@
│ ├── closing_loc: (6,17)-(6,18) = ")"
│ └── block: ∅
├── locals: [:argument]
- ├── locals_body_index: 1
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (5,7)-(5,8) = "("
diff --git a/test/prism/snapshots/unparser/corpus/literal/super.txt b/test/prism/snapshots/unparser/corpus/literal/super.txt
index 14783f63f9..d5a7889919 100644
--- a/test/prism/snapshots/unparser/corpus/literal/super.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/super.txt
@@ -129,7 +129,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (7,8)-(9,1))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (8,2)-(8,5))
@@ -152,7 +151,6 @@
│ └── block:
│ @ BlockNode (location: (10,6)-(12,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (11,2)-(11,5))
@@ -190,7 +188,6 @@
│ └── block:
│ @ BlockNode (location: (13,9)-(15,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (14,2)-(14,5))
@@ -215,7 +212,6 @@
│ └── block:
│ @ BlockNode (location: (16,8)-(18,1))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (17,2)-(17,5))
@@ -263,7 +259,6 @@
└── block:
@ BlockNode (location: (19,12)-(21,1))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (20,2)-(20,5))
diff --git a/test/prism/snapshots/unparser/corpus/literal/while.txt b/test/prism/snapshots/unparser/corpus/literal/while.txt
index b2138fe9f3..67cd69db03 100644
--- a/test/prism/snapshots/unparser/corpus/literal/while.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/while.txt
@@ -24,7 +24,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (2,6)-(6,3))
│ │ ├── locals: [:bar, :foo]
- │ │ ├── locals_body_index: 1
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (2,8)-(2,13))
│ │ │ ├── parameters:
@@ -135,7 +134,6 @@
│ │ │ └── block: ∅
│ │ └── operator_loc: (10,6)-(10,7) = "="
│ ├── locals: [:foo]
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (9,0)-(9,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -284,7 +282,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (28,7)-(32,3))
│ │ ├── locals: [:baz, :foo]
- │ │ ├── locals_body_index: 1
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (28,9)-(28,14))
│ │ │ ├── parameters:
@@ -364,7 +361,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (36,7)-(40,3))
│ │ ├── locals: [:foo]
- │ │ ├── locals_body_index: 1
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (36,9)-(36,14))
│ │ │ ├── parameters:
@@ -635,7 +631,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (61,11)-(62,1))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (61,11)-(61,12) = "{"
@@ -690,7 +685,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (70,11)-(71,1))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (70,11)-(70,12) = "{"
diff --git a/test/prism/snapshots/unparser/corpus/semantic/block.txt b/test/prism/snapshots/unparser/corpus/semantic/block.txt
index 55190730db..4e4b6ea928 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/block.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/block.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,4)-(2,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,4)-(1,6) = "do"
@@ -32,7 +31,6 @@
│ └── block:
│ @ BlockNode (location: (4,4)-(6,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ BeginNode (location: (5,0)-(6,3))
@@ -63,7 +61,6 @@
│ └── block:
│ @ BlockNode (location: (8,4)-(11,3))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (9,2)-(10,5))
@@ -89,7 +86,6 @@
│ └── block:
│ @ BlockNode (location: (13,4)-(14,3))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (13,7)-(13,10))
│ │ ├── parameters:
@@ -131,7 +127,6 @@
│ └── block:
│ @ BlockNode (location: (16,12)-(20,3))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (16,15)-(16,18))
│ │ ├── parameters:
@@ -178,7 +173,6 @@
└── block:
@ BlockNode (location: (22,12)-(26,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (25,2)-(25,3))
diff --git a/test/prism/snapshots/unparser/corpus/semantic/def.txt b/test/prism/snapshots/unparser/corpus/semantic/def.txt
index 7398cad7a8..b44983c2f3 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/def.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/def.txt
@@ -51,7 +51,6 @@
│ │ ├── opening_loc: (2,2)-(2,3) = "("
│ │ └── closing_loc: (2,8)-(2,9) = ")"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -83,7 +82,6 @@
│ @ ConstantReadNode (location: (6,11)-(6,20))
│ └── name: :Exception
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/unparser/corpus/semantic/while.txt b/test/prism/snapshots/unparser/corpus/semantic/while.txt
index a59e5948d5..36bfba5be6 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/while.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/while.txt
@@ -20,7 +20,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,11)-(1,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,11)-(1,12) = "{"
@@ -55,7 +54,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (3,9)-(3,11))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (3,9)-(3,10) = "{"
@@ -130,7 +128,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (9,15)-(9,18))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (9,15)-(9,16) = "{"
@@ -202,7 +199,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (15,18)-(18,3))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (17,2)-(17,3))
diff --git a/test/prism/snapshots/while.txt b/test/prism/snapshots/while.txt
index e403efe869..3599bc4bb8 100644
--- a/test/prism/snapshots/while.txt
+++ b/test/prism/snapshots/while.txt
@@ -136,7 +136,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (13,27)-(13,33))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (13,27)-(13,29) = "do"
@@ -148,7 +147,6 @@
│ │ │ └── block: ∅
│ │ ├── body: ∅
│ │ ├── locals: [:a]
- │ │ ├── locals_body_index: 1
│ │ ├── def_keyword_loc: (13,6)-(13,9) = "def"
│ │ ├── operator_loc: (13,14)-(13,15) = "."
│ │ ├── lparen_loc: ∅
@@ -194,7 +192,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (15,24)-(15,30))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (15,24)-(15,26) = "do"
@@ -234,7 +231,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (17,25)-(17,31))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (17,25)-(17,27) = "do"
@@ -277,7 +273,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (19,29)-(19,35))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (19,29)-(19,31) = "do"
@@ -315,13 +310,11 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (21,20)-(21,26))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (21,20)-(21,22) = "do"
│ │ │ └── closing_loc: (21,23)-(21,26) = "end"
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (21,6)-(21,9) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/anonymous_blockarg.txt b/test/prism/snapshots/whitequark/anonymous_blockarg.txt
index da760b785f..92cf1504a9 100644
--- a/test/prism/snapshots/whitequark/anonymous_blockarg.txt
+++ b/test/prism/snapshots/whitequark/anonymous_blockarg.txt
@@ -38,7 +38,6 @@
│ ├── expression: ∅
│ └── operator_loc: (1,16)-(1,17) = "&"
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/arg.txt b/test/prism/snapshots/whitequark/arg.txt
index fc9f701631..38fdb190f3 100644
--- a/test/prism/snapshots/whitequark/arg.txt
+++ b/test/prism/snapshots/whitequark/arg.txt
@@ -21,7 +21,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,5)-(1,6) = "("
@@ -49,7 +48,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:foo, :bar]
- ├── locals_body_index: 2
├── def_keyword_loc: (3,0)-(3,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (3,5)-(3,6) = "("
diff --git a/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt b/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt
index a0778b8f7a..21dc1b7417 100644
--- a/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt
+++ b/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt
@@ -24,7 +24,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:_]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -52,7 +51,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:_a]
- ├── locals_body_index: 1
├── def_keyword_loc: (3,0)-(3,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (3,7)-(3,8) = "("
diff --git a/test/prism/snapshots/whitequark/arg_label.txt b/test/prism/snapshots/whitequark/arg_label.txt
index 16366c6e3c..b72ea59a5d 100644
--- a/test/prism/snapshots/whitequark/arg_label.txt
+++ b/test/prism/snapshots/whitequark/arg_label.txt
@@ -31,7 +31,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -66,7 +65,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (4,0)-(4,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (4,7)-(4,8) = "("
@@ -85,7 +83,6 @@
└── block:
@ BlockNode (location: (6,2)-(6,12))
├── locals: []
- ├── locals_body_index: 0
├── parameters:
│ @ BlockParametersNode (location: (6,4)-(6,6))
│ ├── parameters: ∅
diff --git a/test/prism/snapshots/whitequark/arg_scope.txt b/test/prism/snapshots/whitequark/arg_scope.txt
index 0a4788f4fd..c04356b8ee 100644
--- a/test/prism/snapshots/whitequark/arg_scope.txt
+++ b/test/prism/snapshots/whitequark/arg_scope.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,6)-(1,13))
├── locals: [:a]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,7)-(1,11))
│ ├── parameters: ∅
diff --git a/test/prism/snapshots/whitequark/args.txt b/test/prism/snapshots/whitequark/args.txt
index 53bd2ebbc3..3468650956 100644
--- a/test/prism/snapshots/whitequark/args.txt
+++ b/test/prism/snapshots/whitequark/args.txt
@@ -23,7 +23,6 @@
│ │ └── operator_loc: (1,6)-(1,7) = "&"
│ ├── body: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -60,7 +59,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (3,6)-(3,7) = "("
@@ -91,7 +89,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (5,6)-(5,7) = "("
@@ -125,7 +122,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:p]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (7,6)-(7,7) = "("
@@ -159,7 +155,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:r]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (9,0)-(9,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (9,6)-(9,7) = "("
@@ -196,7 +191,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:r, :p]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (11,0)-(11,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (11,6)-(11,7) = "("
@@ -230,7 +224,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (13,0)-(13,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (13,6)-(13,7) = "("
@@ -267,7 +260,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :p]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (15,0)-(15,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (15,6)-(15,7) = "("
@@ -304,7 +296,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :r]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (17,0)-(17,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (17,6)-(17,7) = "("
@@ -344,7 +335,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :r, :p]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (19,0)-(19,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (19,6)-(19,7) = "("
@@ -378,7 +368,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :a1]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (21,0)-(21,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (21,6)-(21,7) = "("
@@ -412,7 +401,6 @@
│ │ └── operator_loc: (23,15)-(23,16) = "&"
│ ├── body: ∅
│ ├── locals: [:foo, :b]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (23,0)-(23,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (23,6)-(23,7) = "("
@@ -458,7 +446,6 @@
│ │ └── operator_loc: (25,30)-(25,31) = "&"
│ ├── body: ∅
│ ├── locals: [:foo, :bar, :baz, :b]
- │ ├── locals_body_index: 4
│ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (25,6)-(25,7) = "("
@@ -490,7 +477,6 @@
│ │ └── operator_loc: (27,13)-(27,14) = "&"
│ ├── body: ∅
│ ├── locals: [:baz, :b]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (27,0)-(27,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -522,7 +508,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (29,0)-(29,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -554,7 +539,6 @@
│ │ └── operator_loc: (31,10)-(31,11) = "&"
│ ├── body: ∅
│ ├── locals: [:r, :b]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (31,0)-(31,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -589,7 +573,6 @@
│ │ └── operator_loc: (33,13)-(33,14) = "&"
│ ├── body: ∅
│ ├── locals: [:r, :p, :b]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (33,0)-(33,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -603,7 +586,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (35,0)-(35,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -633,7 +615,6 @@
│ │ └── operator_loc: (37,9)-(37,10) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (37,0)-(37,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -668,7 +649,6 @@
│ │ └── operator_loc: (39,13)-(39,14) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :r, :b]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (39,0)-(39,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -706,7 +686,6 @@
│ │ └── operator_loc: (41,16)-(41,17) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :r, :p, :b]
- │ ├── locals_body_index: 4
│ ├── def_keyword_loc: (41,0)-(41,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -744,7 +723,6 @@
│ │ └── operator_loc: (43,14)-(43,15) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :o, :b]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (43,0)-(43,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -787,7 +765,6 @@
│ │ └── operator_loc: (45,18)-(45,19) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :o, :r, :b]
- │ ├── locals_body_index: 4
│ ├── def_keyword_loc: (45,0)-(45,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -833,7 +810,6 @@
│ │ └── operator_loc: (47,21)-(47,22) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :o, :r, :p, :b]
- │ ├── locals_body_index: 5
│ ├── def_keyword_loc: (47,0)-(47,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -874,7 +850,6 @@
│ │ └── operator_loc: (49,17)-(49,18) = "&"
│ ├── body: ∅
│ ├── locals: [:a, :o, :p, :b]
- │ ├── locals_body_index: 4
│ ├── def_keyword_loc: (49,0)-(49,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -900,7 +875,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (51,0)-(51,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -929,7 +903,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (54,0)-(54,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -964,7 +937,6 @@
│ │ └── operator_loc: (57,11)-(57,12) = "&"
│ ├── body: ∅
│ ├── locals: [:o, :b]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (57,0)-(57,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1004,7 +976,6 @@
│ │ └── operator_loc: (59,15)-(59,16) = "&"
│ ├── body: ∅
│ ├── locals: [:o, :r, :b]
- │ ├── locals_body_index: 3
│ ├── def_keyword_loc: (59,0)-(59,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1047,7 +1018,6 @@
│ │ └── operator_loc: (61,18)-(61,19) = "&"
│ ├── body: ∅
│ ├── locals: [:o, :r, :p, :b]
- │ ├── locals_body_index: 4
│ ├── def_keyword_loc: (61,0)-(61,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -1085,7 +1055,6 @@
│ └── operator_loc: (63,14)-(63,15) = "&"
├── body: ∅
├── locals: [:o, :p, :b]
- ├── locals_body_index: 3
├── def_keyword_loc: (63,0)-(63,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/begin_cmdarg.txt b/test/prism/snapshots/whitequark/begin_cmdarg.txt
index f293656bb9..975f664c86 100644
--- a/test/prism/snapshots/whitequark/begin_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/begin_cmdarg.txt
@@ -33,7 +33,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,16)-(1,24))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (1,19)-(1,20))
diff --git a/test/prism/snapshots/whitequark/blockarg.txt b/test/prism/snapshots/whitequark/blockarg.txt
index fd0dac3cb2..70b054e073 100644
--- a/test/prism/snapshots/whitequark/blockarg.txt
+++ b/test/prism/snapshots/whitequark/blockarg.txt
@@ -23,7 +23,6 @@
│ └── operator_loc: (1,6)-(1,7) = "&"
├── body: ∅
├── locals: [:block]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/blockargs.txt b/test/prism/snapshots/whitequark/blockargs.txt
index 36610d66bf..fc229453a8 100644
--- a/test/prism/snapshots/whitequark/blockargs.txt
+++ b/test/prism/snapshots/whitequark/blockargs.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,1)-(1,5))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,1)-(1,2) = "{"
@@ -32,7 +31,6 @@
│ └── block:
│ @ BlockNode (location: (3,1)-(3,8))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters:
│ │ @ BlockParametersNode (location: (3,3)-(3,6))
│ │ ├── parameters: ∅
@@ -54,7 +52,6 @@
│ └── block:
│ @ BlockNode (location: (5,1)-(5,9))
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (5,3)-(5,7))
│ │ ├── parameters:
@@ -89,7 +86,6 @@
│ └── block:
│ @ BlockNode (location: (7,1)-(7,16))
│ ├── locals: [:baz, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (7,3)-(7,14))
│ │ ├── parameters:
@@ -129,7 +125,6 @@
│ └── block:
│ @ BlockNode (location: (9,1)-(9,12))
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (9,3)-(9,10))
│ │ ├── parameters:
@@ -169,7 +164,6 @@
│ └── block:
│ @ BlockNode (location: (11,1)-(11,16))
│ ├── locals: [:r, :p, :b]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (11,3)-(11,14))
│ │ ├── parameters:
@@ -212,7 +206,6 @@
│ └── block:
│ @ BlockNode (location: (13,1)-(13,13))
│ ├── locals: [:s, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (13,3)-(13,11))
│ │ ├── parameters:
@@ -252,7 +245,6 @@
│ └── block:
│ @ BlockNode (location: (15,1)-(15,9))
│ ├── locals: [:s]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (15,3)-(15,7))
│ │ ├── parameters:
@@ -287,7 +279,6 @@
│ └── block:
│ @ BlockNode (location: (17,1)-(17,8))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters:
│ │ @ BlockParametersNode (location: (17,3)-(17,6))
│ │ ├── parameters:
@@ -322,7 +313,6 @@
│ └── block:
│ @ BlockNode (location: (19,1)-(21,3))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (19,3)-(21,1))
│ │ ├── parameters: ∅
@@ -347,7 +337,6 @@
│ └── block:
│ @ BlockNode (location: (23,1)-(23,9))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (23,3)-(23,7))
│ │ ├── parameters: ∅
@@ -372,7 +361,6 @@
│ └── block:
│ @ BlockNode (location: (25,1)-(25,12))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (25,3)-(25,10))
│ │ ├── parameters:
@@ -410,7 +398,6 @@
│ └── block:
│ @ BlockNode (location: (27,1)-(27,15))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (27,3)-(27,13))
│ │ ├── parameters:
@@ -453,7 +440,6 @@
│ └── block:
│ @ BlockNode (location: (29,1)-(29,19))
│ ├── locals: [:a, :r, :p, :b]
- │ ├── locals_body_index: 4
│ ├── parameters:
│ │ @ BlockParametersNode (location: (29,3)-(29,17))
│ │ ├── parameters:
@@ -499,7 +485,6 @@
│ └── block:
│ @ BlockNode (location: (31,1)-(31,16))
│ ├── locals: [:a, :s, :b]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (31,3)-(31,14))
│ │ ├── parameters:
@@ -542,7 +527,6 @@
│ └── block:
│ @ BlockNode (location: (33,1)-(33,12))
│ ├── locals: [:a, :s]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (33,3)-(33,10))
│ │ ├── parameters:
@@ -580,7 +564,6 @@
│ └── block:
│ @ BlockNode (location: (35,1)-(35,11))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (35,3)-(35,9))
│ │ ├── parameters:
@@ -618,7 +601,6 @@
│ └── block:
│ @ BlockNode (location: (37,1)-(37,12))
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (37,3)-(37,10))
│ │ ├── parameters:
@@ -655,7 +637,6 @@
│ └── block:
│ @ BlockNode (location: (39,1)-(39,11))
│ ├── locals: [:a, :c]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (39,3)-(39,9))
│ │ ├── parameters:
@@ -691,7 +672,6 @@
│ └── block:
│ @ BlockNode (location: (41,1)-(41,17))
│ ├── locals: [:a, :o, :b]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (41,3)-(41,15))
│ │ ├── parameters:
@@ -737,7 +717,6 @@
│ └── block:
│ @ BlockNode (location: (43,1)-(43,24))
│ ├── locals: [:a, :o, :r, :p, :b]
- │ ├── locals_body_index: 5
│ ├── parameters:
│ │ @ BlockParametersNode (location: (43,3)-(43,22))
│ │ ├── parameters:
@@ -791,7 +770,6 @@
│ └── block:
│ @ BlockNode (location: (45,1)-(45,27))
│ ├── locals: [:a, :o, :o1, :r, :b]
- │ ├── locals_body_index: 5
│ ├── parameters:
│ │ @ BlockParametersNode (location: (45,3)-(45,25))
│ │ ├── parameters:
@@ -850,7 +828,6 @@
│ └── block:
│ @ BlockNode (location: (47,1)-(47,20))
│ ├── locals: [:a, :o, :p, :b]
- │ ├── locals_body_index: 4
│ ├── parameters:
│ │ @ BlockParametersNode (location: (47,3)-(47,18))
│ │ ├── parameters:
@@ -899,7 +876,6 @@
│ └── block:
│ @ BlockNode (location: (49,1)-(49,9))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (49,3)-(49,7))
│ │ ├── parameters:
@@ -933,7 +909,6 @@
│ └── block:
│ @ BlockNode (location: (51,1)-(51,8))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (51,3)-(51,6))
│ │ ├── parameters:
@@ -966,7 +941,6 @@
│ └── block:
│ @ BlockNode (location: (53,1)-(53,8))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (53,3)-(53,6))
│ │ ├── parameters:
@@ -999,7 +973,6 @@
│ └── block:
│ @ BlockNode (location: (55,1)-(55,8))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (55,3)-(55,6))
│ │ ├── parameters:
@@ -1032,7 +1005,6 @@
│ └── block:
│ @ BlockNode (location: (57,1)-(57,17))
│ ├── locals: [:foo, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (57,3)-(57,15))
│ │ ├── parameters:
@@ -1074,7 +1046,6 @@
│ └── block:
│ @ BlockNode (location: (59,1)-(59,32))
│ ├── locals: [:foo, :bar, :baz, :b]
- │ ├── locals_body_index: 4
│ ├── parameters:
│ │ @ BlockParametersNode (location: (59,3)-(59,30))
│ │ ├── parameters:
@@ -1128,7 +1099,6 @@
│ └── block:
│ @ BlockNode (location: (61,1)-(61,11))
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (61,3)-(61,9))
│ │ ├── parameters:
@@ -1162,7 +1132,6 @@
│ └── block:
│ @ BlockNode (location: (63,1)-(63,14))
│ ├── locals: [:o, :b]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (63,3)-(63,12))
│ │ ├── parameters:
@@ -1205,7 +1174,6 @@
│ └── block:
│ @ BlockNode (location: (65,1)-(65,18))
│ ├── locals: [:o, :r, :b]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (65,3)-(65,16))
│ │ ├── parameters:
@@ -1253,7 +1221,6 @@
│ └── block:
│ @ BlockNode (location: (67,1)-(67,21))
│ ├── locals: [:o, :r, :p, :b]
- │ ├── locals_body_index: 4
│ ├── parameters:
│ │ @ BlockParametersNode (location: (67,3)-(67,19))
│ │ ├── parameters:
@@ -1304,7 +1271,6 @@
│ └── block:
│ @ BlockNode (location: (69,1)-(69,17))
│ ├── locals: [:o, :p, :b]
- │ ├── locals_body_index: 3
│ ├── parameters:
│ │ @ BlockParametersNode (location: (69,3)-(69,15))
│ │ ├── parameters:
@@ -1350,7 +1316,6 @@
└── block:
@ BlockNode (location: (71,1)-(71,7))
├── locals: []
- ├── locals_body_index: 0
├── parameters:
│ @ BlockParametersNode (location: (71,3)-(71,5))
│ ├── parameters: ∅
diff --git a/test/prism/snapshots/whitequark/break_block.txt b/test/prism/snapshots/whitequark/break_block.txt
index e27b40e5c9..9322868944 100644
--- a/test/prism/snapshots/whitequark/break_block.txt
+++ b/test/prism/snapshots/whitequark/break_block.txt
@@ -33,7 +33,6 @@
│ └── block:
│ @ BlockNode (location: (1,14)-(1,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,14)-(1,16) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_435.txt b/test/prism/snapshots/whitequark/bug_435.txt
index 20210c87df..e08874fa15 100644
--- a/test/prism/snapshots/whitequark/bug_435.txt
+++ b/test/prism/snapshots/whitequark/bug_435.txt
@@ -13,7 +13,6 @@
│ │ └── body: (length: 1)
│ │ └── @ LambdaNode (location: (1,3)-(1,12))
│ │ ├── locals: [:foo]
- │ │ ├── locals_body_index: 1
│ │ ├── operator_loc: (1,3)-(1,5) = "->"
│ │ ├── opening_loc: (1,10)-(1,11) = "{"
│ │ ├── closing_loc: (1,11)-(1,12) = "}"
diff --git a/test/prism/snapshots/whitequark/bug_447.txt b/test/prism/snapshots/whitequark/bug_447.txt
index 18ee926adf..5b01cc8a18 100644
--- a/test/prism/snapshots/whitequark/bug_447.txt
+++ b/test/prism/snapshots/whitequark/bug_447.txt
@@ -23,7 +23,6 @@
│ └── block:
│ @ BlockNode (location: (1,5)-(1,11))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,5)-(1,7) = "do"
@@ -50,7 +49,6 @@
└── block:
@ BlockNode (location: (3,8)-(3,14))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (3,8)-(3,10) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_452.txt b/test/prism/snapshots/whitequark/bug_452.txt
index 90c51f2c8c..7410184788 100644
--- a/test/prism/snapshots/whitequark/bug_452.txt
+++ b/test/prism/snapshots/whitequark/bug_452.txt
@@ -56,7 +56,6 @@
└── block:
@ BlockNode (location: (1,30)-(1,37))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,30)-(1,32) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_466.txt b/test/prism/snapshots/whitequark/bug_466.txt
index 7f2f12d32c..a0be5655a1 100644
--- a/test/prism/snapshots/whitequark/bug_466.txt
+++ b/test/prism/snapshots/whitequark/bug_466.txt
@@ -61,7 +61,6 @@
└── block:
@ BlockNode (location: (1,20)-(1,27))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,20)-(1,22) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_481.txt b/test/prism/snapshots/whitequark/bug_481.txt
index 85ec4befb1..f0166388e8 100644
--- a/test/prism/snapshots/whitequark/bug_481.txt
+++ b/test/prism/snapshots/whitequark/bug_481.txt
@@ -21,7 +21,6 @@
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (1,2)-(1,5) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -44,7 +43,6 @@
└── block:
@ BlockNode (location: (1,22)-(1,28))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,22)-(1,24) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt
index 0b1e8c96a0..50c988fa1f 100644
--- a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt
+++ b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt
@@ -24,7 +24,6 @@
└── block:
@ BlockNode (location: (1,11)-(1,17))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,11)-(1,13) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_cmdarg.txt b/test/prism/snapshots/whitequark/bug_cmdarg.txt
index c3fa59949a..509dd7e818 100644
--- a/test/prism/snapshots/whitequark/bug_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/bug_cmdarg.txt
@@ -78,7 +78,6 @@
│ ├── value:
│ │ @ LambdaNode (location: (5,5)-(5,26))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (5,5)-(5,7) = "->"
│ │ ├── opening_loc: (5,8)-(5,10) = "do"
│ │ ├── closing_loc: (5,23)-(5,26) = "end"
@@ -98,7 +97,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (5,16)-(5,22))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (5,16)-(5,18) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt b/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt
index 27d57492ab..1b45d0132b 100644
--- a/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt
+++ b/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt
@@ -10,7 +10,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt b/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt
index 4c0ea27a74..9b95adda35 100644
--- a/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt
+++ b/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt
@@ -35,13 +35,11 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,23)-(1,29))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,23)-(1,25) = "do"
│ │ └── closing_loc: (1,26)-(1,29) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,4)-(1,7) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt
index 34bd224d31..3946bc1a4a 100644
--- a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt
@@ -30,7 +30,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,10)-(1,16))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,10)-(1,12) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt b/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt
index 1b26346abf..183d465439 100644
--- a/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt
+++ b/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt
@@ -44,7 +44,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (1,19)-(1,25))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── opening_loc: (1,19)-(1,21) = "do"
@@ -71,7 +70,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (1,35)-(1,41))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (1,35)-(1,37) = "do"
@@ -114,7 +112,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (3,17)-(3,23))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── opening_loc: (3,17)-(3,19) = "do"
@@ -141,7 +138,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (3,33)-(3,39))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (3,33)-(3,35) = "do"
@@ -191,7 +187,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (5,20)-(5,26))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── opening_loc: (5,20)-(5,22) = "do"
@@ -218,7 +213,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (5,36)-(5,42))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (5,36)-(5,38) = "do"
@@ -268,7 +262,6 @@
│ │ │ │ │ └── block:
│ │ │ │ │ @ BlockNode (location: (7,17)-(7,23))
│ │ │ │ │ ├── locals: []
- │ │ │ │ │ ├── locals_body_index: 0
│ │ │ │ │ ├── parameters: ∅
│ │ │ │ │ ├── body: ∅
│ │ │ │ │ ├── opening_loc: (7,17)-(7,19) = "do"
@@ -295,7 +288,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (7,33)-(7,39))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (7,33)-(7,35) = "do"
@@ -338,7 +330,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (9,14)-(9,20))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (9,14)-(9,16) = "do"
@@ -356,7 +347,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (9,29)-(9,35))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (9,29)-(9,31) = "do"
@@ -383,7 +373,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (9,45)-(9,51))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (9,45)-(9,47) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_heredoc_do.txt b/test/prism/snapshots/whitequark/bug_heredoc_do.txt
index 3877f657c2..bf4dd645fb 100644
--- a/test/prism/snapshots/whitequark/bug_heredoc_do.txt
+++ b/test/prism/snapshots/whitequark/bug_heredoc_do.txt
@@ -24,7 +24,6 @@
└── block:
@ BlockNode (location: (1,11)-(3,3))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,11)-(1,13) = "do"
diff --git a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt
index a8f2721cb8..7178345a22 100644
--- a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt
+++ b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt
@@ -5,7 +5,6 @@
└── body: (length: 2)
├── @ LambdaNode (location: (1,0)-(1,12))
│ ├── locals: [:scope]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,10)-(1,11) = "{"
│ ├── closing_loc: (1,11)-(1,12) = "}"
diff --git a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt
index 85c2c96b4f..c02c88e79b 100644
--- a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt
+++ b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt
@@ -34,7 +34,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (1,29)-(1,35))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (1,29)-(1,31) = "do"
@@ -73,7 +72,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (3,25)-(3,31))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (3,25)-(3,27) = "do"
@@ -118,7 +116,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (5,24)-(5,30))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (5,24)-(5,26) = "do"
@@ -160,7 +157,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (7,21)-(7,27))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (7,21)-(7,23) = "do"
diff --git a/test/prism/snapshots/whitequark/const_op_asgn.txt b/test/prism/snapshots/whitequark/const_op_asgn.txt
index b2292fcc85..fc6533ccd0 100644
--- a/test/prism/snapshots/whitequark/const_op_asgn.txt
+++ b/test/prism/snapshots/whitequark/const_op_asgn.txt
@@ -60,7 +60,6 @@
│ │ @ IntegerNode (location: (7,15)-(7,16))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -89,7 +88,6 @@
│ @ IntegerNode (location: (9,19)-(9,20))
│ └── flags: decimal
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (9,0)-(9,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/def.txt b/test/prism/snapshots/whitequark/def.txt
index ac91bcf067..d5e1139c4d 100644
--- a/test/prism/snapshots/whitequark/def.txt
+++ b/test/prism/snapshots/whitequark/def.txt
@@ -10,7 +10,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -24,7 +23,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -38,7 +36,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -52,7 +49,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -66,7 +62,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (9,0)-(9,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -80,7 +75,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (11,0)-(11,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/defs.txt b/test/prism/snapshots/whitequark/defs.txt
index 82ab7dfc46..616cca6155 100644
--- a/test/prism/snapshots/whitequark/defs.txt
+++ b/test/prism/snapshots/whitequark/defs.txt
@@ -24,7 +24,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: (1,9)-(1,10) = "."
│ ├── lparen_loc: ∅
@@ -40,7 +39,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: (3,10)-(3,11) = "."
│ ├── lparen_loc: ∅
@@ -56,7 +54,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: (5,10)-(5,12) = "::"
│ ├── lparen_loc: ∅
@@ -71,7 +68,6 @@
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: (7,8)-(7,9) = "."
│ ├── lparen_loc: ∅
@@ -86,7 +82,6 @@
├── parameters: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (9,0)-(9,3) = "def"
├── operator_loc: (9,8)-(9,10) = "::"
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/endless_comparison_method.txt b/test/prism/snapshots/whitequark/endless_comparison_method.txt
index 82f574df0d..28ec3843bb 100644
--- a/test/prism/snapshots/whitequark/endless_comparison_method.txt
+++ b/test/prism/snapshots/whitequark/endless_comparison_method.txt
@@ -33,7 +33,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:other]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,6)-(1,7) = "("
@@ -70,7 +69,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:other]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (3,6)-(3,7) = "("
@@ -107,7 +105,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:other]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (5,6)-(5,7) = "("
@@ -144,7 +141,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:other]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (7,6)-(7,7) = "("
@@ -181,7 +177,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:other]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (9,0)-(9,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (9,7)-(9,8) = "("
@@ -218,7 +213,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: [:other]
- ├── locals_body_index: 1
├── def_keyword_loc: (11,0)-(11,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (11,6)-(11,7) = "("
diff --git a/test/prism/snapshots/whitequark/endless_method.txt b/test/prism/snapshots/whitequark/endless_method.txt
index 3d681ca459..d2443223bb 100644
--- a/test/prism/snapshots/whitequark/endless_method.txt
+++ b/test/prism/snapshots/whitequark/endless_method.txt
@@ -14,7 +14,6 @@
│ │ └── @ IntegerNode (location: (1,12)-(1,14))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -59,7 +58,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (3,7)-(3,8) = "("
@@ -87,7 +85,6 @@
│ │ └── @ IntegerNode (location: (5,16)-(5,18))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: (5,7)-(5,8) = "."
│ ├── lparen_loc: (5,11)-(5,12) = "("
@@ -142,7 +139,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: [:x]
- ├── locals_body_index: 1
├── def_keyword_loc: (7,0)-(7,3) = "def"
├── operator_loc: (7,7)-(7,8) = "."
├── lparen_loc: (7,11)-(7,12) = "("
diff --git a/test/prism/snapshots/whitequark/endless_method_command_syntax.txt b/test/prism/snapshots/whitequark/endless_method_command_syntax.txt
index c4db8a106f..334fb39d61 100644
--- a/test/prism/snapshots/whitequark/endless_method_command_syntax.txt
+++ b/test/prism/snapshots/whitequark/endless_method_command_syntax.txt
@@ -31,7 +31,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -66,7 +65,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (3,7)-(3,8) = "("
@@ -109,7 +107,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (5,7)-(5,8) = "("
@@ -154,7 +151,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: (7,7)-(7,8) = "."
│ ├── lparen_loc: ∅
@@ -199,7 +195,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (9,0)-(9,3) = "def"
│ ├── operator_loc: (9,7)-(9,8) = "."
│ ├── lparen_loc: (9,11)-(9,12) = "("
@@ -252,7 +247,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (11,0)-(11,3) = "def"
│ ├── operator_loc: (11,7)-(11,8) = "."
│ ├── lparen_loc: (11,11)-(11,12) = "("
@@ -321,7 +315,6 @@
│ │ │ └── closing_loc: (13,58)-(13,59) = "}"
│ │ └── closing_loc: (13,59)-(13,60) = "\""
│ ├── locals: [:x]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (13,0)-(13,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (13,11)-(13,12) = "("
@@ -391,7 +384,6 @@
│ │ └── closing_loc: (15,60)-(15,61) = "}"
│ └── closing_loc: (15,61)-(15,62) = "\""
├── locals: [:x]
- ├── locals_body_index: 1
├── def_keyword_loc: (15,0)-(15,3) = "def"
├── operator_loc: (15,8)-(15,9) = "."
├── lparen_loc: (15,16)-(15,17) = "("
diff --git a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt
index 039b014a1c..64a3ffa252 100644
--- a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt
+++ b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt
@@ -35,7 +35,6 @@
│ ├── closing_loc: (1,22)-(1,23) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt b/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt
index ba50d04c7b..8f8e770fa9 100644
--- a/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt
+++ b/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt
@@ -20,7 +20,6 @@
│ │ @ IntegerNode (location: (1,19)-(1,20))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,5)-(1,6) = "("
@@ -45,7 +44,6 @@
│ @ IntegerNode (location: (3,24)-(3,25))
│ └── flags: decimal
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (3,0)-(3,3) = "def"
├── operator_loc: (3,8)-(3,9) = "."
├── lparen_loc: (3,10)-(3,11) = "("
diff --git a/test/prism/snapshots/whitequark/endless_method_without_args.txt b/test/prism/snapshots/whitequark/endless_method_without_args.txt
index 1f02c3f940..b7db96171e 100644
--- a/test/prism/snapshots/whitequark/endless_method_without_args.txt
+++ b/test/prism/snapshots/whitequark/endless_method_without_args.txt
@@ -14,7 +14,6 @@
│ │ └── @ IntegerNode (location: (1,10)-(1,12))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -37,7 +36,6 @@
│ │ └── rescue_expression:
│ │ @ NilNode (location: (3,20)-(3,23))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -56,7 +54,6 @@
│ │ └── @ IntegerNode (location: (5,15)-(5,17))
│ │ └── flags: decimal
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: (5,8)-(5,9) = "."
│ ├── lparen_loc: ∅
@@ -80,7 +77,6 @@
│ └── rescue_expression:
│ @ NilNode (location: (7,25)-(7,28))
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (7,0)-(7,3) = "def"
├── operator_loc: (7,8)-(7,9) = "."
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/forward_arg.txt b/test/prism/snapshots/whitequark/forward_arg.txt
index 0ec875106d..17504c64e0 100644
--- a/test/prism/snapshots/whitequark/forward_arg.txt
+++ b/test/prism/snapshots/whitequark/forward_arg.txt
@@ -35,7 +35,6 @@
│ ├── closing_loc: (1,21)-(1,22) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt
index a85400a37f..90b4965543 100644
--- a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt
+++ b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt
@@ -39,7 +39,6 @@
│ │ │ ├── closing_loc: (2,9)-(2,10) = ")"
│ │ │ └── block: ∅
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (1,1)-(1,4) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
@@ -84,7 +83,6 @@
│ │ │ ├── closing_loc: (5,21)-(5,22) = ")"
│ │ │ └── block: ∅
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (5,1)-(5,4) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
@@ -109,7 +107,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -148,7 +145,6 @@
│ │ ├── closing_loc: (10,20)-(10,21) = ")"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (10,0)-(10,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -190,7 +186,6 @@
│ │ ├── closing_loc: (13,9)-(13,10) = ")"
│ │ └── block: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (12,0)-(12,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -232,7 +227,6 @@
│ │ ├── closing_loc: (16,23)-(16,24) = ")"
│ │ └── block: ∅
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (16,0)-(16,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -266,7 +260,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:a, :b]
- │ ├── locals_body_index: 2
│ ├── def_keyword_loc: (18,0)-(18,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -313,7 +306,6 @@
│ │ ├── closing_loc: (22,9)-(22,10) = ")"
│ │ └── block: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (21,0)-(21,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -360,7 +352,6 @@
│ │ ├── closing_loc: (25,27)-(25,28) = ")"
│ │ └── block: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (25,0)-(25,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -402,7 +393,6 @@
│ ├── closing_loc: (27,23)-(27,24) = ")"
│ └── block: ∅
├── locals: [:a]
- ├── locals_body_index: 1
├── def_keyword_loc: (27,0)-(27,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (27,7)-(27,8) = "("
diff --git a/test/prism/snapshots/whitequark/forward_args_legacy.txt b/test/prism/snapshots/whitequark/forward_args_legacy.txt
index d2774737e9..f46967ba50 100644
--- a/test/prism/snapshots/whitequark/forward_args_legacy.txt
+++ b/test/prism/snapshots/whitequark/forward_args_legacy.txt
@@ -35,7 +35,6 @@
│ │ ├── closing_loc: (1,21)-(1,22) = ")"
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (1,7)-(1,8) = "("
@@ -58,7 +57,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (3,7)-(3,8) = "("
@@ -93,7 +91,6 @@
│ ├── rparen_loc: (5,23)-(5,24) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (5,7)-(5,8) = "("
diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt
index d7a1d53d83..c06818a98b 100644
--- a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt
@@ -50,7 +50,6 @@
│ ├── closing_loc: (1,39)-(1,40) = ")"
│ └── block: ∅
├── locals: [:argument]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt
index df93c463a3..367fad7fec 100644
--- a/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt
@@ -47,7 +47,6 @@
│ ├── closing_loc: (1,37)-(1,38) = ")"
│ └── block: ∅
├── locals: [:argument]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt
index 2d44055e21..adaf111fd7 100644
--- a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt
@@ -44,7 +44,6 @@
│ ├── closing_loc: (1,19)-(1,20) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt
index 5f29c7d61d..a03421455c 100644
--- a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt
@@ -55,7 +55,6 @@
│ ├── closing_loc: (1,35)-(1,36) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/forwarded_restarg.txt b/test/prism/snapshots/whitequark/forwarded_restarg.txt
index ac24409eb4..17ff8894af 100644
--- a/test/prism/snapshots/whitequark/forwarded_restarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_restarg.txt
@@ -41,7 +41,6 @@
│ ├── closing_loc: (1,17)-(1,18) = ")"
│ └── block: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/kwarg.txt b/test/prism/snapshots/whitequark/kwarg.txt
index 6f54b17f6e..5969402356 100644
--- a/test/prism/snapshots/whitequark/kwarg.txt
+++ b/test/prism/snapshots/whitequark/kwarg.txt
@@ -22,7 +22,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:foo]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/kwnilarg.txt b/test/prism/snapshots/whitequark/kwnilarg.txt
index 3777a97e60..492f817696 100644
--- a/test/prism/snapshots/whitequark/kwnilarg.txt
+++ b/test/prism/snapshots/whitequark/kwnilarg.txt
@@ -5,7 +5,6 @@
└── body: (length: 3)
├── @ LambdaNode (location: (1,0)-(1,12))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,10)-(1,11) = "{"
│ ├── closing_loc: (1,11)-(1,12) = "}"
@@ -45,7 +44,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: (3,5)-(3,6) = "("
@@ -64,7 +62,6 @@
└── block:
@ BlockNode (location: (5,2)-(5,13))
├── locals: []
- ├── locals_body_index: 0
├── parameters:
│ @ BlockParametersNode (location: (5,4)-(5,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/whitequark/kwoptarg.txt b/test/prism/snapshots/whitequark/kwoptarg.txt
index dbe465e80c..cb4e6c39e7 100644
--- a/test/prism/snapshots/whitequark/kwoptarg.txt
+++ b/test/prism/snapshots/whitequark/kwoptarg.txt
@@ -25,7 +25,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:foo]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt
index d951497293..6d0bdfb817 100644
--- a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt
+++ b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt
@@ -50,7 +50,6 @@
│ ├── closing_loc: (1,23)-(1,24) = ")"
│ └── block: ∅
├── locals: [:a]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/kwrestarg_named.txt b/test/prism/snapshots/whitequark/kwrestarg_named.txt
index a31787e3d6..d24426aed5 100644
--- a/test/prism/snapshots/whitequark/kwrestarg_named.txt
+++ b/test/prism/snapshots/whitequark/kwrestarg_named.txt
@@ -23,7 +23,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:foo]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt b/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt
index 92e65deb56..d471e5ab09 100644
--- a/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt
+++ b/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt
@@ -23,7 +23,6 @@
│ └── block: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt
index 61154fb1e3..f877fcd270 100644
--- a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt
+++ b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt
@@ -30,7 +30,6 @@
└── block:
@ BlockNode (location: (1,9)-(1,22))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,11)-(1,20))
@@ -47,7 +46,6 @@
│ └── block:
│ @ BlockNode (location: (1,13)-(1,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,13)-(1,15) = "do"
diff --git a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt
index ca1cd594c5..963686b73e 100644
--- a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt
+++ b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt
@@ -34,7 +34,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (1,22)-(1,28))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (1,22)-(1,24) = "do"
@@ -46,7 +45,6 @@
│ │ │ └── block: ∅
│ │ ├── body: ∅
│ │ ├── locals: [:a]
- │ │ ├── locals_body_index: 1
│ │ ├── def_keyword_loc: (1,6)-(1,9) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
@@ -84,13 +82,11 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (3,19)-(3,25))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (3,19)-(3,21) = "do"
│ │ │ └── closing_loc: (3,22)-(3,25) = "end"
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── def_keyword_loc: (3,6)-(3,9) = "def"
│ │ ├── operator_loc: ∅
│ │ ├── lparen_loc: ∅
@@ -135,7 +131,6 @@
│ │ │ │ └── block:
│ │ │ │ @ BlockNode (location: (5,27)-(5,33))
│ │ │ │ ├── locals: []
- │ │ │ │ ├── locals_body_index: 0
│ │ │ │ ├── parameters: ∅
│ │ │ │ ├── body: ∅
│ │ │ │ ├── opening_loc: (5,27)-(5,29) = "do"
@@ -147,7 +142,6 @@
│ │ │ └── block: ∅
│ │ ├── body: ∅
│ │ ├── locals: [:a]
- │ │ ├── locals_body_index: 1
│ │ ├── def_keyword_loc: (5,6)-(5,9) = "def"
│ │ ├── operator_loc: (5,14)-(5,15) = "."
│ │ ├── lparen_loc: ∅
@@ -186,13 +180,11 @@
│ │ └── block:
│ │ @ BlockNode (location: (7,24)-(7,30))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (7,24)-(7,26) = "do"
│ │ └── closing_loc: (7,27)-(7,30) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,6)-(7,9) = "def"
│ ├── operator_loc: (7,14)-(7,15) = "."
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/next_block.txt b/test/prism/snapshots/whitequark/next_block.txt
index a2d4e9364c..f1d65a44ed 100644
--- a/test/prism/snapshots/whitequark/next_block.txt
+++ b/test/prism/snapshots/whitequark/next_block.txt
@@ -33,7 +33,6 @@
│ └── block:
│ @ BlockNode (location: (1,13)-(1,19))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,13)-(1,15) = "do"
diff --git a/test/prism/snapshots/whitequark/numbered_args_after_27.txt b/test/prism/snapshots/whitequark/numbered_args_after_27.txt
index 0cfffee407..56419adccd 100644
--- a/test/prism/snapshots/whitequark/numbered_args_after_27.txt
+++ b/test/prism/snapshots/whitequark/numbered_args_after_27.txt
@@ -5,7 +5,6 @@
└── body: (length: 4)
├── @ LambdaNode (location: (1,0)-(1,17))
│ ├── locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
- │ ├── locals_body_index: 9
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,3)-(1,5) = "do"
│ ├── closing_loc: (1,14)-(1,17) = "end"
@@ -36,7 +35,6 @@
│ └── block: ∅
├── @ LambdaNode (location: (3,0)-(3,13))
│ ├── locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
- │ ├── locals_body_index: 9
│ ├── operator_loc: (3,0)-(3,2) = "->"
│ ├── opening_loc: (3,3)-(3,4) = "{"
│ ├── closing_loc: (3,12)-(3,13) = "}"
@@ -77,7 +75,6 @@
│ └── block:
│ @ BlockNode (location: (5,2)-(5,16))
│ ├── locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
- │ ├── locals_body_index: 9
│ ├── parameters:
│ │ @ NumberedParametersNode (location: (5,2)-(5,16))
│ │ └── maximum: 9
@@ -117,7 +114,6 @@
└── block:
@ BlockNode (location: (7,2)-(7,13))
├── locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
- ├── locals_body_index: 9
├── parameters:
│ @ NumberedParametersNode (location: (7,2)-(7,13))
│ └── maximum: 9
diff --git a/test/prism/snapshots/whitequark/numparam_outside_block.txt b/test/prism/snapshots/whitequark/numparam_outside_block.txt
index 8ee53070fb..d79aedf7f9 100644
--- a/test/prism/snapshots/whitequark/numparam_outside_block.txt
+++ b/test/prism/snapshots/whitequark/numparam_outside_block.txt
@@ -85,7 +85,6 @@
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: (7,8)-(7,9) = "."
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/optarg.txt b/test/prism/snapshots/whitequark/optarg.txt
index ed8c1be940..15ac9e00ef 100644
--- a/test/prism/snapshots/whitequark/optarg.txt
+++ b/test/prism/snapshots/whitequark/optarg.txt
@@ -26,7 +26,6 @@
│ │ └── block: ∅
│ ├── body: ∅
│ ├── locals: [:foo]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -64,7 +63,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:foo, :bar]
- ├── locals_body_index: 2
├── def_keyword_loc: (3,0)-(3,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (3,5)-(3,6) = "("
diff --git a/test/prism/snapshots/whitequark/parser_bug_272.txt b/test/prism/snapshots/whitequark/parser_bug_272.txt
index 193c324524..f158f255b9 100644
--- a/test/prism/snapshots/whitequark/parser_bug_272.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_272.txt
@@ -20,7 +20,6 @@
└── block:
@ BlockNode (location: (1,5)-(1,15))
├── locals: [:c]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (1,8)-(1,11))
│ ├── parameters:
diff --git a/test/prism/snapshots/whitequark/parser_bug_490.txt b/test/prism/snapshots/whitequark/parser_bug_490.txt
index f33f18623c..9e4cd2bd15 100644
--- a/test/prism/snapshots/whitequark/parser_bug_490.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_490.txt
@@ -28,7 +28,6 @@
│ │ │ └── operator_loc: (1,24)-(1,25) = "="
│ │ └── end_keyword_loc: (1,31)-(1,34) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -65,7 +64,6 @@
│ │ │ └── name: :C
│ │ └── end_keyword_loc: (3,36)-(3,39) = "end"
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── def_keyword_loc: (3,0)-(3,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
@@ -100,7 +98,6 @@
│ │ └── name: :M
│ └── end_keyword_loc: (5,37)-(5,40) = "end"
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (5,0)-(5,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/parser_bug_507.txt b/test/prism/snapshots/whitequark/parser_bug_507.txt
index 294e78a2f1..7e5fc9ee35 100644
--- a/test/prism/snapshots/whitequark/parser_bug_507.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_507.txt
@@ -10,7 +10,6 @@
├── value:
│ @ LambdaNode (location: (1,4)-(1,19))
│ ├── locals: [:args]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (1,4)-(1,6) = "->"
│ ├── opening_loc: (1,13)-(1,15) = "do"
│ ├── closing_loc: (1,16)-(1,19) = "end"
diff --git a/test/prism/snapshots/whitequark/parser_bug_525.txt b/test/prism/snapshots/whitequark/parser_bug_525.txt
index 9fddff9981..a69b8a207f 100644
--- a/test/prism/snapshots/whitequark/parser_bug_525.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_525.txt
@@ -41,7 +41,6 @@
└── block:
@ BlockNode (location: (1,12)-(1,32))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,16)-(1,27))
@@ -58,7 +57,6 @@
│ └── block:
│ @ BlockNode (location: (1,21)-(1,27))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,21)-(1,23) = "do"
diff --git a/test/prism/snapshots/whitequark/parser_bug_604.txt b/test/prism/snapshots/whitequark/parser_bug_604.txt
index d0078ca233..2577e3bc55 100644
--- a/test/prism/snapshots/whitequark/parser_bug_604.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_604.txt
@@ -51,7 +51,6 @@
└── block:
@ BlockNode (location: (1,8)-(1,14))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,8)-(1,10) = "do"
diff --git a/test/prism/snapshots/whitequark/parser_bug_645.txt b/test/prism/snapshots/whitequark/parser_bug_645.txt
index a2d0d3d28c..5700f3c3db 100644
--- a/test/prism/snapshots/whitequark/parser_bug_645.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_645.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,14))
├── locals: [:arg]
- ├── locals_body_index: 1
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,12)-(1,13) = "{"
├── closing_loc: (1,13)-(1,14) = "}"
diff --git a/test/prism/snapshots/whitequark/procarg0.txt b/test/prism/snapshots/whitequark/procarg0.txt
index 09b24c2f7c..378c7e5b36 100644
--- a/test/prism/snapshots/whitequark/procarg0.txt
+++ b/test/prism/snapshots/whitequark/procarg0.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,2)-(1,18))
│ ├── locals: [:foo, :bar]
- │ ├── locals_body_index: 2
│ ├── parameters:
│ │ @ BlockParametersNode (location: (1,4)-(1,16))
│ │ ├── parameters:
@@ -57,7 +56,6 @@
└── block:
@ BlockNode (location: (3,2)-(3,11))
├── locals: [:foo]
- ├── locals_body_index: 1
├── parameters:
│ @ BlockParametersNode (location: (3,4)-(3,9))
│ ├── parameters:
diff --git a/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt b/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt
index 1b46b0f258..72b6842f42 100644
--- a/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt
+++ b/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,17))
├── locals: []
- ├── locals_body_index: 0
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,3)-(1,5) = "do"
├── closing_loc: (1,14)-(1,17) = "end"
diff --git a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt
index b7596e0b0b..22b9b4035e 100644
--- a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt
+++ b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt
@@ -15,7 +15,6 @@
└── block:
@ BlockNode (location: (1,5)-(1,30))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ BeginNode (location: (1,9)-(1,30))
diff --git a/test/prism/snapshots/whitequark/restarg_named.txt b/test/prism/snapshots/whitequark/restarg_named.txt
index 02acbfde84..fab9dd9a79 100644
--- a/test/prism/snapshots/whitequark/restarg_named.txt
+++ b/test/prism/snapshots/whitequark/restarg_named.txt
@@ -23,7 +23,6 @@
│ └── block: ∅
├── body: ∅
├── locals: [:foo]
- ├── locals_body_index: 1
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/restarg_unnamed.txt b/test/prism/snapshots/whitequark/restarg_unnamed.txt
index cf8c57f004..077230f7ba 100644
--- a/test/prism/snapshots/whitequark/restarg_unnamed.txt
+++ b/test/prism/snapshots/whitequark/restarg_unnamed.txt
@@ -23,7 +23,6 @@
│ └── block: ∅
├── body: ∅
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
diff --git a/test/prism/snapshots/whitequark/return_block.txt b/test/prism/snapshots/whitequark/return_block.txt
index 4843f13f3b..5b8141e4f3 100644
--- a/test/prism/snapshots/whitequark/return_block.txt
+++ b/test/prism/snapshots/whitequark/return_block.txt
@@ -34,7 +34,6 @@
└── block:
@ BlockNode (location: (1,15)-(1,21))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,15)-(1,17) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_10653.txt b/test/prism/snapshots/whitequark/ruby_bug_10653.txt
index ed8d43d1f2..2e25978544 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_10653.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_10653.txt
@@ -23,7 +23,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,14)-(1,20))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,14)-(1,16) = "do"
@@ -46,7 +45,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (1,27)-(1,33))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (1,27)-(1,29) = "do"
@@ -73,7 +71,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (3,14)-(3,16))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (3,14)-(3,15) = "{"
@@ -96,7 +93,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (3,23)-(3,25))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (3,23)-(3,24) = "{"
@@ -125,7 +121,6 @@
│ └── block:
│ @ BlockNode (location: (5,13)-(5,27))
│ ├── locals: [:n]
- │ ├── locals_body_index: 1
│ ├── parameters:
│ │ @ BlockParametersNode (location: (5,16)-(5,19))
│ │ ├── parameters:
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11107.txt b/test/prism/snapshots/whitequark/ruby_bug_11107.txt
index dd88ad9093..36ece50d88 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11107.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11107.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (1,2)-(1,24))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,2)-(1,4) = "->"
│ ├── opening_loc: (1,7)-(1,9) = "do"
│ ├── closing_loc: (1,21)-(1,24) = "end"
@@ -41,7 +40,6 @@
│ └── block:
│ @ BlockNode (location: (1,14)-(1,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,14)-(1,16) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11380.txt b/test/prism/snapshots/whitequark/ruby_bug_11380.txt
index ffc4e496cb..9fa00299c6 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11380.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11380.txt
@@ -16,7 +16,6 @@
│ └── arguments: (length: 2)
│ ├── @ LambdaNode (location: (1,2)-(1,15))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── operator_loc: (1,2)-(1,4) = "->"
│ │ ├── opening_loc: (1,5)-(1,6) = "{"
│ │ ├── closing_loc: (1,14)-(1,15) = "}"
@@ -49,7 +48,6 @@
└── block:
@ BlockNode (location: (1,22)-(1,28))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,22)-(1,24) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873.txt b/test/prism/snapshots/whitequark/ruby_bug_11873.txt
index 4408ff6e2d..af04f59b5e 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873.txt
@@ -60,7 +60,6 @@
│ └── block:
│ @ BlockNode (location: (1,14)-(1,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,14)-(1,16) = "do"
@@ -122,7 +121,6 @@
│ └── block:
│ @ BlockNode (location: (3,14)-(3,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (3,14)-(3,16) = "do"
@@ -184,7 +182,6 @@
│ └── block:
│ @ BlockNode (location: (5,15)-(5,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (5,15)-(5,17) = "do"
@@ -246,7 +243,6 @@
│ └── block:
│ @ BlockNode (location: (7,15)-(7,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (7,15)-(7,17) = "do"
@@ -308,7 +304,6 @@
│ └── block:
│ @ BlockNode (location: (9,15)-(9,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (9,15)-(9,17) = "do"
@@ -370,7 +365,6 @@
│ └── block:
│ @ BlockNode (location: (11,16)-(11,22))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (11,16)-(11,18) = "do"
@@ -398,7 +392,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (13,3)-(13,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (13,4)-(13,7))
@@ -438,7 +431,6 @@
│ └── block:
│ @ BlockNode (location: (13,14)-(13,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (13,14)-(13,16) = "do"
@@ -466,7 +458,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (15,3)-(15,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (15,4)-(15,7))
@@ -506,7 +497,6 @@
│ └── block:
│ @ BlockNode (location: (15,14)-(15,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (15,14)-(15,16) = "do"
@@ -534,7 +524,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (17,3)-(17,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (17,4)-(17,7))
@@ -574,7 +563,6 @@
│ └── block:
│ @ BlockNode (location: (17,15)-(17,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (17,15)-(17,17) = "do"
@@ -602,7 +590,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (19,3)-(19,9))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (19,4)-(19,8))
@@ -642,7 +629,6 @@
│ └── block:
│ @ BlockNode (location: (19,15)-(19,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (19,15)-(19,17) = "do"
@@ -670,7 +656,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (21,3)-(21,9))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (21,4)-(21,8))
@@ -710,7 +695,6 @@
│ └── block:
│ @ BlockNode (location: (21,15)-(21,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (21,15)-(21,17) = "do"
@@ -738,7 +722,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (23,3)-(23,9))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (23,4)-(23,8))
@@ -778,7 +761,6 @@
└── block:
@ BlockNode (location: (23,16)-(23,22))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (23,16)-(23,18) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
index 451fbb7540..a9e36c76a5 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
@@ -56,7 +56,6 @@
│ └── block:
│ @ BlockNode (location: (1,12)-(1,18))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,12)-(1,14) = "do"
@@ -113,7 +112,6 @@
│ └── block:
│ @ BlockNode (location: (3,14)-(3,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (3,14)-(3,16) = "do"
@@ -172,7 +170,6 @@
│ └── block:
│ @ BlockNode (location: (5,15)-(5,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (5,15)-(5,17) = "do"
@@ -231,7 +228,6 @@
│ └── block:
│ @ BlockNode (location: (7,15)-(7,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (7,15)-(7,17) = "do"
@@ -293,7 +289,6 @@
│ └── block:
│ @ BlockNode (location: (9,13)-(9,19))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (9,13)-(9,15) = "do"
@@ -351,7 +346,6 @@
│ └── block:
│ @ BlockNode (location: (11,13)-(11,19))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (11,13)-(11,15) = "do"
@@ -408,7 +402,6 @@
│ └── block:
│ @ BlockNode (location: (13,15)-(13,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (13,15)-(13,17) = "do"
@@ -467,7 +460,6 @@
│ └── block:
│ @ BlockNode (location: (15,16)-(15,22))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (15,16)-(15,18) = "do"
@@ -526,7 +518,6 @@
│ └── block:
│ @ BlockNode (location: (17,16)-(17,22))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (17,16)-(17,18) = "do"
@@ -588,7 +579,6 @@
│ └── block:
│ @ BlockNode (location: (19,14)-(19,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (19,14)-(19,16) = "do"
@@ -616,7 +606,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (21,3)-(21,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (21,4)-(21,7))
@@ -652,7 +641,6 @@
│ └── block:
│ @ BlockNode (location: (21,12)-(21,18))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (21,12)-(21,14) = "do"
@@ -680,7 +668,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (23,3)-(23,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (23,4)-(23,7))
@@ -715,7 +702,6 @@
│ └── block:
│ @ BlockNode (location: (23,14)-(23,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (23,14)-(23,16) = "do"
@@ -743,7 +729,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (25,3)-(25,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (25,4)-(25,7))
@@ -780,7 +765,6 @@
│ └── block:
│ @ BlockNode (location: (25,15)-(25,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (25,15)-(25,17) = "do"
@@ -808,7 +792,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (27,3)-(27,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (27,4)-(27,7))
@@ -845,7 +828,6 @@
│ └── block:
│ @ BlockNode (location: (27,15)-(27,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (27,15)-(27,17) = "do"
@@ -873,7 +855,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (29,3)-(29,8))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (29,4)-(29,7))
@@ -913,7 +894,6 @@
│ └── block:
│ @ BlockNode (location: (29,13)-(29,19))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (29,13)-(29,15) = "do"
@@ -941,7 +921,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (31,3)-(31,9))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (31,4)-(31,8))
@@ -977,7 +956,6 @@
│ └── block:
│ @ BlockNode (location: (31,13)-(31,19))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (31,13)-(31,15) = "do"
@@ -1005,7 +983,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (33,3)-(33,9))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (33,4)-(33,8))
@@ -1040,7 +1017,6 @@
│ └── block:
│ @ BlockNode (location: (33,15)-(33,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (33,15)-(33,17) = "do"
@@ -1068,7 +1044,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (35,3)-(35,9))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (35,4)-(35,8))
@@ -1105,7 +1080,6 @@
│ └── block:
│ @ BlockNode (location: (35,16)-(35,22))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (35,16)-(35,18) = "do"
@@ -1133,7 +1107,6 @@
│ │ │ └── block:
│ │ │ @ BlockNode (location: (37,3)-(37,9))
│ │ │ ├── locals: []
- │ │ │ ├── locals_body_index: 0
│ │ │ ├── parameters: ∅
│ │ │ ├── body:
│ │ │ │ @ StatementsNode (location: (37,4)-(37,8))
@@ -1170,7 +1143,6 @@
│ └── block:
│ @ BlockNode (location: (37,16)-(37,22))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (37,16)-(37,18) = "do"
@@ -1198,7 +1170,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (39,3)-(39,9))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (39,4)-(39,8))
@@ -1238,7 +1209,6 @@
└── block:
@ BlockNode (location: (39,14)-(39,20))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (39,14)-(39,16) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt
index ab08a9421c..6aa8e55e54 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt
@@ -26,7 +26,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,3)-(1,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body:
│ │ │ @ StatementsNode (location: (1,4)-(1,12))
@@ -93,7 +92,6 @@
└── block:
@ BlockNode (location: (1,19)-(1,25))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,19)-(1,21) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_12073.txt b/test/prism/snapshots/whitequark/ruby_bug_12073.txt
index a9ee4d8fe5..159d272f25 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_12073.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_12073.txt
@@ -86,7 +86,6 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: [:raise]
- ├── locals_body_index: 1
├── def_keyword_loc: (3,0)-(3,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/ruby_bug_13547.txt b/test/prism/snapshots/whitequark/ruby_bug_13547.txt
index b91873027d..eae9587ea0 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_13547.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_13547.txt
@@ -25,7 +25,6 @@
└── block:
@ BlockNode (location: (1,7)-(1,9))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,7)-(1,8) = "{"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_14690.txt b/test/prism/snapshots/whitequark/ruby_bug_14690.txt
index 05005e4d50..36629797db 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_14690.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_14690.txt
@@ -22,7 +22,6 @@
└── block:
@ BlockNode (location: (1,7)-(1,23))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,9)-(1,21))
@@ -52,7 +51,6 @@
│ └── block:
│ @ BlockNode (location: (1,14)-(1,21))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,14)-(1,16) = "do"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_15789.txt b/test/prism/snapshots/whitequark/ruby_bug_15789.txt
index d4062f8ae7..db8bc1401f 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_15789.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_15789.txt
@@ -16,7 +16,6 @@
│ │ └── arguments: (length: 1)
│ │ └── @ LambdaNode (location: (1,2)-(1,20))
│ │ ├── locals: [:a]
- │ │ ├── locals_body_index: 1
│ │ ├── operator_loc: (1,2)-(1,4) = "->"
│ │ ├── opening_loc: (1,17)-(1,18) = "{"
│ │ ├── closing_loc: (1,19)-(1,20) = "}"
@@ -34,7 +33,6 @@
│ │ │ │ │ └── value:
│ │ │ │ │ @ LambdaNode (location: (1,9)-(1,15))
│ │ │ │ │ ├── locals: [:_1]
- │ │ │ │ │ ├── locals_body_index: 1
│ │ │ │ │ ├── operator_loc: (1,9)-(1,11) = "->"
│ │ │ │ │ ├── opening_loc: (1,11)-(1,12) = "{"
│ │ │ │ │ ├── closing_loc: (1,14)-(1,15) = "}"
@@ -76,7 +74,6 @@
│ └── arguments: (length: 1)
│ └── @ LambdaNode (location: (3,2)-(3,19))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (3,2)-(3,4) = "->"
│ ├── opening_loc: (3,16)-(3,17) = "{"
│ ├── closing_loc: (3,18)-(3,19) = "}"
@@ -96,7 +93,6 @@
│ │ │ │ └── value:
│ │ │ │ @ LambdaNode (location: (3,8)-(3,14))
│ │ │ │ ├── locals: [:_1]
- │ │ │ │ ├── locals_body_index: 1
│ │ │ │ ├── operator_loc: (3,8)-(3,10) = "->"
│ │ │ │ ├── opening_loc: (3,10)-(3,11) = "{"
│ │ │ │ ├── closing_loc: (3,13)-(3,14) = "}"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_9669.txt b/test/prism/snapshots/whitequark/ruby_bug_9669.txt
index 74dbe31f4f..6605206180 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_9669.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_9669.txt
@@ -27,7 +27,6 @@
│ │ ├── keyword_loc: (2,0)-(2,6) = "return"
│ │ └── arguments: ∅
│ ├── locals: [:b]
- │ ├── locals_body_index: 1
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
diff --git a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
index 571789a535..a6d69767d1 100644
--- a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
+++ b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
@@ -23,7 +23,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (1,7)-(1,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (1,7)-(1,9) = "do"
@@ -68,7 +67,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (3,7)-(3,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (3,7)-(3,9) = "do"
@@ -95,7 +93,6 @@
│ └── block:
│ @ BlockNode (location: (3,22)-(3,28))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (3,22)-(3,24) = "do"
@@ -120,7 +117,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (5,7)-(5,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (5,7)-(5,9) = "do"
@@ -134,7 +130,6 @@
│ └── block:
│ @ BlockNode (location: (5,18)-(5,20))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (5,18)-(5,19) = "{"
@@ -159,7 +154,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (7,7)-(7,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (7,7)-(7,9) = "do"
@@ -204,7 +198,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (9,7)-(9,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (9,7)-(9,9) = "do"
@@ -231,7 +224,6 @@
│ └── block:
│ @ BlockNode (location: (9,23)-(9,25))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (9,23)-(9,24) = "{"
@@ -256,7 +248,6 @@
│ │ └── block:
│ │ @ BlockNode (location: (11,7)-(11,13))
│ │ ├── locals: []
- │ │ ├── locals_body_index: 0
│ │ ├── parameters: ∅
│ │ ├── body: ∅
│ │ ├── opening_loc: (11,7)-(11,9) = "do"
@@ -301,7 +292,6 @@
│ └── block:
│ @ BlockNode (location: (13,7)-(13,13))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (13,7)-(13,9) = "do"
diff --git a/test/prism/snapshots/whitequark/send_block_conditional.txt b/test/prism/snapshots/whitequark/send_block_conditional.txt
index 26cb00dd1f..826d3c8464 100644
--- a/test/prism/snapshots/whitequark/send_block_conditional.txt
+++ b/test/prism/snapshots/whitequark/send_block_conditional.txt
@@ -25,7 +25,6 @@
└── block:
@ BlockNode (location: (1,9)-(1,11))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,9)-(1,10) = "{"
diff --git a/test/prism/snapshots/whitequark/send_lambda.txt b/test/prism/snapshots/whitequark/send_lambda.txt
index 552645c462..bf21700539 100644
--- a/test/prism/snapshots/whitequark/send_lambda.txt
+++ b/test/prism/snapshots/whitequark/send_lambda.txt
@@ -5,7 +5,6 @@
└── body: (length: 3)
├── @ LambdaNode (location: (1,0)-(1,8))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,5)-(1,6) = "{"
│ ├── closing_loc: (1,7)-(1,8) = "}"
@@ -31,7 +30,6 @@
│ └── body: ∅
├── @ LambdaNode (location: (3,0)-(3,9))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── operator_loc: (3,0)-(3,2) = "->"
│ ├── opening_loc: (3,3)-(3,5) = "do"
│ ├── closing_loc: (3,6)-(3,9) = "end"
@@ -39,7 +37,6 @@
│ └── body: ∅
└── @ LambdaNode (location: (5,0)-(5,5))
├── locals: []
- ├── locals_body_index: 0
├── operator_loc: (5,0)-(5,2) = "->"
├── opening_loc: (5,2)-(5,3) = "{"
├── closing_loc: (5,4)-(5,5) = "}"
diff --git a/test/prism/snapshots/whitequark/send_lambda_args.txt b/test/prism/snapshots/whitequark/send_lambda_args.txt
index 30f80bd2a1..f61f622bdd 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args.txt
@@ -5,7 +5,6 @@
└── body: (length: 2)
├── @ LambdaNode (location: (1,0)-(1,10))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,7)-(1,8) = "{"
│ ├── closing_loc: (1,9)-(1,10) = "}"
@@ -29,7 +28,6 @@
│ └── body: ∅
└── @ LambdaNode (location: (3,0)-(3,9))
├── locals: [:a]
- ├── locals_body_index: 1
├── operator_loc: (3,0)-(3,2) = "->"
├── opening_loc: (3,6)-(3,7) = "{"
├── closing_loc: (3,8)-(3,9) = "}"
diff --git a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
index a420d05f36..eff1cab317 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
@@ -5,7 +5,6 @@
└── body: (length: 2)
├── @ LambdaNode (location: (1,0)-(1,11))
│ ├── locals: [:a]
- │ ├── locals_body_index: 1
│ ├── operator_loc: (1,0)-(1,2) = "->"
│ ├── opening_loc: (1,8)-(1,9) = "{"
│ ├── closing_loc: (1,10)-(1,11) = "}"
@@ -33,7 +32,6 @@
│ └── body: ∅
└── @ LambdaNode (location: (3,0)-(3,9))
├── locals: [:a]
- ├── locals_body_index: 1
├── operator_loc: (3,0)-(3,2) = "->"
├── opening_loc: (3,6)-(3,7) = "{"
├── closing_loc: (3,8)-(3,9) = "}"
diff --git a/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt b/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt
index 4a0d2fd53e..34a63ec503 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,19))
├── locals: [:a, :foo, :bar]
- ├── locals_body_index: 3
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,16)-(1,17) = "{"
├── closing_loc: (1,18)-(1,19) = "}"
diff --git a/test/prism/snapshots/whitequark/send_lambda_legacy.txt b/test/prism/snapshots/whitequark/send_lambda_legacy.txt
index bf05f2267a..3a64e941b6 100644
--- a/test/prism/snapshots/whitequark/send_lambda_legacy.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_legacy.txt
@@ -5,7 +5,6 @@
└── body: (length: 1)
└── @ LambdaNode (location: (1,0)-(1,5))
├── locals: []
- ├── locals_body_index: 0
├── operator_loc: (1,0)-(1,2) = "->"
├── opening_loc: (1,2)-(1,3) = "{"
├── closing_loc: (1,4)-(1,5) = "}"
diff --git a/test/prism/snapshots/whitequark/send_self_block.txt b/test/prism/snapshots/whitequark/send_self_block.txt
index 9124281a71..d94463d8b0 100644
--- a/test/prism/snapshots/whitequark/send_self_block.txt
+++ b/test/prism/snapshots/whitequark/send_self_block.txt
@@ -15,7 +15,6 @@
│ └── block:
│ @ BlockNode (location: (1,4)-(1,10))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,4)-(1,6) = "do"
@@ -32,7 +31,6 @@
│ └── block:
│ @ BlockNode (location: (3,4)-(3,7))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (3,4)-(3,5) = "{"
@@ -49,7 +47,6 @@
│ └── block:
│ @ BlockNode (location: (5,6)-(5,9))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (5,6)-(5,7) = "{"
@@ -71,7 +68,6 @@
└── block:
@ BlockNode (location: (7,7)-(7,10))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (7,7)-(7,8) = "{"
diff --git a/test/prism/snapshots/whitequark/space_args_arg_block.txt b/test/prism/snapshots/whitequark/space_args_arg_block.txt
index c8fd787c22..de4a6022c0 100644
--- a/test/prism/snapshots/whitequark/space_args_arg_block.txt
+++ b/test/prism/snapshots/whitequark/space_args_arg_block.txt
@@ -36,7 +36,6 @@
│ └── block:
│ @ BlockNode (location: (1,12)-(1,14))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,12)-(1,13) = "{"
@@ -74,7 +73,6 @@
│ └── block:
│ @ BlockNode (location: (3,13)-(3,15))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (3,13)-(3,14) = "{"
@@ -102,7 +100,6 @@
└── block:
@ BlockNode (location: (5,8)-(5,10))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (5,8)-(5,9) = "{"
diff --git a/test/prism/snapshots/whitequark/space_args_block.txt b/test/prism/snapshots/whitequark/space_args_block.txt
index 853482b764..62b549a674 100644
--- a/test/prism/snapshots/whitequark/space_args_block.txt
+++ b/test/prism/snapshots/whitequark/space_args_block.txt
@@ -22,7 +22,6 @@
└── block:
@ BlockNode (location: (1,7)-(1,9))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (1,7)-(1,8) = "{"
diff --git a/test/prism/snapshots/whitequark/super_block.txt b/test/prism/snapshots/whitequark/super_block.txt
index 2025416ae6..d9ce7b86be 100644
--- a/test/prism/snapshots/whitequark/super_block.txt
+++ b/test/prism/snapshots/whitequark/super_block.txt
@@ -7,7 +7,6 @@
│ └── block:
│ @ BlockNode (location: (1,6)-(1,12))
│ ├── locals: []
- │ ├── locals_body_index: 0
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (1,6)-(1,8) = "do"
@@ -43,7 +42,6 @@
└── block:
@ BlockNode (location: (3,15)-(3,21))
├── locals: []
- ├── locals_body_index: 0
├── parameters: ∅
├── body: ∅
├── opening_loc: (3,15)-(3,17) = "do"
diff --git a/test/prism/snapshots/whitequark/trailing_forward_arg.txt b/test/prism/snapshots/whitequark/trailing_forward_arg.txt
index 20bfe57428..b58eb51149 100644
--- a/test/prism/snapshots/whitequark/trailing_forward_arg.txt
+++ b/test/prism/snapshots/whitequark/trailing_forward_arg.txt
@@ -46,7 +46,6 @@
│ ├── closing_loc: (1,34)-(1,35) = ")"
│ └── block: ∅
├── locals: [:a, :b]
- ├── locals_body_index: 2
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/var_op_asgn.txt b/test/prism/snapshots/whitequark/var_op_asgn.txt
index c4d20d2ec0..7160141b07 100644
--- a/test/prism/snapshots/whitequark/var_op_asgn.txt
+++ b/test/prism/snapshots/whitequark/var_op_asgn.txt
@@ -45,7 +45,6 @@
│ │ └── flags: decimal
│ └── operator: :|
├── locals: []
- ├── locals_body_index: 0
├── def_keyword_loc: (7,0)-(7,3) = "def"
├── operator_loc: ∅
├── lparen_loc: ∅