summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2023-11-30 20:47:08 -0500
committerKevin Newton <[email protected]>2023-12-01 12:03:09 -0500
commitcdb74d74afb87a0d7048a53aaf12d32516033a3c (patch)
treeb90ab9a755b94de8e55f5f72a6552f3ea4aed3b5
parent90d9c20a0c0df5565d5f95d5e14c58331fa5922f (diff)
[ruby/prism] Change numbered parameters
Previously numbered parameters were a field on blocks and lambdas that indicated the maximum number of numbered parameters in either the block or lambda, respectively. However they also had a parameters field that would always be nil in these cases. This changes it so that we introduce a NumberedParametersNode that goes in place of parameters, which has a single uint8_t maximum field on it. That field contains the maximum numbered parameter in either the block or lambda. As a part of the PR, I'm introducing a new UInt8Field type that can be used on nodes, which is just to make it a little more explicit what the maximum values can be (the maximum is actually 9, since it only goes up to _9). Plus we can do a couple of nice things in serialization like just read a single byte. https://github.com/ruby/prism/commit/2d87303903
-rw-r--r--lib/prism/debug.rb11
-rw-r--r--prism/config.yml16
-rw-r--r--prism/parser.h2
-rw-r--r--prism/prism.c81
-rw-r--r--prism/templates/ext/prism/api_node.c.erb3
-rw-r--r--prism/templates/include/prism/ast.h.erb1
-rw-r--r--prism/templates/lib/prism/dot_visitor.rb.erb2
-rw-r--r--prism/templates/lib/prism/node.rb.erb2
-rw-r--r--prism/templates/lib/prism/serialize.rb.erb2
-rw-r--r--prism/templates/src/node.c.erb6
-rw-r--r--prism/templates/src/prettyprint.c.erb2
-rw-r--r--prism/templates/src/serialize.c.erb2
-rwxr-xr-xprism/templates/template.rb16
-rw-r--r--test/prism/errors_test.rb12
-rw-r--r--test/prism/location_test.rb5
-rw-r--r--test/prism/snapshots/begin_ensure.txt6
-rw-r--r--test/prism/snapshots/blocks.txt63
-rw-r--r--test/prism/snapshots/break.txt6
-rw-r--r--test/prism/snapshots/hashes.txt3
-rw-r--r--test/prism/snapshots/if.txt9
-rw-r--r--test/prism/snapshots/keyword_method_names.txt3
-rw-r--r--test/prism/snapshots/lambda.txt15
-rw-r--r--test/prism/snapshots/method_calls.txt60
-rw-r--r--test/prism/snapshots/methods.txt3
-rw-r--r--test/prism/snapshots/patterns.txt81
-rw-r--r--test/prism/snapshots/procs.txt275
-rw-r--r--test/prism/snapshots/regex.txt3
-rw-r--r--test/prism/snapshots/rescue.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_kwsplat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_opt_splat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_optional.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_scope.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_scope2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_arg_splat_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_kwargs.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_no_kwargs.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt2_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt3.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_break.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt6
-rw-r--r--test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt6
-rw-r--r--test/prism/snapshots/seattlerb/block_call_operation_colon.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_call_operation_dot.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_command_operation_colon.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_command_operation_dot.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_decomp_splat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_kw.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_kw__required.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_kwarg_lvar.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_next.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_opt_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_opt_splat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_optarg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_paren_splat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_reg_optarg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_return.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_scope.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_splat_reg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug169.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug236.txt6
-rw-r--r--test/prism/snapshots/seattlerb/bug_187.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug_249.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug_args__19.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug_args_masgn.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug_args_masgn2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bug_masgn_right.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_array_block_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_begin_call_block_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt14
-rw-r--r--test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt14
-rw-r--r--test/prism/snapshots/seattlerb/case_in.txt9
-rw-r--r--test/prism/snapshots/seattlerb/dasgn_icky2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_3.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3_5.txt40
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__10.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__11.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__12.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__6.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__7.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__8.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult3__9.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult6_.txt55
-rw-r--r--test/prism/snapshots/seattlerb/difficult6__7.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult6__8.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult7_.txt3
-rw-r--r--test/prism/snapshots/seattlerb/do_bug.txt3
-rw-r--r--test/prism/snapshots/seattlerb/do_lambda.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_10_1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_10_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_11_1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_11_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_2__19.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_3.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_4.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_5.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_6.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_7_1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_7_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_8_1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_8_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_9_1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_args_9_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_kwarg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt12
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_call_no_args.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt3
-rw-r--r--test/prism/snapshots/seattlerb/pipe_semicolon.txt3
-rw-r--r--test/prism/snapshots/seattlerb/pipe_space.txt3
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt3
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt3
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_raised.txt3
-rw-r--r--test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt3
-rw-r--r--test/prism/snapshots/seattlerb/rescue_in_block.txt3
-rw-r--r--test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt3
-rw-r--r--test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_iter_call.txt60
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt50
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_kw.txt3
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_kw__required.txt3
-rw-r--r--test/prism/snapshots/seattlerb/stabby_proc_scope.txt3
-rw-r--r--test/prism/snapshots/super.txt6
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/block.txt94
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/defs.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/dstr.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/if.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/lambda.txt18
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/literal.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/send.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/27.txt49
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/super.txt15
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/while.txt15
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/block.txt18
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/while.txt12
-rw-r--r--test/prism/snapshots/while.txt15
-rw-r--r--test/prism/snapshots/whitequark/arg_label.txt3
-rw-r--r--test/prism/snapshots/whitequark/arg_scope.txt3
-rw-r--r--test/prism/snapshots/whitequark/begin_cmdarg.txt3
-rw-r--r--test/prism/snapshots/whitequark/blockargs.txt105
-rw-r--r--test/prism/snapshots/whitequark/break_block.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_435.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_447.txt6
-rw-r--r--test/prism/snapshots/whitequark/bug_452.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_466.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_481.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_cmdarg.txt40
-rw-r--r--test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt33
-rw-r--r--test/prism/snapshots/whitequark/bug_heredoc_do.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_lambda_leakage.txt3
-rw-r--r--test/prism/snapshots/whitequark/class_definition_in_while_cond.txt12
-rw-r--r--test/prism/snapshots/whitequark/kwnilarg.txt6
-rw-r--r--test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt6
-rw-r--r--test/prism/snapshots/whitequark/method_definition_in_while_cond.txt12
-rw-r--r--test/prism/snapshots/whitequark/next_block.txt3
-rw-r--r--test/prism/snapshots/whitequark/numbered_args_after_27.txt112
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_272.txt3
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_507.txt3
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_525.txt6
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_604.txt3
-rw-r--r--test/prism/snapshots/whitequark/parser_bug_645.txt3
-rw-r--r--test/prism/snapshots/whitequark/procarg0.txt6
-rw-r--r--test/prism/snapshots/whitequark/rescue_in_lambda_block.txt31
-rw-r--r--test/prism/snapshots/whitequark/rescue_without_begin_end.txt3
-rw-r--r--test/prism/snapshots/whitequark/return_block.txt3
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_10653.txt15
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11107.txt40
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11380.txt20
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873.txt54
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873_a.txt90
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873_b.txt6
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_13547.txt3
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_14690.txt6
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_15789.txt60
-rw-r--r--test/prism/snapshots/whitequark/send_block_chain_cmd.txt30
-rw-r--r--test/prism/snapshots/whitequark/send_block_conditional.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_lambda.txt9
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args.txt6
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args_noparen.txt6
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args_shadow.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_legacy.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_self_block.txt12
-rw-r--r--test/prism/snapshots/whitequark/space_args_arg_block.txt9
-rw-r--r--test/prism/snapshots/whitequark/space_args_block.txt3
-rw-r--r--test/prism/snapshots/whitequark/super_block.txt6
205 files changed, 983 insertions, 1361 deletions
diff --git a/lib/prism/debug.rb b/lib/prism/debug.rb
index adbc402f32..e275fe1dff 100644
--- a/lib/prism/debug.rb
+++ b/lib/prism/debug.rb
@@ -103,9 +103,14 @@ module Prism
case node
when BlockNode, DefNode, LambdaNode
names = node.locals
-
- params = node.parameters
- params = params&.parameters unless node.is_a?(DefNode)
+ params =
+ if node.is_a?(DefNode)
+ node.parameters
+ elsif node.parameters.is_a?(NumberedParametersNode)
+ nil
+ else
+ node.parameters&.parameters
+ end
# prism places parameters in the same order that they appear in the
# source. CRuby places them in the order that they need to appear
diff --git a/prism/config.yml b/prism/config.yml
index 4fd5c462f1..806fb25c9f 100644
--- a/prism/config.yml
+++ b/prism/config.yml
@@ -589,15 +589,12 @@ nodes:
type: constant[]
- name: parameters
type: node?
- kind: BlockParametersNode
- name: body
type: node?
- name: opening_loc
type: location
- name: closing_loc
type: location
- - name: numbered_parameters
- type: uint32
comment: |
Represents a block of ruby code.
@@ -1772,11 +1769,8 @@ nodes:
type: location
- name: parameters
type: node?
- kind: BlockParametersNode
- name: body
type: node?
- - name: numbered_parameters
- type: uint32
comment: |
Represents using a lambda literal (not the lambda method call).
@@ -2026,6 +2020,16 @@ nodes:
def a(**nil)
^^^^^
end
+ - name: NumberedParametersNode
+ fields:
+ - name: maximum
+ type: uint8
+ comment: |
+ Represents an implicit set of parameters through the use of numbered
+ parameters within a block or lambda.
+
+ -> { _1 + _2 }
+ ^^^^^^^^^^^^^^
- name: NumberedReferenceReadNode
fields:
- name: number
diff --git a/prism/parser.h b/prism/parser.h
index e4eb5a5f0c..237f9fead9 100644
--- a/prism/parser.h
+++ b/prism/parser.h
@@ -474,7 +474,7 @@ typedef struct pm_scope {
* numbered parameters, and to pass information to consumers of the AST
* about how many numbered parameters exist.
*/
- uint32_t numbered_parameters;
+ uint8_t numbered_parameters;
} pm_scope_t;
/**
diff --git a/prism/prism.c b/prism/prism.c
index ea82745896..21dfd58c67 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -1467,7 +1467,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, const pm_token_t *opening, pm_block_parameters_node_t *parameters, pm_node_t *body, const pm_token_t *closing, uint32_t numbered_parameters) {
+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) {
@@ -1478,7 +1478,6 @@ pm_block_node_create(pm_parser_t *parser, pm_constant_id_list_t *locals, const p
.locals = *locals,
.parameters = parameters,
.body = body,
- .numbered_parameters = numbered_parameters,
.opening_loc = PM_LOCATION_TOKEN_VALUE(opening),
.closing_loc = PM_LOCATION_TOKEN_VALUE(closing)
};
@@ -3958,9 +3957,8 @@ pm_lambda_node_create(
const pm_token_t *operator,
const pm_token_t *opening,
const pm_token_t *closing,
- pm_block_parameters_node_t *parameters,
- pm_node_t *body,
- uint32_t numbered_parameters
+ pm_node_t *parameters,
+ pm_node_t *body
) {
pm_lambda_node_t *node = PM_ALLOC_NODE(parser, pm_lambda_node_t);
@@ -3977,8 +3975,7 @@ pm_lambda_node_create(
.opening_loc = PM_LOCATION_TOKEN_VALUE(opening),
.closing_loc = PM_LOCATION_TOKEN_VALUE(closing),
.parameters = parameters,
- .body = body,
- .numbered_parameters = numbered_parameters
+ .body = body
};
return node;
@@ -4442,7 +4439,25 @@ pm_no_keywords_parameter_node_create(pm_parser_t *parser, const pm_token_t *oper
}
/**
- * Allocate a new NthReferenceReadNode node.
+ * Allocate and initialize a new NumberedParametersNode node.
+ */
+static pm_numbered_parameters_node_t *
+pm_numbered_parameters_node_create(pm_parser_t *parser, const pm_location_t *location, uint8_t maximum) {
+ pm_numbered_parameters_node_t *node = PM_ALLOC_NODE(parser, pm_numbered_parameters_node_t);
+
+ *node = (pm_numbered_parameters_node_t) {
+ {
+ .type = PM_NUMBERED_PARAMETERS_NODE,
+ .location = *location
+ },
+ .maximum = maximum
+ };
+
+ return node;
+}
+
+/**
+ * Allocate and initialize a new NthReferenceReadNode node.
*/
static pm_numbered_reference_read_node_t *
pm_numbered_reference_read_node_create(pm_parser_t *parser, const pm_token_t *name) {
@@ -5822,7 +5837,7 @@ pm_parser_local_add(pm_parser_t *parser, pm_constant_id_t constant_id) {
* Set the numbered_parameters value of the current scope.
*/
static inline void
-pm_parser_numbered_parameters_set(pm_parser_t *parser, uint32_t numbered_parameters) {
+pm_parser_numbered_parameters_set(pm_parser_t *parser, uint8_t numbered_parameters) {
parser->current_scope->numbered_parameters = numbered_parameters;
}
@@ -11845,24 +11860,24 @@ parse_block(pm_parser_t *parser) {
pm_accepts_block_stack_push(parser, true);
pm_parser_scope_push(parser, false);
- pm_block_parameters_node_t *parameters = NULL;
+ pm_block_parameters_node_t *block_parameters = NULL;
if (accept1(parser, PM_TOKEN_PIPE)) {
parser->current_scope->explicit_params = true;
pm_token_t block_parameters_opening = parser->previous;
if (match1(parser, PM_TOKEN_PIPE)) {
- parameters = pm_block_parameters_node_create(parser, NULL, &block_parameters_opening);
+ block_parameters = pm_block_parameters_node_create(parser, NULL, &block_parameters_opening);
parser->command_start = true;
parser_lex(parser);
} else {
- parameters = parse_block_parameters(parser, true, &block_parameters_opening, false);
+ block_parameters = parse_block_parameters(parser, true, &block_parameters_opening, false);
accept1(parser, PM_TOKEN_NEWLINE);
parser->command_start = true;
expect1(parser, PM_TOKEN_PIPE, PM_ERR_BLOCK_PARAM_PIPE_TERM);
}
- pm_block_parameters_node_closing_set(parameters, &parser->previous);
+ pm_block_parameters_node_closing_set(block_parameters, &parser->previous);
}
accept1(parser, PM_TOKEN_NEWLINE);
@@ -11891,11 +11906,17 @@ parse_block(pm_parser_t *parser) {
expect1(parser, PM_TOKEN_KEYWORD_END, PM_ERR_BLOCK_TERM_END);
}
+ pm_node_t *parameters = (pm_node_t *) block_parameters;
+ uint8_t maximum = parser->current_scope->numbered_parameters;
+
+ 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);
+ }
+
pm_constant_id_list_t locals = parser->current_scope->locals;
- uint32_t numbered_parameters = parser->current_scope->numbered_parameters;
pm_parser_scope_pop(parser);
pm_accepts_block_stack_pop(parser);
- return pm_block_node_create(parser, &locals, &opening, parameters, statements, &parser->previous, numbered_parameters);
+ return pm_block_node_create(parser, &locals, &opening, parameters, statements, &parser->previous);
}
/**
@@ -12511,10 +12532,10 @@ parse_variable_call(pm_parser_t *parser) {
// We subtract the value for the character '0' to get the actual
// integer value of the number (only _1 through _9 are valid)
- uint32_t number_as_int = (uint32_t) (number - '0');
- if (number_as_int > parser->current_scope->numbered_parameters) {
- parser->current_scope->numbered_parameters = number_as_int;
- pm_parser_numbered_parameters_set(parser, number_as_int);
+ uint8_t numbered_parameters = (uint8_t) (number - '0');
+ if (numbered_parameters > parser->current_scope->numbered_parameters) {
+ parser->current_scope->numbered_parameters = numbered_parameters;
+ pm_parser_numbered_parameters_set(parser, numbered_parameters);
}
// When you use a numbered parameter, it implies the existence
@@ -15707,7 +15728,7 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power) {
pm_token_t operator = parser->previous;
pm_parser_scope_push(parser, false);
- pm_block_parameters_node_t *params;
+ pm_block_parameters_node_t *block_parameters;
switch (parser->current.type) {
case PM_TOKEN_PARENTHESIS_LEFT: {
@@ -15716,27 +15737,27 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power) {
parser_lex(parser);
if (match1(parser, PM_TOKEN_PARENTHESIS_RIGHT)) {
- params = pm_block_parameters_node_create(parser, NULL, &opening);
+ block_parameters = pm_block_parameters_node_create(parser, NULL, &opening);
} else {
- params = parse_block_parameters(parser, false, &opening, true);
+ block_parameters = parse_block_parameters(parser, false, &opening, true);
}
accept1(parser, PM_TOKEN_NEWLINE);
expect1(parser, PM_TOKEN_PARENTHESIS_RIGHT, PM_ERR_EXPECT_RPAREN);
- pm_block_parameters_node_closing_set(params, &parser->previous);
+ pm_block_parameters_node_closing_set(block_parameters, &parser->previous);
break;
}
case PM_CASE_PARAMETER: {
parser->current_scope->explicit_params = true;
pm_accepts_block_stack_push(parser, false);
pm_token_t opening = not_provided(parser);
- params = parse_block_parameters(parser, false, &opening, true);
+ block_parameters = parse_block_parameters(parser, false, &opening, true);
pm_accepts_block_stack_pop(parser);
break;
}
default: {
- params = NULL;
+ block_parameters = NULL;
break;
}
}
@@ -15770,11 +15791,17 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power) {
expect1(parser, PM_TOKEN_KEYWORD_END, PM_ERR_LAMBDA_TERM_END);
}
+ pm_node_t *parameters = (pm_node_t *) block_parameters;
+ uint8_t maximum = parser->current_scope->numbered_parameters;
+
+ 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);
+ }
+
pm_constant_id_list_t locals = parser->current_scope->locals;
- uint32_t numbered_parameters = parser->current_scope->numbered_parameters;
pm_parser_scope_pop(parser);
pm_accepts_block_stack_pop(parser);
- return (pm_node_t *) pm_lambda_node_create(parser, &locals, &operator, &opening, &parser->previous, params, body, numbered_parameters);
+ 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/prism/templates/ext/prism/api_node.c.erb b/prism/templates/ext/prism/api_node.c.erb
index 5811cf2027..93f67f6551 100644
--- a/prism/templates/ext/prism/api_node.c.erb
+++ b/prism/templates/ext/prism/api_node.c.erb
@@ -181,6 +181,9 @@ pm_ast_new(pm_parser_t *parser, pm_node_t *node, rb_encoding *encoding) {
<%- when Prism::OptionalLocationField -%>
#line <%= __LINE__ + 1 %> "<%= File.basename(__FILE__) %>"
argv[<%= index %>] = cast-><%= field.name %>.start == NULL ? Qnil : pm_location_new(parser, cast-><%= field.name %>.start, cast-><%= field.name %>.end, source);
+ <%- when Prism::UInt8Field -%>
+#line <%= __LINE__ + 1 %> "<%= File.basename(__FILE__) %>"
+ argv[<%= index %>] = UINT2NUM(cast-><%= field.name %>);
<%- when Prism::UInt32Field -%>
#line <%= __LINE__ + 1 %> "<%= File.basename(__FILE__) %>"
argv[<%= index %>] = ULONG2NUM(cast-><%= field.name %>);
diff --git a/prism/templates/include/prism/ast.h.erb b/prism/templates/include/prism/ast.h.erb
index dd1c6bcd74..8670dc3d2a 100644
--- a/prism/templates/include/prism/ast.h.erb
+++ b/prism/templates/include/prism/ast.h.erb
@@ -168,6 +168,7 @@ typedef struct pm_<%= node.human %> {
when Prism::ConstantListField then "pm_constant_id_list_t #{field.name}"
when Prism::StringField then "pm_string_t #{field.name}"
when Prism::LocationField, Prism::OptionalLocationField then "pm_location_t #{field.name}"
+ when Prism::UInt8Field then "uint8_t #{field.name}"
when Prism::UInt32Field then "uint32_t #{field.name}"
else raise field.class.name
end
diff --git a/prism/templates/lib/prism/dot_visitor.rb.erb b/prism/templates/lib/prism/dot_visitor.rb.erb
index 45050935cc..5e01388c6d 100644
--- a/prism/templates/lib/prism/dot_visitor.rb.erb
+++ b/prism/templates/lib/prism/dot_visitor.rb.erb
@@ -129,7 +129,7 @@ module Prism
digraph.edge("#{id}:<%= field.name %> -> #{waypoint};")
node.<%= field.name %>.each { |child| digraph.edge("#{waypoint} -> #{node_id(child)};") }
- <%- when Prism::StringField, Prism::ConstantField, Prism::OptionalConstantField, Prism::UInt32Field, Prism::ConstantListField -%>
+ <%- when Prism::StringField, Prism::ConstantField, Prism::OptionalConstantField, Prism::UInt8Field, Prism::UInt32Field, Prism::ConstantListField -%>
table.field("<%= field.name %>", node.<%= field.name %>.inspect)
<%- when Prism::LocationField -%>
table.field("<%= field.name %>", location_inspect(node.<%= field.name %>))
diff --git a/prism/templates/lib/prism/node.rb.erb b/prism/templates/lib/prism/node.rb.erb
index 7148710238..87a94a0338 100644
--- a/prism/templates/lib/prism/node.rb.erb
+++ b/prism/templates/lib/prism/node.rb.erb
@@ -190,7 +190,7 @@ module Prism
inspector << "<%= pointer %><%= field.name %>:\n"
inspector << <%= field.name %>.inspect(inspector.child_inspector("<%= preadd %>")).delete_prefix(inspector.prefix)
end
- <%- when Prism::ConstantField, Prism::StringField, Prism::UInt32Field -%>
+ <%- when Prism::ConstantField, Prism::StringField, Prism::UInt8Field, Prism::UInt32Field -%>
inspector << "<%= pointer %><%= field.name %>: #{<%= field.name %>.inspect}\n"
<%- when Prism::OptionalConstantField -%>
if (<%= field.name %> = self.<%= field.name %>).nil?
diff --git a/prism/templates/lib/prism/serialize.rb.erb b/prism/templates/lib/prism/serialize.rb.erb
index 350a502d6a..813a36e180 100644
--- a/prism/templates/lib/prism/serialize.rb.erb
+++ b/prism/templates/lib/prism/serialize.rb.erb
@@ -253,6 +253,7 @@ module Prism
when Prism::ConstantListField then "Array.new(load_varuint) { load_required_constant }"
when Prism::LocationField then "load_location"
when Prism::OptionalLocationField then "load_optional_location"
+ when Prism::UInt8Field then "io.getbyte"
when Prism::UInt32Field, Prism::FlagsField then "load_varuint"
else raise
end
@@ -286,6 +287,7 @@ module Prism
when Prism::ConstantListField then "Array.new(load_varuint) { load_required_constant }"
when Prism::LocationField then "load_location"
when Prism::OptionalLocationField then "load_optional_location"
+ when Prism::UInt8Field then "io.getbyte"
when Prism::UInt32Field, Prism::FlagsField then "load_varuint"
else raise
end
diff --git a/prism/templates/src/node.c.erb b/prism/templates/src/node.c.erb
index 0f3a6d8af2..0552767f4d 100644
--- a/prism/templates/src/node.c.erb
+++ b/prism/templates/src/node.c.erb
@@ -56,12 +56,12 @@ pm_node_destroy(pm_parser_t *parser, pm_node_t *node) {
<%- nodes.each do |node| -%>
#line <%= __LINE__ + 1 %> "<%= File.basename(__FILE__) %>"
case <%= node.type %>: {
- <%- if node.fields.any? { |field| ![Prism::LocationField, Prism::OptionalLocationField, Prism::UInt32Field, Prism::FlagsField, Prism::ConstantField, Prism::OptionalConstantField].include?(field.class) } -%>
+ <%- if node.fields.any? { |field| ![Prism::LocationField, Prism::OptionalLocationField, Prism::UInt8Field, Prism::UInt32Field, Prism::FlagsField, Prism::ConstantField, Prism::OptionalConstantField].include?(field.class) } -%>
pm_<%= node.human %>_t *cast = (pm_<%= node.human %>_t *) node;
<%- end -%>
<%- node.fields.each do |field| -%>
<%- case field -%>
- <%- when Prism::LocationField, Prism::OptionalLocationField, Prism::UInt32Field, Prism::FlagsField, Prism::ConstantField, Prism::OptionalConstantField -%>
+ <%- when Prism::LocationField, Prism::OptionalLocationField, Prism::UInt8Field, Prism::UInt32Field, Prism::FlagsField, Prism::ConstantField, Prism::OptionalConstantField -%>
<%- when Prism::NodeField -%>
pm_node_destroy(parser, (pm_node_t *)cast-><%= field.name %>);
<%- when Prism::OptionalNodeField -%>
@@ -113,7 +113,7 @@ pm_node_memsize_node(pm_node_t *node, pm_memsize_t *memsize) {
<%- end -%>
<%- node.fields.each do |field| -%>
<%- case field -%>
- <%- when Prism::ConstantField, Prism::OptionalConstantField, Prism::UInt32Field, Prism::FlagsField, Prism::LocationField, Prism::OptionalLocationField -%>
+ <%- when Prism::ConstantField, Prism::OptionalConstantField, Prism::UInt8Field, Prism::UInt32Field, Prism::FlagsField, Prism::LocationField, Prism::OptionalLocationField -%>
<%- when Prism::NodeField -%>
pm_node_memsize_node((pm_node_t *)cast-><%= field.name %>, memsize);
<%- when Prism::OptionalNodeField -%>
diff --git a/prism/templates/src/prettyprint.c.erb b/prism/templates/src/prettyprint.c.erb
index ed820d5e77..61831ce59b 100644
--- a/prism/templates/src/prettyprint.c.erb
+++ b/prism/templates/src/prettyprint.c.erb
@@ -152,7 +152,7 @@ prettyprint_node(pm_buffer_t *output_buffer, const pm_parser_t *parser, const pm
prettyprint_source(output_buffer, location->start, (size_t) (location->end - location->start));
pm_buffer_append_string(output_buffer, "\"\n", 2);
}
- <%- when Prism::UInt32Field -%>
+ <%- when Prism::UInt8Field, Prism::UInt32Field -%>
pm_buffer_append_format(output_buffer, " %d\n", cast-><%= field.name %>);
<%- when Prism::FlagsField -%>
bool found = false;
diff --git a/prism/templates/src/serialize.c.erb b/prism/templates/src/serialize.c.erb
index e82a8703b2..60cb9ecb3d 100644
--- a/prism/templates/src/serialize.c.erb
+++ b/prism/templates/src/serialize.c.erb
@@ -107,6 +107,8 @@ pm_serialize_node(pm_parser_t *parser, pm_node_t *node, pm_buffer_t *buffer) {
pm_serialize_location(parser, &((pm_<%= node.human %>_t *)node)-><%= field.name %>, buffer);
}
<%- end -%>
+ <%- when Prism::UInt8Field -%>
+ pm_buffer_append_byte(buffer, ((pm_<%= node.human %>_t *)node)-><%= field.name %>);
<%- when Prism::UInt32Field -%>
pm_buffer_append_varuint(buffer, ((pm_<%= node.human %>_t *)node)-><%= field.name %>);
<%- when Prism::FlagsField -%>
diff --git a/prism/templates/template.rb b/prism/templates/template.rb
index 7c5e7cd316..8cbcf27d79 100755
--- a/prism/templates/template.rb
+++ b/prism/templates/template.rb
@@ -198,6 +198,21 @@ module Prism
end
# This represents an integer field.
+ class UInt8Field < Field
+ def rbs_class
+ "Integer"
+ end
+
+ def rbi_class
+ "Integer"
+ end
+
+ def java_type
+ "int"
+ end
+ end
+
+ # This represents an integer field.
class UInt32Field < Field
def rbs_class
"Integer"
@@ -282,6 +297,7 @@ module Prism
when "constant[]" then ConstantListField
when "location" then LocationField
when "location?" then OptionalLocationField
+ when "uint8" then UInt8Field
when "uint32" then UInt32Field
when "flags" then FlagsField
else raise("Unknown field type: #{name.inspect}")
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb
index bef5bd3eaf..a7683aa430 100644
--- a/test/prism/errors_test.rb
+++ b/test/prism/errors_test.rb
@@ -452,8 +452,7 @@ module Prism
nil,
StatementsNode([ModuleNode([], Location(), ConstantReadNode(:Foo), nil, Location(), :Foo)]),
Location(),
- Location(),
- 0
+ Location()
),
0
)]
@@ -645,8 +644,7 @@ module Prism
Location(),
Location()
),
- nil,
- 0
+ nil
)
assert_errors expected, "-> (a, b, ) {}", [
["unexpected `,` in parameters", 8..9]
@@ -1022,8 +1020,7 @@ module Prism
Location(),
Location(),
BlockParametersNode(ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil), [], Location(), Location()),
- nil,
- 0
+ nil
)
assert_errors expected, "->(...) {}", [
@@ -1045,8 +1042,7 @@ module Prism
BlockParametersNode(ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil), [], Location(), Location()),
nil,
Location(),
- Location(),
- 0
+ Location()
),
0
)
diff --git a/test/prism/location_test.rb b/test/prism/location_test.rb
index 26415ab0c6..b6bfa64b50 100644
--- a/test/prism/location_test.rb
+++ b/test/prism/location_test.rb
@@ -619,6 +619,11 @@ module Prism
assert_location(NoKeywordsParameterNode, "def foo(**nil); end", 8...13) { |node| node.parameters.keyword_rest }
end
+ def test_NumberedParametersNode
+ assert_location(NumberedParametersNode, "-> { _1 }", &:parameters)
+ assert_location(NumberedParametersNode, "foo { _1 }", 4...10) { |node| node.block.parameters }
+ end
+
def test_NumberedReferenceReadNode
assert_location(NumberedReferenceReadNode, "$1")
end
diff --git a/test/prism/snapshots/begin_ensure.txt b/test/prism/snapshots/begin_ensure.txt
index 6cf3b5558a..14698a263e 100644
--- a/test/prism/snapshots/begin_ensure.txt
+++ b/test/prism/snapshots/begin_ensure.txt
@@ -227,14 +227,12 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (18,22)-(18,24) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (19,4)-(19,7) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (19,4)-(19,7) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (20,2)-(20,5) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (20,2)-(20,5) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,40)-(15,42) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,0)-(21,3) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (21,0)-(21,3) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (21,4)-(21,7) = "end"
β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (21,4)-(21,7) = "end"
diff --git a/test/prism/snapshots/blocks.txt b/test/prism/snapshots/blocks.txt
index d3005d1c17..6dd117ab4a 100644
--- a/test/prism/snapshots/blocks.txt
+++ b/test/prism/snapshots/blocks.txt
@@ -52,8 +52,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,9)-(1,10) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,15)-(1,16) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(5,3))
β”‚ β”œβ”€β”€ receiver:
@@ -104,8 +103,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,9)-(3,11) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,0)-(5,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,0)-(5,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (7,0)-(7,35))
β”‚ β”œβ”€β”€ receiver:
@@ -165,8 +163,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ operator: :+
β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,12)-(7,13) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,34)-(7,35) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (7,34)-(7,35) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (9,0)-(9,10))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -182,8 +179,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,4)-(9,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,7)-(9,10) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (9,7)-(9,10) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (11,0)-(11,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -222,8 +218,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,14)-(11,16) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (11,17)-(11,20) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (11,17)-(11,20) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,9)-(11,10) = "("
β”‚ β”‚ β”‚ └── closing_loc: (11,20)-(11,21) = ")"
@@ -258,8 +253,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,8)-(13,10) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,11)-(13,14) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (13,11)-(13,14) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (15,0)-(15,18))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -301,8 +295,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,12)-(15,14) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (15,15)-(15,18) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (15,15)-(15,18) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (17,0)-(18,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -361,8 +354,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (17,16)-(17,17) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,4)-(17,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (18,0)-(18,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (18,0)-(18,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (20,0)-(22,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -392,8 +384,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (22,0)-(22,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (20,4)-(20,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (22,0)-(22,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (22,0)-(22,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (24,0)-(29,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -439,16 +430,13 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (26,8)-(26,10) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (27,4)-(27,7) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (27,4)-(27,7) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,6)-(25,8) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (28,2)-(28,5) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (28,2)-(28,5) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (24,4)-(24,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (29,0)-(29,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (29,0)-(29,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (31,0)-(31,16))
β”‚ β”œβ”€β”€ receiver:
@@ -499,8 +487,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (31,9)-(31,10) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (31,15)-(31,16) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (31,15)-(31,16) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (33,0)-(33,24))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -546,8 +533,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ name: :x
β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”œβ”€β”€ opening_loc: (33,4)-(33,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (33,23)-(33,24) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (33,23)-(33,24) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (35,0)-(35,11))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -578,8 +564,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (35,8)-(35,9) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (35,4)-(35,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (35,10)-(35,11) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (35,10)-(35,11) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ LocalVariableWriteNode (location: (37,0)-(37,8))
β”‚ β”œβ”€β”€ name: :fork
@@ -618,8 +603,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (38,10)-(38,11) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (38,5)-(38,7) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (39,0)-(39,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (39,0)-(39,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (41,0)-(41,12))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -650,8 +634,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (41,9)-(41,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (41,5)-(41,6) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (41,11)-(41,12) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (41,11)-(41,12) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (43,0)-(44,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -667,8 +650,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (43,2)-(43,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (44,0)-(44,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (44,0)-(44,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (46,0)-(46,4))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -684,8 +666,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (46,2)-(46,3) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (46,3)-(46,4) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (46,3)-(46,4) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (48,0)-(52,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -735,8 +716,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (51,2)-(51,3) = "|"
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (48,11)-(48,12) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (52,0)-(52,1) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (52,0)-(52,1) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
@@ -772,6 +752,5 @@
β”‚ β”‚ └── closing_loc: (54,12)-(54,13) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (54,4)-(54,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (54,14)-(54,17) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (54,14)-(54,17) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/break.txt b/test/prism/snapshots/break.txt
index c89b865590..48991bb6eb 100644
--- a/test/prism/snapshots/break.txt
+++ b/test/prism/snapshots/break.txt
@@ -151,8 +151,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── keyword_loc: (23,6)-(23,11) = "break"
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,4)-(23,5) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (23,15)-(23,16) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (23,15)-(23,16) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
β”‚ β”œβ”€β”€ name: :==
@@ -203,8 +202,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
β”‚ β”‚ β”‚ └── keyword_loc: (25,10)-(25,15) = "break"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,4)-(25,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (25,16)-(25,17) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (25,16)-(25,17) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: βˆ…
β”œβ”€β”€ name: :==
diff --git a/test/prism/snapshots/hashes.txt b/test/prism/snapshots/hashes.txt
index 12165632c4..824def5ca1 100644
--- a/test/prism/snapshots/hashes.txt
+++ b/test/prism/snapshots/hashes.txt
@@ -351,6 +351,5 @@
β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ └── closing_loc: (25,19)-(25,20) = "}"
β”‚ β”œβ”€β”€ opening_loc: (23,4)-(23,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (26,0)-(26,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (26,0)-(26,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/if.txt b/test/prism/snapshots/if.txt
index ecdb1f3502..b48b58d1c0 100644
--- a/test/prism/snapshots/if.txt
+++ b/test/prism/snapshots/if.txt
@@ -364,8 +364,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (34,14)-(34,15) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (34,9)-(34,11) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (35,2)-(35,5) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (35,2)-(35,5) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ consequent:
β”‚ @ IfNode (location: (36,0)-(42,3))
@@ -406,8 +405,7 @@
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (37,14)-(37,15) = "|"
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (37,9)-(37,11) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (38,2)-(38,5) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (38,2)-(38,5) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ consequent:
β”‚ β”‚ @ ElseNode (location: (39,0)-(42,3))
@@ -444,8 +442,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (40,14)-(40,15) = "|"
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (40,9)-(40,11) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (41,2)-(41,5) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (41,2)-(41,5) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── end_keyword_loc: (42,0)-(42,3) = "end"
β”‚ └── end_keyword_loc: (42,0)-(42,3) = "end"
diff --git a/test/prism/snapshots/keyword_method_names.txt b/test/prism/snapshots/keyword_method_names.txt
index c12bb2c6f3..0714fa3d4b 100644
--- a/test/prism/snapshots/keyword_method_names.txt
+++ b/test/prism/snapshots/keyword_method_names.txt
@@ -61,8 +61,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (8,6)-(8,8) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,2)-(9,5) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (9,2)-(9,5) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
β”‚ β”‚ β”‚ β”œβ”€β”€ def_keyword_loc: (7,8)-(7,11) = "def"
diff --git a/test/prism/snapshots/lambda.txt b/test/prism/snapshots/lambda.txt
index 6e35f418ca..8e358b2709 100644
--- a/test/prism/snapshots/lambda.txt
+++ b/test/prism/snapshots/lambda.txt
@@ -24,8 +24,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ β”‚ └── closing_loc: (3,0)-(3,1) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (5,0)-(5,18))
β”‚ β”œβ”€β”€ locals: [:x]
β”‚ β”œβ”€β”€ operator_loc: (5,0)-(5,2) = "->"
@@ -75,8 +74,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,2)-(5,3) = "("
β”‚ β”‚ └── closing_loc: (5,13)-(5,14) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (7,0)-(7,15))
β”‚ β”œβ”€β”€ locals: [:a]
β”‚ β”œβ”€β”€ operator_loc: (7,0)-(7,2) = "->"
@@ -125,8 +123,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,2)-(7,3) = "("
β”‚ β”‚ └── closing_loc: (7,11)-(7,12) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (9,0)-(9,19))
β”‚ β”œβ”€β”€ locals: [:foo]
β”‚ β”œβ”€β”€ operator_loc: (9,0)-(9,2) = "->"
@@ -161,8 +158,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── @ LambdaNode (location: (11,0)-(11,18))
β”œβ”€β”€ locals: [:foo]
β”œβ”€β”€ operator_loc: (11,0)-(11,2) = "->"
@@ -196,5 +192,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ └── closing_loc: βˆ…
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/method_calls.txt b/test/prism/snapshots/method_calls.txt
index 05306927d9..57c233fb51 100644
--- a/test/prism/snapshots/method_calls.txt
+++ b/test/prism/snapshots/method_calls.txt
@@ -956,8 +956,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (64,16)-(64,18) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (64,33)-(64,36) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (64,33)-(64,36) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (66,0)-(66,17))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1349,8 +1348,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (93,7)-(93,8) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (93,9)-(93,10) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (93,9)-(93,10) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (95,0)-(95,14))
β”‚ β”œβ”€β”€ receiver:
@@ -1380,8 +1378,7 @@
β”‚ β”‚ β”‚ └── @ BackReferenceReadNode (location: (95,10)-(95,12))
β”‚ β”‚ β”‚ └── name: :$&
β”‚ β”‚ β”œβ”€β”€ opening_loc: (95,8)-(95,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (95,13)-(95,14) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (95,13)-(95,14) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (97,0)-(97,12))
β”‚ β”œβ”€β”€ receiver:
@@ -1465,8 +1462,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (101,14)-(101,15) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (101,16)-(101,17) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (101,16)-(101,17) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (103,0)-(103,12))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1538,8 +1534,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (105,20)-(105,22) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (105,23)-(105,26) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (105,23)-(105,26) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (105,27)-(105,28) = "}"
@@ -1586,8 +1581,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (107,16)-(107,18) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (107,19)-(107,22) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (107,19)-(107,22) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: (107,11)-(107,13) = "**"
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (107,23)-(107,24) = "}"
@@ -1645,8 +1639,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (109,22)-(109,23) = "\""
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── unescaped: "baz"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (109,15)-(109,17) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (109,24)-(109,27) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (109,24)-(109,27) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (109,27)-(109,28) = "}"
β”‚ β”‚ β”‚ └── closing_loc: (109,28)-(109,29) = "\""
@@ -1658,8 +1651,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (109,30)-(109,32) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (109,33)-(109,36) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (109,33)-(109,36) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (111,0)-(111,28))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1695,8 +1687,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (111,18)-(111,20) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (111,21)-(111,24) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (111,21)-(111,24) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ end_keyword_loc: (111,25)-(111,28) = "end"
β”‚ β”‚ β”‚ └── name: :Bar
@@ -1736,8 +1727,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (113,19)-(113,21) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (113,22)-(113,25) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (113,22)-(113,25) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ end_keyword_loc: (113,26)-(113,29) = "end"
β”‚ β”‚ β”‚ └── name: :Bar
@@ -1770,8 +1760,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (115,9)-(115,11) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (115,12)-(115,15) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (115,12)-(115,15) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (115,4)-(115,5) = "["
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (115,15)-(115,16) = "]"
@@ -1814,8 +1803,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ IntegerNode (location: (117,19)-(117,20))
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: decimal
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (117,16)-(117,18) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (117,21)-(117,24) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (117,21)-(117,24) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ rescue_clause: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ else_clause: βˆ…
@@ -1890,8 +1878,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (121,8)-(121,10) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (123,4)-(123,7) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (123,4)-(123,7) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ consequent: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (124,2)-(124,5) = "end"
@@ -1964,8 +1951,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (128,8)-(128,10) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (130,4)-(130,7) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (130,4)-(130,7) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ UntilNode (location: (132,2)-(135,5))
@@ -1999,8 +1985,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (133,8)-(133,10) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (134,4)-(134,7) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (134,4)-(134,7) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
@@ -2034,8 +2019,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (137,7)-(137,8) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (137,8)-(137,9) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (137,8)-(137,9) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
@@ -2088,8 +2072,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (139,7)-(139,8) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (139,15)-(139,16) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (139,15)-(139,16) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
@@ -2111,8 +2094,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (141,2)-(141,3) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (141,3)-(141,4) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (141,3)-(141,4) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
β”‚ β”œβ”€β”€ name: :+
@@ -2135,8 +2117,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (141,9)-(141,10) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (141,10)-(141,11) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (141,10)-(141,11) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
@@ -2175,8 +2156,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (143,9)-(143,10) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (143,10)-(143,11) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (143,10)-(143,11) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt
index 960264f6a8..b185e1ef42 100644
--- a/test/prism/snapshots/methods.txt
+++ b/test/prism/snapshots/methods.txt
@@ -1583,8 +1583,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (161,12)-(161,13) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (161,13)-(161,14) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (161,13)-(161,14) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
diff --git a/test/prism/snapshots/patterns.txt b/test/prism/snapshots/patterns.txt
index dd5884bf51..44e15fb644 100644
--- a/test/prism/snapshots/patterns.txt
+++ b/test/prism/snapshots/patterns.txt
@@ -485,13 +485,12 @@
β”‚ β”‚ β”œβ”€β”€ opening_loc: (26,10)-(26,11) = "{"
β”‚ β”‚ β”œβ”€β”€ closing_loc: (26,16)-(26,17) = "}"
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (26,12)-(26,15))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (26,12)-(26,15))
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
- β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (26,12)-(26,15))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ LocalVariableReadNode (location: (26,12)-(26,15))
+ β”‚ β”‚ β”œβ”€β”€ name: :bar
+ β”‚ β”‚ └── depth: 1
β”‚ └── operator_loc: (26,4)-(26,6) = "=>"
β”œβ”€β”€ @ MatchRequiredNode (location: (28,0)-(28,13))
β”‚ β”œβ”€β”€ value:
@@ -1190,13 +1189,12 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (52,10)-(52,11) = "{"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (52,16)-(52,17) = "}"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (52,12)-(52,15))
- β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (52,12)-(52,15))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
- β”‚ β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ @ StatementsNode (location: (52,12)-(52,15))
+ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (52,12)-(52,15))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
+ β”‚ β”‚ β”‚ └── depth: 1
β”‚ β”‚ β”œβ”€β”€ right:
β”‚ β”‚ β”‚ @ LambdaNode (location: (52,21)-(52,31))
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
@@ -1204,13 +1202,12 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (52,24)-(52,25) = "{"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (52,30)-(52,31) = "}"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (52,26)-(52,29))
- β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (52,26)-(52,29))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
- β”‚ β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ @ StatementsNode (location: (52,26)-(52,29))
+ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (52,26)-(52,29))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
+ β”‚ β”‚ β”‚ └── depth: 1
β”‚ β”‚ β”œβ”€β”€ operator_loc: (52,18)-(52,20) = ".."
β”‚ β”‚ └── flags: βˆ…
β”‚ └── operator_loc: (52,4)-(52,6) = "=>"
@@ -2790,13 +2787,12 @@
β”‚ β”‚ β”œβ”€β”€ opening_loc: (125,10)-(125,11) = "{"
β”‚ β”‚ β”œβ”€β”€ closing_loc: (125,16)-(125,17) = "}"
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (125,12)-(125,15))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (125,12)-(125,15))
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
- β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (125,12)-(125,15))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ LocalVariableReadNode (location: (125,12)-(125,15))
+ β”‚ β”‚ β”œβ”€β”€ name: :bar
+ β”‚ β”‚ └── depth: 1
β”‚ └── operator_loc: (125,4)-(125,6) = "in"
β”œβ”€β”€ @ CaseMatchNode (location: (127,0)-(127,25))
β”‚ β”œβ”€β”€ predicate:
@@ -3457,13 +3453,12 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (152,16)-(152,17) = "{"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (152,22)-(152,23) = "}"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (152,18)-(152,21))
- β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (152,18)-(152,21))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
- β”‚ β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ @ StatementsNode (location: (152,18)-(152,21))
+ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (152,18)-(152,21))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
+ β”‚ β”‚ β”‚ └── depth: 1
β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
β”‚ β”‚ β”œβ”€β”€ in_loc: (152,10)-(152,12) = "in"
β”‚ β”‚ └── then_loc: (152,24)-(152,28) = "then"
@@ -4439,13 +4434,12 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (179,16)-(179,17) = "{"
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (179,22)-(179,23) = "}"
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (179,18)-(179,21))
- β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (179,18)-(179,21))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
- β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (179,18)-(179,21))
+ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (179,18)-(179,21))
+ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :bar
+ β”‚ β”‚ β”‚ β”‚ └── depth: 1
β”‚ β”‚ β”‚ β”œβ”€β”€ consequent: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: βˆ…
β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
@@ -4680,6 +4674,5 @@
β”‚ β”‚ β”‚ └── operator_loc: (199,23)-(199,25) = "=>"
β”‚ β”‚ └── operator_loc: (199,9)-(199,11) = "=>"
β”‚ β”œβ”€β”€ opening_loc: (198,4)-(198,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (200,0)-(200,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (200,0)-(200,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/procs.txt b/test/prism/snapshots/procs.txt
index 6af836e830..25783cfb34 100644
--- a/test/prism/snapshots/procs.txt
+++ b/test/prism/snapshots/procs.txt
@@ -30,102 +30,97 @@
β”‚ β”‚ β”‚ └── name: :d
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "("
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = ")"
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (1,18)-(1,19))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,18)-(1,19))
- β”‚ β”‚ β”œβ”€β”€ name: :b
- β”‚ β”‚ └── depth: 0
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (1,18)-(1,19))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ LocalVariableReadNode (location: (1,18)-(1,19))
+ β”‚ β”œβ”€β”€ name: :b
+ β”‚ └── depth: 0
β”œβ”€β”€ @ LambdaNode (location: (3,0)-(5,3))
β”‚ β”œβ”€β”€ locals: []
β”‚ β”œβ”€β”€ operator_loc: (3,0)-(3,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (3,3)-(3,5) = "do"
β”‚ β”œβ”€β”€ closing_loc: (5,0)-(5,3) = "end"
β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ BeginNode (location: (4,0)-(5,3))
- β”‚ β”‚ β”œβ”€β”€ begin_keyword_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ β”œβ”€β”€ rescue_clause: βˆ…
- β”‚ β”‚ β”œβ”€β”€ else_clause: βˆ…
- β”‚ β”‚ β”œβ”€β”€ ensure_clause:
- β”‚ β”‚ β”‚ @ EnsureNode (location: (4,0)-(5,3))
- β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_keyword_loc: (4,0)-(4,6) = "ensure"
- β”‚ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
- β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ BeginNode (location: (4,0)-(5,3))
+ β”‚ β”œβ”€β”€ begin_keyword_loc: βˆ…
+ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ β”œβ”€β”€ rescue_clause: βˆ…
+ β”‚ β”œβ”€β”€ else_clause: βˆ…
+ β”‚ β”œβ”€β”€ ensure_clause:
+ β”‚ β”‚ @ EnsureNode (location: (4,0)-(5,3))
+ β”‚ β”‚ β”œβ”€β”€ ensure_keyword_loc: (4,0)-(4,6) = "ensure"
+ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
+ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
β”œβ”€β”€ @ LambdaNode (location: (7,0)-(11,3))
β”‚ β”œβ”€β”€ locals: []
β”‚ β”œβ”€β”€ operator_loc: (7,0)-(7,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (7,3)-(7,5) = "do"
β”‚ β”œβ”€β”€ closing_loc: (11,0)-(11,3) = "end"
β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ BeginNode (location: (8,0)-(11,3))
- β”‚ β”‚ β”œβ”€β”€ begin_keyword_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ β”œβ”€β”€ rescue_clause:
- β”‚ β”‚ β”‚ @ RescueNode (location: (8,0)-(8,6))
- β”‚ β”‚ β”‚ β”œβ”€β”€ keyword_loc: (8,0)-(8,6) = "rescue"
- β”‚ β”‚ β”‚ β”œβ”€β”€ exceptions: (length: 0)
- β”‚ β”‚ β”‚ β”œβ”€β”€ operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ reference: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ β”‚ └── consequent: βˆ…
- β”‚ β”‚ β”œβ”€β”€ else_clause:
- β”‚ β”‚ β”‚ @ ElseNode (location: (9,0)-(10,6))
- β”‚ β”‚ β”‚ β”œβ”€β”€ else_keyword_loc: (9,0)-(9,4) = "else"
- β”‚ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ β”‚ └── end_keyword_loc: (10,0)-(10,6) = "ensure"
- β”‚ β”‚ β”œβ”€β”€ ensure_clause:
- β”‚ β”‚ β”‚ @ EnsureNode (location: (10,0)-(11,3))
- β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_keyword_loc: (10,0)-(10,6) = "ensure"
- β”‚ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ β”‚ └── end_keyword_loc: (11,0)-(11,3) = "end"
- β”‚ β”‚ └── end_keyword_loc: (11,0)-(11,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ BeginNode (location: (8,0)-(11,3))
+ β”‚ β”œβ”€β”€ begin_keyword_loc: βˆ…
+ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ β”œβ”€β”€ rescue_clause:
+ β”‚ β”‚ @ RescueNode (location: (8,0)-(8,6))
+ β”‚ β”‚ β”œβ”€β”€ keyword_loc: (8,0)-(8,6) = "rescue"
+ β”‚ β”‚ β”œβ”€β”€ exceptions: (length: 0)
+ β”‚ β”‚ β”œβ”€β”€ operator_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ reference: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ β”‚ └── consequent: βˆ…
+ β”‚ β”œβ”€β”€ else_clause:
+ β”‚ β”‚ @ ElseNode (location: (9,0)-(10,6))
+ β”‚ β”‚ β”œβ”€β”€ else_keyword_loc: (9,0)-(9,4) = "else"
+ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ β”‚ └── end_keyword_loc: (10,0)-(10,6) = "ensure"
+ β”‚ β”œβ”€β”€ ensure_clause:
+ β”‚ β”‚ @ EnsureNode (location: (10,0)-(11,3))
+ β”‚ β”‚ β”œβ”€β”€ ensure_keyword_loc: (10,0)-(10,6) = "ensure"
+ β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ β”‚ └── end_keyword_loc: (11,0)-(11,3) = "end"
+ β”‚ └── end_keyword_loc: (11,0)-(11,3) = "end"
β”œβ”€β”€ @ LambdaNode (location: (13,0)-(13,10))
β”‚ β”œβ”€β”€ locals: []
β”‚ β”œβ”€β”€ operator_loc: (13,0)-(13,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (13,3)-(13,4) = "{"
β”‚ β”œβ”€β”€ closing_loc: (13,9)-(13,10) = "}"
β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (13,5)-(13,8))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ CallNode (location: (13,5)-(13,8))
- β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ name: :foo
- β”‚ β”‚ β”œβ”€β”€ message_loc: (13,5)-(13,8) = "foo"
- β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ └── flags: variable_call
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (13,5)-(13,8))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ CallNode (location: (13,5)-(13,8))
+ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ name: :foo
+ β”‚ β”œβ”€β”€ message_loc: (13,5)-(13,8) = "foo"
+ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ └── flags: variable_call
β”œβ”€β”€ @ LambdaNode (location: (15,0)-(15,15))
β”‚ β”œβ”€β”€ locals: []
β”‚ β”œβ”€β”€ operator_loc: (15,0)-(15,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (15,3)-(15,5) = "do"
β”‚ β”œβ”€β”€ closing_loc: (15,12)-(15,15) = "end"
β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (15,7)-(15,10))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ CallNode (location: (15,7)-(15,10))
- β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ name: :foo
- β”‚ β”‚ β”œβ”€β”€ message_loc: (15,7)-(15,10) = "foo"
- β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ └── flags: variable_call
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (15,7)-(15,10))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ CallNode (location: (15,7)-(15,10))
+ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ name: :foo
+ β”‚ β”œβ”€β”€ message_loc: (15,7)-(15,10) = "foo"
+ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ └── flags: variable_call
β”œβ”€β”€ @ LambdaNode (location: (17,0)-(17,29))
β”‚ β”œβ”€β”€ locals: [:a, :b, :c, :d, :e]
β”‚ β”œβ”€β”€ operator_loc: (17,0)-(17,2) = "->"
@@ -164,13 +159,12 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (17,26)-(17,27))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ LocalVariableReadNode (location: (17,26)-(17,27))
- β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ └── depth: 0
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (17,26)-(17,27))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ LocalVariableReadNode (location: (17,26)-(17,27))
+ β”‚ β”œβ”€β”€ name: :a
+ β”‚ └── depth: 0
β”œβ”€β”€ @ LambdaNode (location: (19,0)-(19,40))
β”‚ β”œβ”€β”€ locals: [:a, :b, :c, :d, :e, :f, :g]
β”‚ β”œβ”€β”€ operator_loc: (19,0)-(19,2) = "->"
@@ -217,13 +211,12 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (19,3)-(19,4) = "("
β”‚ β”‚ └── closing_loc: (19,33)-(19,34) = ")"
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (19,37)-(19,38))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ LocalVariableReadNode (location: (19,37)-(19,38))
- β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ └── depth: 0
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (19,37)-(19,38))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ LocalVariableReadNode (location: (19,37)-(19,38))
+ β”‚ β”œβ”€β”€ name: :a
+ β”‚ └── depth: 0
β”œβ”€β”€ @ LambdaNode (location: (21,0)-(23,3))
β”‚ β”œβ”€β”€ locals: [:a, :b, :c, :d, :e, :f, :g]
β”‚ β”œβ”€β”€ operator_loc: (21,0)-(21,2) = "->"
@@ -270,13 +263,12 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,3)-(21,4) = "("
β”‚ β”‚ └── closing_loc: (21,33)-(21,34) = ")"
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (22,2)-(22,3))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ LocalVariableReadNode (location: (22,2)-(22,3))
- β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ └── depth: 0
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (22,2)-(22,3))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ LocalVariableReadNode (location: (22,2)-(22,3))
+ β”‚ β”œβ”€β”€ name: :a
+ β”‚ └── depth: 0
β”œβ”€β”€ @ LambdaNode (location: (25,0)-(25,25))
β”‚ β”œβ”€β”€ locals: [:a]
β”‚ β”œβ”€β”€ operator_loc: (25,0)-(25,2) = "->"
@@ -298,54 +290,52 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,3)-(25,4) = "("
β”‚ β”‚ └── closing_loc: (25,5)-(25,6) = ")"
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (25,9)-(25,23))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ LambdaNode (location: (25,9)-(25,23))
- β”‚ β”‚ β”œβ”€β”€ locals: [:b]
- β”‚ β”‚ β”œβ”€β”€ operator_loc: (25,9)-(25,11) = "->"
- β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,14)-(25,15) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (25,22)-(25,23) = "}"
- β”‚ β”‚ β”œβ”€β”€ parameters:
- β”‚ β”‚ β”‚ @ BlockParametersNode (location: (25,12)-(25,13))
- β”‚ β”‚ β”‚ β”œβ”€β”€ parameters:
- β”‚ β”‚ β”‚ β”‚ @ ParametersNode (location: (25,12)-(25,13))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ requireds: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ └── @ RequiredParameterNode (location: (25,12)-(25,13))
- β”‚ β”‚ β”‚ β”‚ β”‚ └── name: :b
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ optionals: (length: 0)
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ rest: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ posts: (length: 0)
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ keywords: (length: 0)
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ keyword_rest: βˆ…
- β”‚ β”‚ β”‚ β”‚ └── block: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (25,16)-(25,21))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ CallNode (location: (25,16)-(25,21))
- β”‚ β”‚ β”‚ β”œβ”€β”€ receiver:
- β”‚ β”‚ β”‚ β”‚ @ LocalVariableReadNode (location: (25,16)-(25,17))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ β”‚ └── depth: 1
- β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :*
- β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (25,18)-(25,19) = "*"
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments:
- β”‚ β”‚ β”‚ β”‚ @ ArgumentsNode (location: (25,20)-(25,21))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (25,20)-(25,21))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :b
- β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (25,9)-(25,23))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ LambdaNode (location: (25,9)-(25,23))
+ β”‚ β”œβ”€β”€ locals: [:b]
+ β”‚ β”œβ”€β”€ operator_loc: (25,9)-(25,11) = "->"
+ β”‚ β”œβ”€β”€ opening_loc: (25,14)-(25,15) = "{"
+ β”‚ β”œβ”€β”€ closing_loc: (25,22)-(25,23) = "}"
+ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ @ BlockParametersNode (location: (25,12)-(25,13))
+ β”‚ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ β”‚ @ ParametersNode (location: (25,12)-(25,13))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ requireds: (length: 1)
+ β”‚ β”‚ β”‚ β”‚ └── @ RequiredParameterNode (location: (25,12)-(25,13))
+ β”‚ β”‚ β”‚ β”‚ └── name: :b
+ β”‚ β”‚ β”‚ β”œβ”€β”€ optionals: (length: 0)
+ β”‚ β”‚ β”‚ β”œβ”€β”€ rest: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ posts: (length: 0)
+ β”‚ β”‚ β”‚ β”œβ”€β”€ keywords: (length: 0)
+ β”‚ β”‚ β”‚ β”œβ”€β”€ keyword_rest: βˆ…
+ β”‚ β”‚ β”‚ └── block: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
+ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”‚ └── closing_loc: βˆ…
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (25,16)-(25,21))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ CallNode (location: (25,16)-(25,21))
+ β”‚ β”œβ”€β”€ receiver:
+ β”‚ β”‚ @ LocalVariableReadNode (location: (25,16)-(25,17))
+ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ └── depth: 1
+ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ name: :*
+ β”‚ β”œβ”€β”€ message_loc: (25,18)-(25,19) = "*"
+ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”œβ”€β”€ arguments:
+ β”‚ β”‚ @ ArgumentsNode (location: (25,20)-(25,21))
+ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (25,20)-(25,21))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :b
+ β”‚ β”‚ β”‚ └── depth: 0
+ β”‚ β”‚ └── flags: βˆ…
+ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ └── flags: βˆ…
└── @ LambdaNode (location: (27,0)-(27,19))
β”œβ”€β”€ locals: [:a, :b, :c]
β”œβ”€β”€ operator_loc: (27,0)-(27,2) = "->"
@@ -379,5 +369,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (27,3)-(27,4) = "("
β”‚ └── closing_loc: (27,14)-(27,15) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/regex.txt b/test/prism/snapshots/regex.txt
index 2c32ffb4bc..3b6ed09c53 100644
--- a/test/prism/snapshots/regex.txt
+++ b/test/prism/snapshots/regex.txt
@@ -366,6 +366,5 @@
β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ └── depth: 1
β”‚ β”œβ”€β”€ opening_loc: (40,4)-(40,5) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (40,23)-(40,24) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (40,23)-(40,24) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/rescue.txt b/test/prism/snapshots/rescue.txt
index 1bca3164d7..4537d911cf 100644
--- a/test/prism/snapshots/rescue.txt
+++ b/test/prism/snapshots/rescue.txt
@@ -241,8 +241,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (18,4)-(18,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (20,0)-(20,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (20,0)-(20,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ IfNode (location: (22,0)-(24,3))
β”‚ β”œβ”€β”€ if_keyword_loc: (22,0)-(22,2) = "if"
diff --git a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt
index 29388b6c52..054e43754a 100644
--- a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt
@@ -34,6 +34,5 @@
β”‚ β”‚ └── closing_loc: (1,8)-(1,9) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,11) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,10)-(1,11) = "}"
└── flags: βˆ…
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 8de2bdbb16..2731158862 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,18)-(1,19) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,20)-(1,21) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,20)-(1,21) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
index 62d23890f4..94b9fa4f01 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,17)-(1,18) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,19)-(1,20) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,19)-(1,20) = "}"
└── flags: βˆ…
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 ac9a37289f..5e362a1019 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
@@ -49,6 +49,5 @@
β”‚ β”‚ └── closing_loc: (1,22)-(1,23) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,24)-(1,25) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,24)-(1,25) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_arg_optional.txt b/test/prism/snapshots/seattlerb/block_arg_optional.txt
index 069c925a20..f95c7aebaa 100644
--- a/test/prism/snapshots/seattlerb/block_arg_optional.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_optional.txt
@@ -37,6 +37,5 @@
β”‚ β”‚ └── closing_loc: (1,10)-(1,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_arg_scope.txt b/test/prism/snapshots/seattlerb/block_arg_scope.txt
index 2674541c81..1c060378ca 100644
--- a/test/prism/snapshots/seattlerb/block_arg_scope.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_scope.txt
@@ -34,6 +34,5 @@
β”‚ β”‚ └── closing_loc: (1,9)-(1,10) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,11)-(1,12) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,11)-(1,12) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_arg_scope2.txt b/test/prism/snapshots/seattlerb/block_arg_scope2.txt
index 4203c79ebc..9d8da491ec 100644
--- a/test/prism/snapshots/seattlerb/block_arg_scope2.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_scope2.txt
@@ -36,6 +36,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt
index 697637998e..aad8a88607 100644
--- a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt
@@ -38,6 +38,5 @@
β”‚ β”‚ └── closing_loc: (1,13)-(1,14) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,15)-(1,16) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,15)-(1,16) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_args_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_kwargs.txt
index 25ba958ed8..484c64bc36 100644
--- a/test/prism/snapshots/seattlerb/block_args_kwargs.txt
+++ b/test/prism/snapshots/seattlerb/block_args_kwargs.txt
@@ -39,6 +39,5 @@
β”‚ β”‚ β”œβ”€β”€ name: :kwargs
β”‚ β”‚ └── depth: 0
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,23) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,22)-(1,23) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt
index 4417158922..bec50cfb2a 100644
--- a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt
+++ b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt
@@ -33,6 +33,5 @@
β”‚ β”‚ └── closing_loc: (1,10)-(1,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_args_opt1.txt b/test/prism/snapshots/seattlerb/block_args_opt1.txt
index 15d8c1d51d..c2cfae78c8 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt1.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt1.txt
@@ -52,6 +52,5 @@
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,21)-(1,22) = "]"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,23)-(1,24) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,23)-(1,24) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_args_opt2.txt b/test/prism/snapshots/seattlerb/block_args_opt2.txt
index 5695a2351a..1ec66cb9fa 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt2.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt2.txt
@@ -44,6 +44,5 @@
β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
index 47f096a6d4..e6722c5e65 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
@@ -62,6 +62,5 @@
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,32)-(1,33) = "]"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,34)-(1,35) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,34)-(1,35) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_args_opt3.txt b/test/prism/snapshots/seattlerb/block_args_opt3.txt
index 1d9e58bb2f..0cdfa0bf8e 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt3.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt3.txt
@@ -69,6 +69,5 @@
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,39)-(1,40) = "]"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,41)-(1,42) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,41)-(1,42) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_break.txt b/test/prism/snapshots/seattlerb/block_break.txt
index 9b48681285..9187ab3524 100644
--- a/test/prism/snapshots/seattlerb/block_break.txt
+++ b/test/prism/snapshots/seattlerb/block_break.txt
@@ -49,8 +49,7 @@
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,21)-(1,22) = "|"
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,23)-(1,26) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,23)-(1,26) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
└── keyword_loc: (1,0)-(1,5) = "break"
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 671ab223b9..9a6ac52537 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
@@ -75,6 +75,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (4,5)-(4,7) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (4,8)-(4,11) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (4,8)-(4,11) = "end"
└── flags: βˆ…
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 09115a5f07..981b56eed5 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
@@ -54,8 +54,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,8)-(1,10) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,16) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,13)-(1,16) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (1,16)-(1,17) = "."
β”œβ”€β”€ name: :e
@@ -96,6 +95,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (1,19)-(1,21) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,28)-(1,31) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,28)-(1,31) = "end"
└── flags: βˆ…
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 5e969f3a9b..92a264fff3 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
@@ -54,8 +54,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,8)-(1,10) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,16) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,13)-(1,16) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (1,16)-(1,17) = "."
β”œβ”€β”€ name: :e
@@ -109,6 +108,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (1,21)-(1,23) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,30)-(1,33) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,30)-(1,33) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt
index 14c06592a2..35029c74c3 100644
--- a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt
+++ b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt
@@ -42,8 +42,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,6)-(1,8) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,9)-(1,12) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,9)-(1,12) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (1,12)-(1,14) = "::"
β”œβ”€β”€ name: :d
diff --git a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt
index 3ee42baa1b..85ad62fca7 100644
--- a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt
+++ b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt
@@ -42,8 +42,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,6)-(1,8) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,9)-(1,12) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,9)-(1,12) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (1,12)-(1,13) = "."
β”œβ”€β”€ name: :d
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 b75bc8ee71..08adde5fd8 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
@@ -56,6 +56,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (2,4)-(2,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (2,7)-(2,10) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (2,7)-(2,10) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt
index 0685638b43..5537ba25a7 100644
--- a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt
+++ b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt
@@ -27,8 +27,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,8)-(1,11) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,8)-(1,11) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (1,11)-(1,13) = "::"
β”œβ”€β”€ name: :c
diff --git a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt
index 1be09de692..13589d2262 100644
--- a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt
+++ b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt
@@ -27,8 +27,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,8)-(1,11) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,8)-(1,11) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (1,11)-(1,12) = "."
β”œβ”€β”€ name: :c
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 0fa38bca2d..f50df15dc7 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt
index 01fb9c9795..74a3902c1a 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
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 4c1a9976bf..caeda850b0 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_decomp_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_splat.txt
index c3f5e7de61..4335b5f4ac 100644
--- a/test/prism/snapshots/seattlerb/block_decomp_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_decomp_splat.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,9)-(1,10) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,11)-(1,12) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,11)-(1,12) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_kw.txt b/test/prism/snapshots/seattlerb/block_kw.txt
index 9a5bf2b714..1ace3d9389 100644
--- a/test/prism/snapshots/seattlerb/block_kw.txt
+++ b/test/prism/snapshots/seattlerb/block_kw.txt
@@ -36,6 +36,5 @@
β”‚ β”‚ └── closing_loc: (1,12)-(1,13) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,15) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,14)-(1,15) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_kw__required.txt b/test/prism/snapshots/seattlerb/block_kw__required.txt
index c7ea062f7f..f1b40925fe 100644
--- a/test/prism/snapshots/seattlerb/block_kw__required.txt
+++ b/test/prism/snapshots/seattlerb/block_kw__required.txt
@@ -33,6 +33,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,16) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,16) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt
index a07f0128fc..ce495a7a7e 100644
--- a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt
+++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt
@@ -44,6 +44,5 @@
β”‚ β”‚ β”œβ”€β”€ name: :kw
β”‚ β”‚ └── depth: 0
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,19)-(1,20) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,19)-(1,20) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
index 25e2926ca3..3bf3b252f1 100644
--- a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
+++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt
@@ -53,6 +53,5 @@
β”‚ β”‚ β”œβ”€β”€ name: :kw
β”‚ β”‚ └── depth: 0
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,32)-(1,33) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,32)-(1,33) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_next.txt b/test/prism/snapshots/seattlerb/block_next.txt
index 8860716914..4fde9c7300 100644
--- a/test/prism/snapshots/seattlerb/block_next.txt
+++ b/test/prism/snapshots/seattlerb/block_next.txt
@@ -49,8 +49,7 @@
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,20)-(1,21) = "|"
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,13)-(1,15) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,25) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,22)-(1,25) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
└── keyword_loc: (1,0)-(1,4) = "next"
diff --git a/test/prism/snapshots/seattlerb/block_opt_arg.txt b/test/prism/snapshots/seattlerb/block_opt_arg.txt
index e2a9218b22..4e3863c1d0 100644
--- a/test/prism/snapshots/seattlerb/block_opt_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_arg.txt
@@ -39,6 +39,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_opt_splat.txt b/test/prism/snapshots/seattlerb/block_opt_splat.txt
index de85831d97..54009f2e0f 100644
--- a/test/prism/snapshots/seattlerb/block_opt_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_splat.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
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 56e9c30d28..a1cccaf42a 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
@@ -47,6 +47,5 @@
β”‚ β”‚ └── closing_loc: (1,19)-(1,20) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,21)-(1,22) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,21)-(1,22) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_optarg.txt b/test/prism/snapshots/seattlerb/block_optarg.txt
index 6a39de0dc9..6a22978ec9 100644
--- a/test/prism/snapshots/seattlerb/block_optarg.txt
+++ b/test/prism/snapshots/seattlerb/block_optarg.txt
@@ -40,6 +40,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_paren_splat.txt b/test/prism/snapshots/seattlerb/block_paren_splat.txt
index 81169108e2..04987521fe 100644
--- a/test/prism/snapshots/seattlerb/block_paren_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_paren_splat.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,12)-(1,13) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,15) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,14)-(1,15) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_reg_optarg.txt b/test/prism/snapshots/seattlerb/block_reg_optarg.txt
index b81b299ced..e9ad2f1a6a 100644
--- a/test/prism/snapshots/seattlerb/block_reg_optarg.txt
+++ b/test/prism/snapshots/seattlerb/block_reg_optarg.txt
@@ -42,6 +42,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_return.txt b/test/prism/snapshots/seattlerb/block_return.txt
index c9f9a42f72..858e1a9de4 100644
--- a/test/prism/snapshots/seattlerb/block_return.txt
+++ b/test/prism/snapshots/seattlerb/block_return.txt
@@ -50,7 +50,6 @@
β”‚ β”‚ β”‚ └── closing_loc: (1,22)-(1,23) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,15)-(1,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,24)-(1,27) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,24)-(1,27) = "end"
β”‚ └── flags: βˆ…
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_scope.txt b/test/prism/snapshots/seattlerb/block_scope.txt
index ef7117bcfd..3a2e23d27f 100644
--- a/test/prism/snapshots/seattlerb/block_scope.txt
+++ b/test/prism/snapshots/seattlerb/block_scope.txt
@@ -24,6 +24,5 @@
β”‚ β”‚ └── closing_loc: (1,7)-(1,8) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,9)-(1,10) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,9)-(1,10) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/block_splat_reg.txt b/test/prism/snapshots/seattlerb/block_splat_reg.txt
index e685bd0264..5f7d263def 100644
--- a/test/prism/snapshots/seattlerb/block_splat_reg.txt
+++ b/test/prism/snapshots/seattlerb/block_splat_reg.txt
@@ -36,6 +36,5 @@
β”‚ β”‚ └── closing_loc: (1,10)-(1,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/bug169.txt b/test/prism/snapshots/seattlerb/bug169.txt
index 901792e094..901778c873 100644
--- a/test/prism/snapshots/seattlerb/bug169.txt
+++ b/test/prism/snapshots/seattlerb/bug169.txt
@@ -24,6 +24,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,6)-(1,7) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,6)-(1,7) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/bug236.txt b/test/prism/snapshots/seattlerb/bug236.txt
index a6ee09e21a..c9009c0bf0 100644
--- a/test/prism/snapshots/seattlerb/bug236.txt
+++ b/test/prism/snapshots/seattlerb/bug236.txt
@@ -33,8 +33,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (1,5)-(1,6) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,1)-(1,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,6)-(1,7) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,6)-(1,7) = "}"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (3,0)-(3,6))
β”œβ”€β”€ receiver: βˆ…
@@ -65,6 +64,5 @@
β”‚ β”‚ └── closing_loc: (3,4)-(3,5) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (3,1)-(3,2) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (3,5)-(3,6) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,5)-(3,6) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/bug_187.txt b/test/prism/snapshots/seattlerb/bug_187.txt
index 5c3fc886d6..83c443c7c2 100644
--- a/test/prism/snapshots/seattlerb/bug_187.txt
+++ b/test/prism/snapshots/seattlerb/bug_187.txt
@@ -44,8 +44,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,4)-(2,6) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,7)-(2,10) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (2,7)-(2,10) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ locals: []
β”‚ β”‚ β”œβ”€β”€ def_keyword_loc: (1,8)-(1,11) = "def"
diff --git a/test/prism/snapshots/seattlerb/bug_249.txt b/test/prism/snapshots/seattlerb/bug_249.txt
index b064cd8817..720c4d16f2 100644
--- a/test/prism/snapshots/seattlerb/bug_249.txt
+++ b/test/prism/snapshots/seattlerb/bug_249.txt
@@ -49,8 +49,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ equal_loc: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (3,0)-(3,3) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,17)-(1,19) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (4,1)-(4,4) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (4,1)-(4,4) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,6)-(1,7) = "("
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (4,4)-(4,5) = ")"
diff --git a/test/prism/snapshots/seattlerb/bug_args__19.txt b/test/prism/snapshots/seattlerb/bug_args__19.txt
index 56214d6ffc..f4cf106679 100644
--- a/test/prism/snapshots/seattlerb/bug_args__19.txt
+++ b/test/prism/snapshots/seattlerb/bug_args__19.txt
@@ -52,6 +52,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,15)-(1,16) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,15)-(1,16) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn.txt b/test/prism/snapshots/seattlerb/bug_args_masgn.txt
index dd79941f72..ba00a0c0e2 100644
--- a/test/prism/snapshots/seattlerb/bug_args_masgn.txt
+++ b/test/prism/snapshots/seattlerb/bug_args_masgn.txt
@@ -42,6 +42,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt
index ce5982c00d..f417b7e040 100644
--- a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt
+++ b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt
@@ -50,6 +50,5 @@
β”‚ β”‚ └── closing_loc: (1,19)-(1,20) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,21)-(1,22) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,21)-(1,22) = "}"
└── flags: βˆ…
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 9456c0e95e..8554ec03d0 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
@@ -48,6 +48,5 @@
β”‚ β”‚ └── closing_loc: (1,16)-(1,17) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,18)-(1,19) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,18)-(1,19) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/bug_masgn_right.txt b/test/prism/snapshots/seattlerb/bug_masgn_right.txt
index e9d8d1b945..fba08a0260 100644
--- a/test/prism/snapshots/seattlerb/bug_masgn_right.txt
+++ b/test/prism/snapshots/seattlerb/bug_masgn_right.txt
@@ -42,6 +42,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/call_array_block_call.txt b/test/prism/snapshots/seattlerb/call_array_block_call.txt
index ef78bbe85c..b5705817ac 100644
--- a/test/prism/snapshots/seattlerb/call_array_block_call.txt
+++ b/test/prism/snapshots/seattlerb/call_array_block_call.txt
@@ -29,8 +29,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,13) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,17) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,14)-(1,17) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "["
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,18)-(1,19) = "]"
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 b7bb7427c6..92f98926f6 100644
--- a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt
+++ b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt
@@ -25,8 +25,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "("
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,6)-(1,7) = ")"
- β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "["
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,11) = "]"
β”‚ β”‚ └── flags: βˆ…
@@ -38,6 +37,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,12)-(1,14) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (2,0)-(2,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (2,0)-(2,3) = "end"
└── flags: βˆ…
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 0ad9064b0c..ac3bccb3f6 100644
--- a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt
+++ b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt
@@ -41,8 +41,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,4)-(2,6) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,7)-(2,10) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (2,7)-(2,10) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ rescue_clause: βˆ…
β”‚ β”‚ β”œβ”€β”€ else_clause: βˆ…
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 9ecc0426b2..9d94a45e5d 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
@@ -18,12 +18,11 @@
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,13) = "end"
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (1,8)-(1,9))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ IntegerNode (location: (1,8)-(1,9))
- β”‚ β”‚ β”‚ └── flags: decimal
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (1,8)-(1,9))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ IntegerNode (location: (1,8)-(1,9))
+ β”‚ β”‚ └── flags: decimal
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block:
@@ -36,6 +35,5 @@
β”‚ β”‚ └── @ IntegerNode (location: (1,17)-(1,18))
β”‚ β”‚ └── flags: decimal
β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,19)-(1,22) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,19)-(1,22) = "end"
└── flags: βˆ…
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 102a451c35..c641ccdeeb 100644
--- a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
+++ b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
@@ -18,12 +18,11 @@
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "{"
β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,9)-(1,10) = "}"
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (1,7)-(1,8))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ IntegerNode (location: (1,7)-(1,8))
- β”‚ β”‚ β”‚ └── flags: decimal
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (1,7)-(1,8))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ IntegerNode (location: (1,7)-(1,8))
+ β”‚ β”‚ └── flags: decimal
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block:
@@ -36,6 +35,5 @@
β”‚ β”‚ └── @ IntegerNode (location: (1,14)-(1,15))
β”‚ β”‚ └── flags: decimal
β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,13) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,19) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,19) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/case_in.txt b/test/prism/snapshots/seattlerb/case_in.txt
index 0000aa064d..793448fb7a 100644
--- a/test/prism/snapshots/seattlerb/case_in.txt
+++ b/test/prism/snapshots/seattlerb/case_in.txt
@@ -539,11 +539,10 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (70,6)-(70,7) = "("
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (70,8)-(70,9) = ")"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (70,12)-(70,16))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ TrueNode (location: (70,12)-(70,16))
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (70,12)-(70,16))
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ TrueNode (location: (70,12)-(70,16))
β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableTargetNode (location: (70,20)-(70,21))
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :c
β”‚ β”‚ β”‚ β”‚ └── depth: 0
diff --git a/test/prism/snapshots/seattlerb/dasgn_icky2.txt b/test/prism/snapshots/seattlerb/dasgn_icky2.txt
index e78ada28c2..34540783fc 100644
--- a/test/prism/snapshots/seattlerb/dasgn_icky2.txt
+++ b/test/prism/snapshots/seattlerb/dasgn_icky2.txt
@@ -57,6 +57,5 @@
β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ └── end_keyword_loc: (7,2)-(7,5) = "end"
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,4) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (8,0)-(8,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (8,0)-(8,3) = "end"
└── flags: βˆ…
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 baaea40244..118db362cb 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,8 +45,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,18)-(1,20) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,25) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,22)-(1,25) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ locals: []
β”‚ β”‚ β”œβ”€β”€ def_keyword_loc: (1,2)-(1,5) = "def"
diff --git a/test/prism/snapshots/seattlerb/difficult3_.txt b/test/prism/snapshots/seattlerb/difficult3_.txt
index 8ac226b572..3f2b0545dc 100644
--- a/test/prism/snapshots/seattlerb/difficult3_.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3_2.txt b/test/prism/snapshots/seattlerb/difficult3_2.txt
index c415b79b34..1352705188 100644
--- a/test/prism/snapshots/seattlerb/difficult3_2.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_2.txt
@@ -36,6 +36,5 @@
β”‚ β”‚ └── closing_loc: (1,10)-(1,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3_3.txt b/test/prism/snapshots/seattlerb/difficult3_3.txt
index 13ea75ceea..04207aad7a 100644
--- a/test/prism/snapshots/seattlerb/difficult3_3.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_3.txt
@@ -40,6 +40,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3_5.txt b/test/prism/snapshots/seattlerb/difficult3_5.txt
index 5326e818e5..d446ac88b0 100644
--- a/test/prism/snapshots/seattlerb/difficult3_5.txt
+++ b/test/prism/snapshots/seattlerb/difficult3_5.txt
@@ -23,27 +23,25 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,5) = "("
β”‚ β”‚ β”‚ └── closing_loc: (1,5)-(1,6) = ")"
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (1,9)-(1,17))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ CallNode (location: (1,9)-(1,17))
- β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :g
- β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (1,9)-(1,10) = "g"
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ block:
- β”‚ β”‚ β”‚ β”‚ @ BlockNode (location: (1,11)-(1,17))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,13) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,17) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (1,9)-(1,17))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ CallNode (location: (1,9)-(1,17))
+ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ name: :g
+ β”‚ β”‚ β”œβ”€β”€ message_loc: (1,9)-(1,10) = "g"
+ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ block:
+ β”‚ β”‚ β”‚ @ BlockNode (location: (1,11)-(1,17))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
+ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,13) = "do"
+ β”‚ β”‚ β”‚ └── closing_loc: (1,14)-(1,17) = "end"
+ β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__10.txt b/test/prism/snapshots/seattlerb/difficult3__10.txt
index 4bd146e7a3..eabf92f1f4 100644
--- a/test/prism/snapshots/seattlerb/difficult3__10.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__10.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__11.txt b/test/prism/snapshots/seattlerb/difficult3__11.txt
index ab92f6d6ce..16e2bd68b1 100644
--- a/test/prism/snapshots/seattlerb/difficult3__11.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__11.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__12.txt b/test/prism/snapshots/seattlerb/difficult3__12.txt
index 6e96ef63eb..072b3fb130 100644
--- a/test/prism/snapshots/seattlerb/difficult3__12.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__12.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__6.txt b/test/prism/snapshots/seattlerb/difficult3__6.txt
index 09efc1bf6d..2afabb3bb1 100644
--- a/test/prism/snapshots/seattlerb/difficult3__6.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__6.txt
@@ -47,6 +47,5 @@
β”‚ β”‚ └── closing_loc: (1,18)-(1,19) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,20)-(1,21) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,20)-(1,21) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__7.txt b/test/prism/snapshots/seattlerb/difficult3__7.txt
index ef8732aa5b..c44ed91659 100644
--- a/test/prism/snapshots/seattlerb/difficult3__7.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__7.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__8.txt b/test/prism/snapshots/seattlerb/difficult3__8.txt
index 294530d34a..fe6e57b9e5 100644
--- a/test/prism/snapshots/seattlerb/difficult3__8.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__8.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,17)-(1,18) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,19)-(1,20) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,19)-(1,20) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult3__9.txt b/test/prism/snapshots/seattlerb/difficult3__9.txt
index e05788f406..313eac0f2c 100644
--- a/test/prism/snapshots/seattlerb/difficult3__9.txt
+++ b/test/prism/snapshots/seattlerb/difficult3__9.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,12)-(1,13) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,15) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,14)-(1,15) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult6_.txt b/test/prism/snapshots/seattlerb/difficult6_.txt
index fd8b49f94a..3c2c093bad 100644
--- a/test/prism/snapshots/seattlerb/difficult6_.txt
+++ b/test/prism/snapshots/seattlerb/difficult6_.txt
@@ -30,31 +30,30 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ └── closing_loc: (1,11)-(1,12) = ")"
- β”œβ”€β”€ body:
- β”‚ @ StatementsNode (location: (1,15)-(1,23))
- β”‚ └── body: (length: 1)
- β”‚ └── @ CallNode (location: (1,15)-(1,23))
- β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”œβ”€β”€ name: :p
- β”‚ β”œβ”€β”€ message_loc: (1,15)-(1,16) = "p"
- β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”œβ”€β”€ arguments:
- β”‚ β”‚ @ ArgumentsNode (location: (1,17)-(1,23))
- β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
- β”‚ β”‚ β”‚ └── @ ArrayNode (location: (1,17)-(1,23))
- β”‚ β”‚ β”‚ β”œβ”€β”€ elements: (length: 2)
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @ LocalVariableReadNode (location: (1,18)-(1,19))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,21)-(1,22))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :b
- β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,17)-(1,18) = "["
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,23) = "]"
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ └── flags: βˆ…
- β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ └── flags: βˆ…
- └── numbered_parameters: 0
+ └── body:
+ @ StatementsNode (location: (1,15)-(1,23))
+ └── body: (length: 1)
+ └── @ CallNode (location: (1,15)-(1,23))
+ β”œβ”€β”€ receiver: βˆ…
+ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”œβ”€β”€ name: :p
+ β”œβ”€β”€ message_loc: (1,15)-(1,16) = "p"
+ β”œβ”€β”€ opening_loc: βˆ…
+ β”œβ”€β”€ arguments:
+ β”‚ @ ArgumentsNode (location: (1,17)-(1,23))
+ β”‚ β”œβ”€β”€ arguments: (length: 1)
+ β”‚ β”‚ └── @ ArrayNode (location: (1,17)-(1,23))
+ β”‚ β”‚ β”œβ”€β”€ elements: (length: 2)
+ β”‚ β”‚ β”‚ β”œβ”€β”€ @ LocalVariableReadNode (location: (1,18)-(1,19))
+ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ β”‚ β”‚ └── depth: 0
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,21)-(1,22))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :b
+ β”‚ β”‚ β”‚ └── depth: 0
+ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,17)-(1,18) = "["
+ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,23) = "]"
+ β”‚ β”‚ └── flags: βˆ…
+ β”‚ └── flags: βˆ…
+ β”œβ”€β”€ closing_loc: βˆ…
+ β”œβ”€β”€ block: βˆ…
+ └── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult6__7.txt b/test/prism/snapshots/seattlerb/difficult6__7.txt
index 4a374b95e1..2b8bf58ae0 100644
--- a/test/prism/snapshots/seattlerb/difficult6__7.txt
+++ b/test/prism/snapshots/seattlerb/difficult6__7.txt
@@ -50,6 +50,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (1,8)-(1,9) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,11) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,10)-(1,11) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult6__8.txt b/test/prism/snapshots/seattlerb/difficult6__8.txt
index 041e6ca09d..88f0436a72 100644
--- a/test/prism/snapshots/seattlerb/difficult6__8.txt
+++ b/test/prism/snapshots/seattlerb/difficult6__8.txt
@@ -50,6 +50,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (1,9)-(1,10) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,11)-(1,12) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,11)-(1,12) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/difficult7_.txt b/test/prism/snapshots/seattlerb/difficult7_.txt
index 4e41e06c50..5650727fad 100644
--- a/test/prism/snapshots/seattlerb/difficult7_.txt
+++ b/test/prism/snapshots/seattlerb/difficult7_.txt
@@ -75,8 +75,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,18)-(2,19) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,32)-(2,33) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (2,32)-(2,33) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── operator_loc: βˆ…
β”‚ └── @ AssocNode (location: (3,8)-(3,14))
diff --git a/test/prism/snapshots/seattlerb/do_bug.txt b/test/prism/snapshots/seattlerb/do_bug.txt
index 245baea629..14c707055f 100644
--- a/test/prism/snapshots/seattlerb/do_bug.txt
+++ b/test/prism/snapshots/seattlerb/do_bug.txt
@@ -57,6 +57,5 @@
β”‚ β”‚ └── closing_loc: (2,9)-(2,10) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (2,4)-(2,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (4,0)-(4,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (4,0)-(4,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/do_lambda.txt b/test/prism/snapshots/seattlerb/do_lambda.txt
index 3ef5303475..4713fb3e4b 100644
--- a/test/prism/snapshots/seattlerb/do_lambda.txt
+++ b/test/prism/snapshots/seattlerb/do_lambda.txt
@@ -14,5 +14,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ └── closing_loc: (1,3)-(1,4) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_1.txt b/test/prism/snapshots/seattlerb/iter_args_1.txt
index 6432062d82..3b0deb9ae6 100644
--- a/test/prism/snapshots/seattlerb/iter_args_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_1.txt
@@ -34,6 +34,5 @@
β”‚ β”‚ └── closing_loc: (1,8)-(1,9) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,11) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,10)-(1,11) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_10_1.txt b/test/prism/snapshots/seattlerb/iter_args_10_1.txt
index b27792c9c5..341954af29 100644
--- a/test/prism/snapshots/seattlerb/iter_args_10_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_10_1.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,18)-(1,19) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,20)-(1,21) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,20)-(1,21) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_10_2.txt b/test/prism/snapshots/seattlerb/iter_args_10_2.txt
index 245233f4fa..d2bcc55c71 100644
--- a/test/prism/snapshots/seattlerb/iter_args_10_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_10_2.txt
@@ -47,6 +47,5 @@
β”‚ β”‚ └── closing_loc: (1,22)-(1,23) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,24)-(1,25) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,24)-(1,25) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_11_1.txt b/test/prism/snapshots/seattlerb/iter_args_11_1.txt
index 571169ee9e..d70ee259f2 100644
--- a/test/prism/snapshots/seattlerb/iter_args_11_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_11_1.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,21)-(1,22) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,23)-(1,24) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,23)-(1,24) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_11_2.txt b/test/prism/snapshots/seattlerb/iter_args_11_2.txt
index 2dad442a23..553ad42132 100644
--- a/test/prism/snapshots/seattlerb/iter_args_11_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_11_2.txt
@@ -49,6 +49,5 @@
β”‚ β”‚ └── closing_loc: (1,25)-(1,26) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,27)-(1,28) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,27)-(1,28) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_2__19.txt b/test/prism/snapshots/seattlerb/iter_args_2__19.txt
index a775d2e425..967df1ac35 100644
--- a/test/prism/snapshots/seattlerb/iter_args_2__19.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_2__19.txt
@@ -40,6 +40,5 @@
β”‚ β”‚ └── closing_loc: (1,11)-(1,12) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_3.txt b/test/prism/snapshots/seattlerb/iter_args_3.txt
index 786e0d72fb..b0570dc8ce 100644
--- a/test/prism/snapshots/seattlerb/iter_args_3.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_3.txt
@@ -44,6 +44,5 @@
β”‚ β”‚ └── closing_loc: (1,17)-(1,18) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,19)-(1,20) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,19)-(1,20) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_4.txt b/test/prism/snapshots/seattlerb/iter_args_4.txt
index 41238bac4f..9e6822aea2 100644
--- a/test/prism/snapshots/seattlerb/iter_args_4.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_4.txt
@@ -38,6 +38,5 @@
β”‚ β”‚ └── closing_loc: (1,13)-(1,14) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,15)-(1,16) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,15)-(1,16) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_5.txt b/test/prism/snapshots/seattlerb/iter_args_5.txt
index e0b1400eaf..0af5cda322 100644
--- a/test/prism/snapshots/seattlerb/iter_args_5.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_5.txt
@@ -36,6 +36,5 @@
β”‚ β”‚ └── closing_loc: (1,10)-(1,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_6.txt b/test/prism/snapshots/seattlerb/iter_args_6.txt
index 244d99d197..34a6a87559 100644
--- a/test/prism/snapshots/seattlerb/iter_args_6.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_6.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_7_1.txt b/test/prism/snapshots/seattlerb/iter_args_7_1.txt
index cca154572d..cb9521efd1 100644
--- a/test/prism/snapshots/seattlerb/iter_args_7_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_7_1.txt
@@ -41,6 +41,5 @@
β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_7_2.txt b/test/prism/snapshots/seattlerb/iter_args_7_2.txt
index 42baefab77..dcb74967d9 100644
--- a/test/prism/snapshots/seattlerb/iter_args_7_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_7_2.txt
@@ -45,6 +45,5 @@
β”‚ β”‚ └── closing_loc: (1,19)-(1,20) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,21)-(1,22) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,21)-(1,22) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_8_1.txt b/test/prism/snapshots/seattlerb/iter_args_8_1.txt
index fe1d1d0885..7f15b98ea9 100644
--- a/test/prism/snapshots/seattlerb/iter_args_8_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_8_1.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,18)-(1,19) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,20)-(1,21) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,20)-(1,21) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_8_2.txt b/test/prism/snapshots/seattlerb/iter_args_8_2.txt
index faa9ccd60b..305798bab2 100644
--- a/test/prism/snapshots/seattlerb/iter_args_8_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_8_2.txt
@@ -47,6 +47,5 @@
β”‚ β”‚ └── closing_loc: (1,22)-(1,23) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,24)-(1,25) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,24)-(1,25) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_9_1.txt b/test/prism/snapshots/seattlerb/iter_args_9_1.txt
index f996e7c796..0f37861d68 100644
--- a/test/prism/snapshots/seattlerb/iter_args_9_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_9_1.txt
@@ -39,6 +39,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_args_9_2.txt b/test/prism/snapshots/seattlerb/iter_args_9_2.txt
index 9832fb912e..3933c7d1da 100644
--- a/test/prism/snapshots/seattlerb/iter_args_9_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_9_2.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ └── closing_loc: (1,18)-(1,19) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,20)-(1,21) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,20)-(1,21) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_kwarg.txt b/test/prism/snapshots/seattlerb/iter_kwarg.txt
index dbbc6d6c31..6175f85b7f 100644
--- a/test/prism/snapshots/seattlerb/iter_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/iter_kwarg.txt
@@ -36,6 +36,5 @@
β”‚ β”‚ └── closing_loc: (1,9)-(1,10) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,11)-(1,12) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,11)-(1,12) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
index 33a5e25bc1..3d197900d1 100644
--- a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
@@ -40,6 +40,5 @@
β”‚ β”‚ └── closing_loc: (1,14)-(1,15) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,16)-(1,17) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt
index c951864a8a..65048d534d 100644
--- a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt
+++ b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt
@@ -18,8 +18,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,8)-(1,11) = "end"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
β”‚ β”œβ”€β”€ block: βˆ…
@@ -39,8 +38,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,5)-(3,6) = "{"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,6)-(3,7) = "}"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
β”‚ β”œβ”€β”€ block: βˆ…
@@ -65,8 +63,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,4)-(5,5) = "("
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (5,5)-(5,6) = ")"
- β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
β”‚ β”œβ”€β”€ block: βˆ…
@@ -91,8 +88,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,4)-(7,5) = "("
β”‚ β”‚ β”‚ └── closing_loc: (7,5)-(7,6) = ")"
- β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body: βˆ…
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block: βˆ…
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 79fe45763e..2421482f67 100644
--- a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt
@@ -55,6 +55,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,4) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,0)-(3,3) = "end"
└── flags: βˆ…
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 68611308c6..e582bc2b5f 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
@@ -68,6 +68,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,0)-(3,3) = "end"
└── flags: βˆ…
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 517701bace..ca8f6fd729 100644
--- a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt
@@ -68,6 +68,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,0)-(3,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/pipe_semicolon.txt b/test/prism/snapshots/seattlerb/pipe_semicolon.txt
index a788b92ab8..1201e87a66 100644
--- a/test/prism/snapshots/seattlerb/pipe_semicolon.txt
+++ b/test/prism/snapshots/seattlerb/pipe_semicolon.txt
@@ -34,6 +34,5 @@
β”‚ β”‚ └── closing_loc: (1,13)-(1,14) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,15)-(1,18) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,15)-(1,18) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/pipe_space.txt b/test/prism/snapshots/seattlerb/pipe_space.txt
index 663377bdce..9ecf022775 100644
--- a/test/prism/snapshots/seattlerb/pipe_space.txt
+++ b/test/prism/snapshots/seattlerb/pipe_space.txt
@@ -32,6 +32,5 @@
β”‚ β”‚ └── closing_loc: (1,9)-(1,10) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,11)-(1,14) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,11)-(1,14) = "end"
└── flags: βˆ…
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 5264eee74b..bdd92a5482 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt
@@ -44,8 +44,7 @@
β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
β”‚ β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,0)-(5,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,0)-(5,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (5,3)-(5,4) = "."
β”œβ”€β”€ name: :call
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 be1a23f12b..a137470b71 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt
@@ -67,6 +67,5 @@
β”‚ β”‚ β”‚ └── end_keyword_loc: (9,0)-(9,3) = "end"
β”‚ β”‚ └── end_keyword_loc: (9,0)-(9,3) = "end"
β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (9,0)-(9,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (9,0)-(9,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt
index c62a25c804..a7300bda96 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt
@@ -47,6 +47,5 @@
β”‚ β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
β”‚ β”‚ └── end_keyword_loc: (5,0)-(5,3) = "end"
β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (5,0)-(5,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (5,0)-(5,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt
index 2614d426dc..1d192161d7 100644
--- a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt
+++ b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt
@@ -72,6 +72,5 @@
β”‚ β”‚ β”‚ └── end_keyword_loc: (9,0)-(9,3) = "end"
β”‚ β”‚ └── end_keyword_loc: (9,0)-(9,3) = "end"
β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (9,0)-(9,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (9,0)-(9,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/rescue_in_block.txt b/test/prism/snapshots/seattlerb/rescue_in_block.txt
index 83bf2a7c5d..8864c835b1 100644
--- a/test/prism/snapshots/seattlerb/rescue_in_block.txt
+++ b/test/prism/snapshots/seattlerb/rescue_in_block.txt
@@ -43,6 +43,5 @@
β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ └── end_keyword_loc: (4,0)-(4,3) = "end"
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (4,0)-(4,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (4,0)-(4,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt b/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt
index fcfd205f7c..7392e71525 100644
--- a/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt
+++ b/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt
@@ -24,5 +24,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ └── closing_loc: βˆ…
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
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 64ee528f2c..0661b2a2aa 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
@@ -41,5 +41,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ └── closing_loc: (1,20)-(1,21) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt
index d3ab185420..19ea912814 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt
@@ -23,37 +23,35 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "("
β”‚ β”‚ β”‚ └── closing_loc: (1,6)-(1,7) = ")"
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (2,0)-(3,3))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ CallNode (location: (2,0)-(3,3))
- β”‚ β”‚ β”‚ β”œβ”€β”€ receiver:
- β”‚ β”‚ β”‚ β”‚ @ CallNode (location: (2,0)-(2,1))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (2,0)-(2,1) = "a"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ β”‚ β”‚ └── flags: variable_call
- β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: (2,1)-(2,2) = "."
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :b
- β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (2,2)-(2,3) = "b"
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ block:
- β”‚ β”‚ β”‚ β”‚ @ BlockNode (location: (2,4)-(3,3))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,4)-(2,6) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,3) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (2,0)-(3,3))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ CallNode (location: (2,0)-(3,3))
+ β”‚ β”‚ β”œβ”€β”€ receiver:
+ β”‚ β”‚ β”‚ @ CallNode (location: (2,0)-(2,1))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (2,0)-(2,1) = "a"
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ β”‚ β”‚ └── flags: variable_call
+ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: (2,1)-(2,2) = "."
+ β”‚ β”‚ β”œβ”€β”€ name: :b
+ β”‚ β”‚ β”œβ”€β”€ message_loc: (2,2)-(2,3) = "b"
+ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ block:
+ β”‚ β”‚ β”‚ @ BlockNode (location: (2,4)-(3,3))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
+ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,4)-(2,6) = "do"
+ β”‚ β”‚ β”‚ └── closing_loc: (3,0)-(3,3) = "end"
+ β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block: βˆ…
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 976f129fcb..84f7aaebf9 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
@@ -23,32 +23,30 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "("
β”‚ β”‚ β”‚ └── closing_loc: (1,6)-(1,7) = ")"
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (2,0)-(3,3))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ CallNode (location: (2,0)-(3,3))
- β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (2,0)-(2,1) = "a"
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,1)-(2,2) = "("
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments:
- β”‚ β”‚ β”‚ β”‚ @ ArgumentsNode (location: (2,2)-(2,3))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ └── @ IntegerNode (location: (2,2)-(2,3))
- β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: decimal
- β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,3)-(2,4) = ")"
- β”‚ β”‚ β”‚ β”œβ”€β”€ block:
- β”‚ β”‚ β”‚ β”‚ @ BlockNode (location: (2,5)-(3,3))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,5)-(2,7) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,3) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (2,0)-(3,3))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ CallNode (location: (2,0)-(3,3))
+ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ β”œβ”€β”€ message_loc: (2,0)-(2,1) = "a"
+ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,1)-(2,2) = "("
+ β”‚ β”‚ β”œβ”€β”€ arguments:
+ β”‚ β”‚ β”‚ @ ArgumentsNode (location: (2,2)-(2,3))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
+ β”‚ β”‚ β”‚ β”‚ └── @ IntegerNode (location: (2,2)-(2,3))
+ β”‚ β”‚ β”‚ β”‚ └── flags: decimal
+ β”‚ β”‚ β”‚ └── flags: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,3)-(2,4) = ")"
+ β”‚ β”‚ β”œβ”€β”€ block:
+ β”‚ β”‚ β”‚ @ BlockNode (location: (2,5)-(3,3))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
+ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,5)-(2,7) = "do"
+ β”‚ β”‚ β”‚ └── closing_loc: (3,0)-(3,3) = "end"
+ β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block: βˆ…
diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw.txt b/test/prism/snapshots/seattlerb/stabby_block_kw.txt
index beed3b76f5..fe95390a27 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_kw.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_kw.txt
@@ -28,5 +28,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "("
β”‚ └── closing_loc: (1,8)-(1,9) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt b/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt
index 77ce9defa3..99a2e70586 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt
@@ -25,5 +25,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "("
β”‚ └── closing_loc: (1,6)-(1,7) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/seattlerb/stabby_proc_scope.txt b/test/prism/snapshots/seattlerb/stabby_proc_scope.txt
index e11a9419fb..059192d67f 100644
--- a/test/prism/snapshots/seattlerb/stabby_proc_scope.txt
+++ b/test/prism/snapshots/seattlerb/stabby_proc_scope.txt
@@ -26,5 +26,4 @@
β”‚ β”‚ └── name: :b
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ └── closing_loc: (1,7)-(1,8) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/super.txt b/test/prism/snapshots/super.txt
index 72ed5d8877..55d7526b37 100644
--- a/test/prism/snapshots/super.txt
+++ b/test/prism/snapshots/super.txt
@@ -72,8 +72,7 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (13,6)-(13,7) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (13,7)-(13,8) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (13,7)-(13,8) = "}"
β”œβ”€β”€ @ SuperNode (location: (15,0)-(15,17))
β”‚ β”œβ”€β”€ keyword_loc: (15,0)-(15,5) = "super"
β”‚ β”œβ”€β”€ lparen_loc: (15,5)-(15,6) = "("
@@ -94,8 +93,7 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (15,15)-(15,16) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (15,16)-(15,17) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (15,16)-(15,17) = "}"
└── @ SuperNode (location: (17,0)-(17,21))
β”œβ”€β”€ keyword_loc: (17,0)-(17,5) = "super"
β”œβ”€β”€ lparen_loc: (17,5)-(17,6) = "("
diff --git a/test/prism/snapshots/unparser/corpus/literal/block.txt b/test/prism/snapshots/unparser/corpus/literal/block.txt
index 11f92dd01b..82cb3c20e4 100644
--- a/test/prism/snapshots/unparser/corpus/literal/block.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/block.txt
@@ -17,8 +17,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,0)-(2,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (2,0)-(2,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(4,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -49,8 +48,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (3,8)-(3,9) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,4)-(3,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (4,0)-(4,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (4,0)-(4,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(6,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -82,8 +80,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (5,9)-(5,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,4)-(5,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (6,0)-(6,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (6,0)-(6,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (7,0)-(8,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -117,8 +114,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (7,12)-(7,13) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,4)-(7,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (8,0)-(8,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (8,0)-(8,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (9,0)-(10,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -151,8 +147,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (9,11)-(9,12) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,4)-(9,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (10,0)-(10,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (10,0)-(10,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (11,0)-(13,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -176,8 +171,7 @@
β”‚ β”‚ β”‚ └── body: (length: 1)
β”‚ β”‚ β”‚ └── @ NilNode (location: (12,2)-(12,5))
β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,7)-(11,8) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,0)-(13,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (13,0)-(13,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (14,0)-(16,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -215,8 +209,7 @@
β”‚ β”‚ β”‚ └── body: (length: 1)
β”‚ β”‚ β”‚ └── @ NilNode (location: (15,2)-(15,5))
β”‚ β”‚ β”œβ”€β”€ opening_loc: (14,4)-(14,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (16,0)-(16,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (16,0)-(16,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (17,0)-(19,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -254,8 +247,7 @@
β”‚ β”‚ β”‚ └── body: (length: 1)
β”‚ β”‚ β”‚ └── @ NilNode (location: (18,2)-(18,5))
β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,4)-(17,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (19,0)-(19,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (19,0)-(19,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (20,0)-(22,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -283,8 +275,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (20,4)-(20,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (22,0)-(22,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (22,0)-(22,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (23,0)-(25,1))
β”‚ β”œβ”€β”€ receiver:
@@ -347,8 +338,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,8)-(23,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (25,0)-(25,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (25,0)-(25,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (26,0)-(27,1))
β”‚ β”œβ”€β”€ receiver:
@@ -393,8 +383,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (26,16)-(26,17) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (26,8)-(26,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (27,0)-(27,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (27,0)-(27,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (28,0)-(29,1))
β”‚ β”œβ”€β”€ receiver:
@@ -437,8 +426,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (28,15)-(28,16) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (28,8)-(28,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (29,0)-(29,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (29,0)-(29,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (30,0)-(31,1))
β”‚ β”œβ”€β”€ receiver:
@@ -473,8 +461,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (30,17)-(30,18) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (30,8)-(30,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (31,0)-(31,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (31,0)-(31,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (32,0)-(34,1))
β”‚ β”œβ”€β”€ receiver:
@@ -529,8 +516,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (32,8)-(32,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (34,0)-(34,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (34,0)-(34,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (35,0)-(37,1))
β”‚ β”œβ”€β”€ receiver:
@@ -590,8 +576,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (35,8)-(35,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (37,0)-(37,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (37,0)-(37,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (38,0)-(40,1))
β”‚ β”œβ”€β”€ receiver:
@@ -657,8 +642,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (38,8)-(38,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (40,0)-(40,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (40,0)-(40,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (41,0)-(43,1))
β”‚ β”œβ”€β”€ receiver:
@@ -726,8 +710,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (41,8)-(41,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (43,0)-(43,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (43,0)-(43,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (44,0)-(46,1))
β”‚ β”œβ”€β”€ receiver:
@@ -788,8 +771,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”œβ”€β”€ opening_loc: (44,8)-(44,9) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (46,0)-(46,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (46,0)-(46,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (47,0)-(48,5))
β”‚ β”œβ”€β”€ receiver:
@@ -817,8 +799,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (47,8)-(47,9) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (48,0)-(48,1) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (48,0)-(48,1) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (48,1)-(48,2) = "."
β”‚ β”œβ”€β”€ name: :baz
@@ -861,8 +842,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (51,0)-(51,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (49,2)-(49,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (51,0)-(51,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (51,0)-(51,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (52,0)-(56,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -914,8 +894,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (56,0)-(56,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (52,2)-(52,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (56,0)-(56,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (56,0)-(56,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (57,0)-(61,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -984,8 +963,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (61,0)-(61,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (57,2)-(57,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (61,0)-(61,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (61,0)-(61,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (62,0)-(66,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1057,8 +1035,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (66,0)-(66,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (62,2)-(62,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (66,0)-(66,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (66,0)-(66,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (67,0)-(71,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1125,8 +1102,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (71,0)-(71,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (67,2)-(67,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (71,0)-(71,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (71,0)-(71,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (72,0)-(75,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1170,8 +1146,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (75,0)-(75,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (72,2)-(72,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (75,0)-(75,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (75,0)-(75,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (76,0)-(81,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1229,8 +1204,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (81,0)-(81,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (76,2)-(76,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (81,0)-(81,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (81,0)-(81,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (82,0)-(86,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1300,8 +1274,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (86,0)-(86,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (82,2)-(82,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (86,0)-(86,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (86,0)-(86,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (87,0)-(89,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1328,8 +1301,7 @@
β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (89,0)-(89,3) = "end"
β”‚ β”‚ β”‚ └── end_keyword_loc: (89,0)-(89,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (87,2)-(87,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (89,0)-(89,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (89,0)-(89,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (90,0)-(93,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1363,8 +1335,7 @@
β”‚ β”‚ β”‚ β”‚ └── end_keyword_loc: (93,0)-(93,3) = "end"
β”‚ β”‚ β”‚ └── end_keyword_loc: (93,0)-(93,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (90,2)-(90,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (93,0)-(93,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (93,0)-(93,3) = "end"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (94,0)-(96,1))
β”œβ”€β”€ receiver: βˆ…
@@ -1377,7 +1348,9 @@
β”œβ”€β”€ block:
β”‚ @ BlockNode (location: (94,4)-(96,1))
β”‚ β”œβ”€β”€ locals: [:_1, :_2]
- β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ @ NumberedParametersNode (location: (94,4)-(96,1))
+ β”‚ β”‚ └── maximum: 2
β”‚ β”œβ”€β”€ body:
β”‚ β”‚ @ StatementsNode (location: (95,2)-(95,9))
β”‚ β”‚ └── body: (length: 1)
@@ -1401,6 +1374,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (94,4)-(94,5) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (96,0)-(96,1) = "}"
- β”‚ └── numbered_parameters: 2
+ β”‚ └── closing_loc: (96,0)-(96,1) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/unparser/corpus/literal/defs.txt b/test/prism/snapshots/unparser/corpus/literal/defs.txt
index 0f6a2de064..52cd344710 100644
--- a/test/prism/snapshots/unparser/corpus/literal/defs.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/defs.txt
@@ -141,8 +141,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (17,15)-(17,16) = "|"
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,9)-(17,10) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (18,0)-(18,1) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (18,0)-(18,1) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,4)-(17,5) = "("
β”‚ β”‚ └── closing_loc: (18,1)-(18,2) = ")"
diff --git a/test/prism/snapshots/unparser/corpus/literal/dstr.txt b/test/prism/snapshots/unparser/corpus/literal/dstr.txt
index 13c3a74486..33391fe56e 100644
--- a/test/prism/snapshots/unparser/corpus/literal/dstr.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/dstr.txt
@@ -335,6 +335,5 @@
β”‚ β”‚ └── closing_loc: (34,20)-(34,21) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (34,16)-(34,17) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (37,0)-(37,1) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (37,0)-(37,1) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/unparser/corpus/literal/if.txt b/test/prism/snapshots/unparser/corpus/literal/if.txt
index 97fa18b9d9..4cd56d5a6b 100644
--- a/test/prism/snapshots/unparser/corpus/literal/if.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/if.txt
@@ -254,8 +254,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ name: :pair
β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”œβ”€β”€ opening_loc: (31,7)-(31,8) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (33,0)-(33,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (33,0)-(33,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ then_keyword_loc: βˆ…
β”œβ”€β”€ statements:
diff --git a/test/prism/snapshots/unparser/corpus/literal/lambda.txt b/test/prism/snapshots/unparser/corpus/literal/lambda.txt
index 130623ef10..a8fb22d80f 100644
--- a/test/prism/snapshots/unparser/corpus/literal/lambda.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/lambda.txt
@@ -17,8 +17,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,8) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,0)-(2,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (2,0)-(2,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(5,1))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -56,8 +55,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,7)-(3,8) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,0)-(5,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,0)-(5,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (6,0)-(7,1))
β”‚ β”œβ”€β”€ locals: []
@@ -70,8 +68,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (6,2)-(6,3) = "("
β”‚ β”‚ └── closing_loc: (6,3)-(6,4) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (8,0)-(9,1))
β”‚ β”œβ”€β”€ locals: [:a]
β”‚ β”œβ”€β”€ operator_loc: (8,0)-(8,2) = "->"
@@ -93,8 +90,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (8,2)-(8,3) = "("
β”‚ β”‚ └── closing_loc: (8,4)-(8,5) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (10,0)-(11,1))
β”‚ β”œβ”€β”€ locals: [:a, :b]
β”‚ β”œβ”€β”€ operator_loc: (10,0)-(10,2) = "->"
@@ -118,8 +114,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (10,2)-(10,3) = "("
β”‚ β”‚ └── closing_loc: (10,7)-(10,8) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── @ LambdaNode (location: (12,0)-(13,1))
β”œβ”€β”€ locals: [:a, :b, :c]
β”œβ”€β”€ operator_loc: (12,0)-(12,2) = "->"
@@ -145,5 +140,4 @@
β”‚ β”‚ └── name: :c
β”‚ β”œβ”€β”€ opening_loc: (12,2)-(12,3) = "("
β”‚ └── closing_loc: (12,10)-(12,11) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/unparser/corpus/literal/literal.txt b/test/prism/snapshots/unparser/corpus/literal/literal.txt
index b407f23d56..aa36dd7e35 100644
--- a/test/prism/snapshots/unparser/corpus/literal/literal.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/literal.txt
@@ -1081,8 +1081,7 @@
β”‚ β”‚ β”‚ β”‚ └── unescaped: "\na"
β”‚ β”‚ β”‚ └── closing_loc: (85,6)-(85,7) = "\""
β”‚ β”‚ β”œβ”€β”€ opening_loc: (83,4)-(83,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (86,0)-(86,1) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (86,0)-(86,1) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ SymbolNode (location: (87,0)-(88,2))
β”‚ β”œβ”€β”€ opening_loc: (87,0)-(87,2) = ":\""
diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt
index bdeacaceea..469b3dae4b 100644
--- a/test/prism/snapshots/unparser/corpus/literal/send.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/send.txt
@@ -373,8 +373,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (33,5)-(33,6) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (34,0)-(34,1) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (34,0)-(34,1) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (34,1)-(34,2) = "."
β”‚ β”œβ”€β”€ name: :bar
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/27.txt b/test/prism/snapshots/unparser/corpus/literal/since/27.txt
index 8618dc6e6d..066702897b 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/27.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/27.txt
@@ -8,30 +8,31 @@
β”‚ β”œβ”€β”€ operator_loc: (1,0)-(1,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "{"
β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,1) = "}"
- β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (2,2)-(2,9))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ CallNode (location: (2,2)-(2,9))
- β”‚ β”‚ β”œβ”€β”€ receiver:
- β”‚ β”‚ β”‚ @ LocalVariableReadNode (location: (2,2)-(2,4))
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
- β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ name: :+
- β”‚ β”‚ β”œβ”€β”€ message_loc: (2,5)-(2,6) = "+"
- β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ arguments:
- β”‚ β”‚ β”‚ @ ArgumentsNode (location: (2,7)-(2,9))
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (2,7)-(2,9))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_2
- β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ └── flags: βˆ…
- β”‚ └── numbered_parameters: 2
+ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ @ NumberedParametersNode (location: (1,0)-(3,1))
+ β”‚ β”‚ └── maximum: 2
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (2,2)-(2,9))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ CallNode (location: (2,2)-(2,9))
+ β”‚ β”œβ”€β”€ receiver:
+ β”‚ β”‚ @ LocalVariableReadNode (location: (2,2)-(2,4))
+ β”‚ β”‚ β”œβ”€β”€ name: :_1
+ β”‚ β”‚ └── depth: 0
+ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ name: :+
+ β”‚ β”œβ”€β”€ message_loc: (2,5)-(2,6) = "+"
+ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”œβ”€β”€ arguments:
+ β”‚ β”‚ @ ArgumentsNode (location: (2,7)-(2,9))
+ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (2,7)-(2,9))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_2
+ β”‚ β”‚ β”‚ └── depth: 0
+ β”‚ β”‚ └── flags: βˆ…
+ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ └── flags: βˆ…
└── @ ParenthesesNode (location: (4,0)-(4,5))
β”œβ”€β”€ body:
β”‚ @ StatementsNode (location: (4,1)-(4,4))
diff --git a/test/prism/snapshots/unparser/corpus/literal/super.txt b/test/prism/snapshots/unparser/corpus/literal/super.txt
index daef89f848..8175d3504a 100644
--- a/test/prism/snapshots/unparser/corpus/literal/super.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/super.txt
@@ -142,8 +142,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,8)-(7,9) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,0)-(9,1) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (9,0)-(9,1) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ rparen_loc: (9,1)-(9,2) = ")"
@@ -167,8 +166,7 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (10,6)-(10,7) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (12,0)-(12,1) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (12,0)-(12,1) = "}"
β”œβ”€β”€ @ SuperNode (location: (13,0)-(15,1))
β”‚ β”œβ”€β”€ keyword_loc: (13,0)-(13,5) = "super"
β”‚ β”œβ”€β”€ lparen_loc: (13,5)-(13,6) = "("
@@ -205,8 +203,7 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (13,9)-(13,10) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (15,0)-(15,1) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (15,0)-(15,1) = "}"
β”œβ”€β”€ @ SuperNode (location: (16,0)-(18,1))
β”‚ β”œβ”€β”€ keyword_loc: (16,0)-(16,5) = "super"
β”‚ β”œβ”€β”€ lparen_loc: (16,5)-(16,6) = "("
@@ -230,8 +227,7 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (16,8)-(16,9) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (18,0)-(18,1) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (18,0)-(18,1) = "}"
└── @ SuperNode (location: (19,0)-(21,1))
β”œβ”€β”€ keyword_loc: (19,0)-(19,5) = "super"
β”œβ”€β”€ lparen_loc: (19,5)-(19,6) = "("
@@ -278,5 +274,4 @@
β”‚ β”œβ”€β”€ block: βˆ…
β”‚ └── flags: variable_call
β”œβ”€β”€ opening_loc: (19,12)-(19,13) = "{"
- β”œβ”€β”€ closing_loc: (21,0)-(21,1) = "}"
- └── numbered_parameters: 0
+ └── closing_loc: (21,0)-(21,1) = "}"
diff --git a/test/prism/snapshots/unparser/corpus/literal/while.txt b/test/prism/snapshots/unparser/corpus/literal/while.txt
index 5771e5da39..7bcf111cef 100644
--- a/test/prism/snapshots/unparser/corpus/literal/while.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/while.txt
@@ -70,8 +70,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: (4,10)-(4,11) = "="
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (2,6)-(2,7) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (6,2)-(6,3) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (6,2)-(6,3) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ end_keyword_loc: (7,0)-(7,3) = "end"
β”‚ └── name: :A
@@ -335,8 +334,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: (30,10)-(30,11) = "="
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (28,7)-(28,8) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (32,2)-(32,3) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (32,2)-(32,3) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ end_keyword_loc: (33,0)-(33,3) = "end"
β”‚ └── name: :A
@@ -407,8 +405,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: (38,10)-(38,11) = "="
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (36,7)-(36,8) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (40,2)-(40,3) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (40,2)-(40,3) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ end_keyword_loc: (41,0)-(41,3) = "end"
β”‚ └── name: :A
@@ -632,8 +629,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (61,11)-(61,12) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (62,0)-(62,1) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (62,0)-(62,1) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (61,6)-(61,7) = "("
β”‚ β”‚ └── closing_loc: (62,1)-(62,2) = ")"
@@ -686,8 +682,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (70,11)-(70,12) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (71,0)-(71,1) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (71,0)-(71,1) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (70,6)-(70,7) = "("
β”‚ └── closing_loc: (71,1)-(71,2) = ")"
diff --git a/test/prism/snapshots/unparser/corpus/semantic/block.txt b/test/prism/snapshots/unparser/corpus/semantic/block.txt
index c3ac1f85c6..f3d5440a59 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/block.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/block.txt
@@ -17,8 +17,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (2,0)-(2,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (2,0)-(2,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (4,0)-(6,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -48,8 +47,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ β”‚ └── end_keyword_loc: (6,0)-(6,3) = "end"
β”‚ β”‚ β”œβ”€β”€ opening_loc: (4,4)-(4,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (6,0)-(6,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (6,0)-(6,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (8,0)-(11,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -74,8 +72,7 @@
β”‚ β”‚ β”‚ β”‚ @ NilNode (location: (9,13)-(9,16))
β”‚ β”‚ β”‚ └── @ NilNode (location: (10,2)-(10,5))
β”‚ β”‚ β”œβ”€β”€ opening_loc: (8,4)-(8,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (11,0)-(11,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (11,0)-(11,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (13,0)-(14,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -106,8 +103,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (13,9)-(13,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,4)-(13,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (14,0)-(14,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (14,0)-(14,3) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (16,0)-(20,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -152,8 +148,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”œβ”€β”€ opening_loc: (16,12)-(16,14) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (20,0)-(20,3) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (20,0)-(20,3) = "end"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (22,0)-(26,3))
β”œβ”€β”€ receiver: βˆ…
@@ -190,6 +185,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: variable_call
β”‚ β”œβ”€β”€ opening_loc: (22,12)-(22,14) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (26,0)-(26,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (26,0)-(26,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/unparser/corpus/semantic/while.txt b/test/prism/snapshots/unparser/corpus/semantic/while.txt
index 6d79ccfeda..6339a0208a 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/while.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/while.txt
@@ -21,8 +21,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,12) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ statements:
β”‚ β”‚ @ StatementsNode (location: (1,0)-(1,1))
@@ -56,8 +55,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,9)-(3,10) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,10)-(3,11) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (3,10)-(3,11) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ statements:
β”‚ β”‚ @ StatementsNode (location: (4,2)-(4,3))
@@ -131,8 +129,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,15)-(9,16) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,17)-(9,18) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (9,17)-(9,18) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── operator_loc: (9,10)-(9,12) = "&&"
β”‚ β”œβ”€β”€ statements:
@@ -215,8 +212,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ └── flags: variable_call
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,18)-(15,20) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (18,0)-(18,3) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (18,0)-(18,3) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ statements:
β”‚ β”‚ @ StatementsNode (location: (15,0)-(15,1))
diff --git a/test/prism/snapshots/while.txt b/test/prism/snapshots/while.txt
index 8b547fee88..3d74f777b6 100644
--- a/test/prism/snapshots/while.txt
+++ b/test/prism/snapshots/while.txt
@@ -134,8 +134,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,27)-(13,29) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,30)-(13,33) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (13,30)-(13,33) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ rest: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ posts: (length: 0)
@@ -191,8 +190,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,24)-(15,26) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (15,27)-(15,30) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (15,27)-(15,30) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── operator_loc: (15,18)-(15,19) = "="
β”‚ β”‚ β”œβ”€β”€ end_keyword_loc: (15,32)-(15,35) = "end"
@@ -231,8 +229,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,25)-(17,27) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (17,28)-(17,31) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (17,28)-(17,31) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── end_keyword_loc: (17,33)-(17,36) = "end"
β”‚ β”œβ”€β”€ statements:
@@ -274,8 +271,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (19,29)-(19,31) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (19,32)-(19,35) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (19,32)-(19,35) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── operator_loc: (19,23)-(19,24) = "="
β”‚ β”‚ └── end_keyword_loc: (19,37)-(19,40) = "end"
@@ -312,8 +308,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,20)-(21,22) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,23)-(21,26) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (21,23)-(21,26) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ locals: []
β”‚ β”‚ β”œβ”€β”€ def_keyword_loc: (21,6)-(21,9) = "def"
diff --git a/test/prism/snapshots/whitequark/arg_label.txt b/test/prism/snapshots/whitequark/arg_label.txt
index 62125b7f2d..1f04f6d5f1 100644
--- a/test/prism/snapshots/whitequark/arg_label.txt
+++ b/test/prism/snapshots/whitequark/arg_label.txt
@@ -108,6 +108,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (6,2)-(6,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (6,11)-(6,12) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (6,11)-(6,12) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/arg_scope.txt b/test/prism/snapshots/whitequark/arg_scope.txt
index 9aba1c6de1..cb08a16a4c 100644
--- a/test/prism/snapshots/whitequark/arg_scope.txt
+++ b/test/prism/snapshots/whitequark/arg_scope.txt
@@ -29,6 +29,5 @@
β”‚ β”‚ β”œβ”€β”€ name: :a
β”‚ β”‚ └── depth: 0
β”‚ β”œβ”€β”€ opening_loc: (1,6)-(1,7) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/begin_cmdarg.txt b/test/prism/snapshots/whitequark/begin_cmdarg.txt
index cf7d41b085..696be9e2f8 100644
--- a/test/prism/snapshots/whitequark/begin_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/begin_cmdarg.txt
@@ -37,8 +37,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ └── @ IntegerNode (location: (1,19)-(1,20))
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: decimal
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,16)-(1,18) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,21)-(1,24) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,21)-(1,24) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ rescue_clause: βˆ…
β”‚ β”‚ β”œβ”€β”€ else_clause: βˆ…
diff --git a/test/prism/snapshots/whitequark/blockargs.txt b/test/prism/snapshots/whitequark/blockargs.txt
index 9e579bee86..73f8278918 100644
--- a/test/prism/snapshots/whitequark/blockargs.txt
+++ b/test/prism/snapshots/whitequark/blockargs.txt
@@ -17,8 +17,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,1)-(1,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,4)-(1,5) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,4)-(1,5) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(3,8))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -39,8 +38,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (3,5)-(3,6) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,1)-(3,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,7)-(3,8) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (3,7)-(3,8) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(5,9))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -73,8 +71,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (5,6)-(5,7) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,1)-(5,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,8)-(5,9) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,8)-(5,9) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (7,0)-(7,16))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -111,8 +108,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (7,13)-(7,14) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,1)-(7,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,15)-(7,16) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (7,15)-(7,16) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (9,0)-(9,12))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -149,8 +145,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (9,9)-(9,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,1)-(9,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,11)-(9,12) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (9,11)-(9,12) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (11,0)-(11,16))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -189,8 +184,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (11,13)-(11,14) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,1)-(11,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (11,15)-(11,16) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (11,15)-(11,16) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (13,0)-(13,13))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -227,8 +221,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (13,10)-(13,11) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,1)-(13,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,12)-(13,13) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (13,12)-(13,13) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (15,0)-(15,9))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -261,8 +254,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (15,6)-(15,7) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,1)-(15,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (15,8)-(15,9) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (15,8)-(15,9) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (17,0)-(17,8))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -295,8 +287,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (17,5)-(17,6) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,1)-(17,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (17,7)-(17,8) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (17,7)-(17,8) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (19,0)-(21,3))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -319,8 +310,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (21,0)-(21,1) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (19,1)-(19,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,2)-(21,3) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (21,2)-(21,3) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (23,0)-(23,9))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -343,8 +333,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (23,6)-(23,7) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,1)-(23,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (23,8)-(23,9) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (23,8)-(23,9) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (25,0)-(25,12))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -379,8 +368,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (25,9)-(25,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,1)-(25,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (25,11)-(25,12) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (25,11)-(25,12) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (27,0)-(27,15))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -419,8 +407,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (27,12)-(27,13) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (27,1)-(27,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (27,14)-(27,15) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (27,14)-(27,15) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (29,0)-(29,19))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -461,8 +448,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (29,16)-(29,17) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (29,1)-(29,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (29,18)-(29,19) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (29,18)-(29,19) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (31,0)-(31,16))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -501,8 +487,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (31,13)-(31,14) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (31,1)-(31,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (31,15)-(31,16) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (31,15)-(31,16) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (33,0)-(33,12))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -537,8 +522,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (33,9)-(33,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (33,1)-(33,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (33,11)-(33,12) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (33,11)-(33,12) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (35,0)-(35,11))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -573,8 +557,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (35,8)-(35,9) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (35,1)-(35,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (35,10)-(35,11) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (35,10)-(35,11) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (37,0)-(37,12))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -608,8 +591,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (37,9)-(37,10) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (37,1)-(37,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (37,11)-(37,12) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (37,11)-(37,12) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (39,0)-(39,11))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -642,8 +624,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (39,8)-(39,9) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (39,1)-(39,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (39,10)-(39,11) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (39,10)-(39,11) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (41,0)-(41,17))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -685,8 +666,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (41,14)-(41,15) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (41,1)-(41,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (41,16)-(41,17) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (41,16)-(41,17) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (43,0)-(43,24))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -734,8 +714,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (43,21)-(43,22) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (43,1)-(43,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (43,23)-(43,24) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (43,23)-(43,24) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (45,0)-(45,27))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -788,8 +767,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (45,24)-(45,25) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (45,1)-(45,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (45,26)-(45,27) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (45,26)-(45,27) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (47,0)-(47,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -833,8 +811,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (47,17)-(47,18) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (47,1)-(47,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (47,19)-(47,20) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (47,19)-(47,20) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (49,0)-(49,9))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -866,8 +843,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (49,6)-(49,7) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (49,1)-(49,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (49,8)-(49,9) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (49,8)-(49,9) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (51,0)-(51,8))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -898,8 +874,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (51,5)-(51,6) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (51,1)-(51,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (51,7)-(51,8) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (51,7)-(51,8) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (53,0)-(53,8))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -930,8 +905,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (53,5)-(53,6) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (53,1)-(53,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (53,7)-(53,8) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (53,7)-(53,8) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (55,0)-(55,8))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -962,8 +936,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (55,5)-(55,6) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (55,1)-(55,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (55,7)-(55,8) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (55,7)-(55,8) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (57,0)-(57,17))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1002,8 +975,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (57,14)-(57,15) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (57,1)-(57,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (57,16)-(57,17) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (57,16)-(57,17) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (59,0)-(59,32))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1052,8 +1024,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (59,29)-(59,30) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (59,1)-(59,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (59,31)-(59,32) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (59,31)-(59,32) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (61,0)-(61,11))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1085,8 +1056,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (61,8)-(61,9) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (61,1)-(61,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (61,10)-(61,11) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (61,10)-(61,11) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (63,0)-(63,14))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1126,8 +1096,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (63,11)-(63,12) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (63,1)-(63,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (63,13)-(63,14) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (63,13)-(63,14) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (65,0)-(65,18))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1171,8 +1140,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (65,15)-(65,16) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (65,1)-(65,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (65,17)-(65,18) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (65,17)-(65,18) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (67,0)-(67,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1218,8 +1186,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (67,18)-(67,19) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (67,1)-(67,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (67,20)-(67,21) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (67,20)-(67,21) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (69,0)-(69,17))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1261,8 +1228,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (69,14)-(69,15) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (69,1)-(69,2) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (69,16)-(69,17) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (69,16)-(69,17) = "}"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (71,0)-(71,7))
β”œβ”€β”€ receiver: βˆ…
@@ -1283,6 +1249,5 @@
β”‚ β”‚ └── closing_loc: (71,4)-(71,5) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (71,1)-(71,2) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (71,6)-(71,7) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (71,6)-(71,7) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/break_block.txt b/test/prism/snapshots/whitequark/break_block.txt
index 7c9bc9ffb5..d6d6347eda 100644
--- a/test/prism/snapshots/whitequark/break_block.txt
+++ b/test/prism/snapshots/whitequark/break_block.txt
@@ -34,8 +34,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,20) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,17)-(1,20) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
└── keyword_loc: (1,0)-(1,5) = "break"
diff --git a/test/prism/snapshots/whitequark/bug_435.txt b/test/prism/snapshots/whitequark/bug_435.txt
index bba6eb68ea..fd7380e15d 100644
--- a/test/prism/snapshots/whitequark/bug_435.txt
+++ b/test/prism/snapshots/whitequark/bug_435.txt
@@ -32,7 +32,6 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body: βˆ…
β”‚ └── closing_loc: (1,12)-(1,13) = "}"
└── closing_loc: (1,13)-(1,14) = "\""
diff --git a/test/prism/snapshots/whitequark/bug_447.txt b/test/prism/snapshots/whitequark/bug_447.txt
index 2a6f1f1cb2..a056bd2ce3 100644
--- a/test/prism/snapshots/whitequark/bug_447.txt
+++ b/test/prism/snapshots/whitequark/bug_447.txt
@@ -25,8 +25,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,8)-(1,11) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,8)-(1,11) = "end"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (3,0)-(3,14))
β”œβ”€β”€ receiver: βˆ…
@@ -52,6 +51,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (3,8)-(3,10) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (3,11)-(3,14) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,11)-(3,14) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/bug_452.txt b/test/prism/snapshots/whitequark/bug_452.txt
index b5969ac2f0..435181b643 100644
--- a/test/prism/snapshots/whitequark/bug_452.txt
+++ b/test/prism/snapshots/whitequark/bug_452.txt
@@ -58,6 +58,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,30)-(1,32) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,34)-(1,37) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,34)-(1,37) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/bug_466.txt b/test/prism/snapshots/whitequark/bug_466.txt
index 2823887dc8..2b4af5d72c 100644
--- a/test/prism/snapshots/whitequark/bug_466.txt
+++ b/test/prism/snapshots/whitequark/bug_466.txt
@@ -63,6 +63,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,20)-(1,22) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,24)-(1,27) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,24)-(1,27) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/bug_481.txt b/test/prism/snapshots/whitequark/bug_481.txt
index da7f527e3f..dbd7de7a0c 100644
--- a/test/prism/snapshots/whitequark/bug_481.txt
+++ b/test/prism/snapshots/whitequark/bug_481.txt
@@ -45,6 +45,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,22)-(1,24) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,25)-(1,28) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,25)-(1,28) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt
index a1873ad116..94c39e2021 100644
--- a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt
+++ b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt
@@ -26,6 +26,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,13) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,17) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,14)-(1,17) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/bug_cmdarg.txt b/test/prism/snapshots/whitequark/bug_cmdarg.txt
index e1023d93c1..93eafdb3a3 100644
--- a/test/prism/snapshots/whitequark/bug_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/bug_cmdarg.txt
@@ -76,27 +76,25 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,8)-(5,10) = "do"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,23)-(5,26) = "end"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (5,11)-(5,22))
- β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ CallNode (location: (5,11)-(5,22))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :meth
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (5,11)-(5,15) = "meth"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block:
- β”‚ β”‚ β”‚ β”‚ β”‚ @ BlockNode (location: (5,16)-(5,22))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,16)-(5,18) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,19)-(5,22) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
- β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ @ StatementsNode (location: (5,11)-(5,22))
+ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ └── @ CallNode (location: (5,11)-(5,22))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :meth
+ β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (5,11)-(5,15) = "meth"
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ block:
+ β”‚ β”‚ β”‚ β”‚ @ BlockNode (location: (5,16)-(5,22))
+ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
+ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
+ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,16)-(5,18) = "do"
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (5,19)-(5,22) = "end"
+ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── operator_loc: βˆ…
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_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 8731f258c9..65bb6e8668 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,8 +35,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,23)-(1,25) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,26)-(1,29) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,26)-(1,29) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ locals: []
β”‚ β”‚ β”œβ”€β”€ def_keyword_loc: (1,4)-(1,7) = "def"
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 e2be2a966a..42600a495a 100644
--- a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt
@@ -30,8 +30,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,10)-(1,12) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,16) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,13)-(1,16) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,5) = "("
β”‚ β”‚ └── closing_loc: (1,16)-(1,17) = ")"
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 43effe5e47..2604e721bc 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
@@ -42,8 +42,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,19)-(1,21) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,25) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,22)-(1,25) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ β”‚ └── @ AssocNode (location: (1,27)-(1,41))
@@ -68,8 +67,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,35)-(1,37) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,38)-(1,41) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,38)-(1,41) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ └── closing_loc: (1,41)-(1,42) = "}"
@@ -110,8 +108,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,17)-(3,19) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,20)-(3,23) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (3,20)-(3,23) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: (3,9)-(3,11) = "**"
β”‚ β”‚ β”‚ β”‚ └── @ AssocNode (location: (3,25)-(3,39))
@@ -136,8 +133,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,33)-(3,35) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,36)-(3,39) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (3,36)-(3,39) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ └── closing_loc: (3,39)-(3,40) = "}"
@@ -184,8 +180,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,20)-(5,22) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,23)-(5,26) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (5,23)-(5,26) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: (5,12)-(5,14) = "=>"
β”‚ β”‚ β”‚ β”‚ └── @ AssocNode (location: (5,28)-(5,42))
@@ -210,8 +205,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,36)-(5,38) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,39)-(5,42) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (5,39)-(5,42) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ └── closing_loc: (5,42)-(5,43) = "}"
@@ -258,8 +252,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,17)-(7,19) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,20)-(7,23) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (7,20)-(7,23) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ β”‚ └── @ AssocNode (location: (7,25)-(7,39))
@@ -284,8 +277,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,33)-(7,35) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,36)-(7,39) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (7,36)-(7,39) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ β”‚ └── closing_loc: (7,39)-(7,40) = "}"
@@ -326,8 +318,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,14)-(9,16) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,17)-(9,20) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (9,17)-(9,20) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ value:
β”‚ β”‚ β”‚ β”‚ β”‚ @ CallNode (location: (9,24)-(9,35))
@@ -344,8 +335,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,29)-(9,31) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,32)-(9,35) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (9,32)-(9,35) = "end"
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ └── operator_loc: (9,21)-(9,23) = "=>"
β”‚ β”‚ β”‚ └── @ AssocNode (location: (9,37)-(9,51))
@@ -370,8 +360,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,45)-(9,47) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,48)-(9,51) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (9,48)-(9,51) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── operator_loc: βˆ…
β”‚ β”‚ └── closing_loc: (9,51)-(9,52) = "}"
diff --git a/test/prism/snapshots/whitequark/bug_heredoc_do.txt b/test/prism/snapshots/whitequark/bug_heredoc_do.txt
index ef7b07168f..ccf2fb56fc 100644
--- a/test/prism/snapshots/whitequark/bug_heredoc_do.txt
+++ b/test/prism/snapshots/whitequark/bug_heredoc_do.txt
@@ -26,6 +26,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,13) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (3,0)-(3,3) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,0)-(3,3) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt
index 651ce872b5..2fd9d0fc0b 100644
--- a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt
+++ b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt
@@ -24,8 +24,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ β”‚ └── closing_loc: (1,8)-(1,9) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── @ CallNode (location: (1,14)-(1,19))
β”œβ”€β”€ receiver: βˆ…
β”œβ”€β”€ call_operator_loc: βˆ…
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 2322b0d671..cf5806d0a2 100644
--- a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt
+++ b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt
@@ -35,8 +35,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,29)-(1,31) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,32)-(1,35) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,32)-(1,35) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── operator_loc: (1,23)-(1,24) = "="
β”‚ β”‚ └── end_keyword_loc: (1,37)-(1,40) = "end"
@@ -74,8 +73,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,25)-(3,27) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,28)-(3,31) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (3,28)-(3,31) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── end_keyword_loc: (3,33)-(3,36) = "end"
β”‚ β”œβ”€β”€ statements:
@@ -119,8 +117,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,24)-(5,26) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,27)-(5,30) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (5,27)-(5,30) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── operator_loc: (5,18)-(5,19) = "="
β”‚ β”‚ β”œβ”€β”€ end_keyword_loc: (5,32)-(5,35) = "end"
@@ -161,8 +158,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,21)-(7,23) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,24)-(7,27) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (7,24)-(7,27) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ end_keyword_loc: (7,29)-(7,32) = "end"
β”‚ └── name: :Foo
diff --git a/test/prism/snapshots/whitequark/kwnilarg.txt b/test/prism/snapshots/whitequark/kwnilarg.txt
index cdd5018f69..2b5902db1a 100644
--- a/test/prism/snapshots/whitequark/kwnilarg.txt
+++ b/test/prism/snapshots/whitequark/kwnilarg.txt
@@ -25,8 +25,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ β”‚ └── closing_loc: (1,8)-(1,9) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ DefNode (location: (3,0)-(3,17))
β”‚ β”œβ”€β”€ name: :f
β”‚ β”œβ”€β”€ name_loc: (3,4)-(3,5) = "f"
@@ -81,6 +80,5 @@
β”‚ β”‚ └── closing_loc: (5,10)-(5,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (5,2)-(5,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (5,12)-(5,13) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (5,12)-(5,13) = "}"
└── flags: βˆ…
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 4301270e33..2b85b2980e 100644
--- a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt
+++ b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt
@@ -46,10 +46,8 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,13)-(1,15) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,20) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,17)-(1,20) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,9)-(1,10) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,21)-(1,22) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,21)-(1,22) = "}"
└── flags: βˆ…
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 4890377405..cbb114dd69 100644
--- a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt
+++ b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt
@@ -34,8 +34,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,22)-(1,24) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,25)-(1,28) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,25)-(1,28) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ rest: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ posts: (length: 0)
@@ -83,8 +82,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,19)-(3,21) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,22)-(3,25) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (3,22)-(3,25) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ locals: []
β”‚ β”‚ β”œβ”€β”€ def_keyword_loc: (3,6)-(3,9) = "def"
@@ -132,8 +130,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,27)-(5,29) = "do"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,30)-(5,33) = "end"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (5,30)-(5,33) = "end"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ rest: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ posts: (length: 0)
@@ -182,8 +179,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,24)-(7,26) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,27)-(7,30) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (7,27)-(7,30) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ locals: []
β”‚ β”œβ”€β”€ def_keyword_loc: (7,6)-(7,9) = "def"
diff --git a/test/prism/snapshots/whitequark/next_block.txt b/test/prism/snapshots/whitequark/next_block.txt
index 59cbb69289..b49d3dc4a2 100644
--- a/test/prism/snapshots/whitequark/next_block.txt
+++ b/test/prism/snapshots/whitequark/next_block.txt
@@ -34,8 +34,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,13)-(1,15) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,16)-(1,19) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,16)-(1,19) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
└── keyword_loc: (1,0)-(1,4) = "next"
diff --git a/test/prism/snapshots/whitequark/numbered_args_after_27.txt b/test/prism/snapshots/whitequark/numbered_args_after_27.txt
index 79f8edd8cd..af8c0afe55 100644
--- a/test/prism/snapshots/whitequark/numbered_args_after_27.txt
+++ b/test/prism/snapshots/whitequark/numbered_args_after_27.txt
@@ -8,59 +8,61 @@
β”‚ β”œβ”€β”€ operator_loc: (1,0)-(1,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,5) = "do"
β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,17) = "end"
- β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (1,6)-(1,13))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ CallNode (location: (1,6)-(1,13))
- β”‚ β”‚ β”œβ”€β”€ receiver:
- β”‚ β”‚ β”‚ @ LocalVariableReadNode (location: (1,6)-(1,8))
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
- β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ name: :+
- β”‚ β”‚ β”œβ”€β”€ message_loc: (1,9)-(1,10) = "+"
- β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ arguments:
- β”‚ β”‚ β”‚ @ ArgumentsNode (location: (1,11)-(1,13))
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,11)-(1,13))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_9
- β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ └── flags: βˆ…
- β”‚ └── numbered_parameters: 9
+ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ @ NumberedParametersNode (location: (1,0)-(1,17))
+ β”‚ β”‚ └── maximum: 9
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (1,6)-(1,13))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ CallNode (location: (1,6)-(1,13))
+ β”‚ β”œβ”€β”€ receiver:
+ β”‚ β”‚ @ LocalVariableReadNode (location: (1,6)-(1,8))
+ β”‚ β”‚ β”œβ”€β”€ name: :_1
+ β”‚ β”‚ └── depth: 0
+ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ name: :+
+ β”‚ β”œβ”€β”€ message_loc: (1,9)-(1,10) = "+"
+ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”œβ”€β”€ arguments:
+ β”‚ β”‚ @ ArgumentsNode (location: (1,11)-(1,13))
+ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,11)-(1,13))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_9
+ β”‚ β”‚ β”‚ └── depth: 0
+ β”‚ β”‚ └── flags: βˆ…
+ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ └── flags: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (3,0)-(3,13))
β”‚ β”œβ”€β”€ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
β”‚ β”œβ”€β”€ operator_loc: (3,0)-(3,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (3,3)-(3,4) = "{"
β”‚ β”œβ”€β”€ closing_loc: (3,12)-(3,13) = "}"
- β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ @ StatementsNode (location: (3,5)-(3,12))
- β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ └── @ CallNode (location: (3,5)-(3,12))
- β”‚ β”‚ β”œβ”€β”€ receiver:
- β”‚ β”‚ β”‚ @ LocalVariableReadNode (location: (3,5)-(3,7))
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
- β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ name: :+
- β”‚ β”‚ β”œβ”€β”€ message_loc: (3,8)-(3,9) = "+"
- β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ arguments:
- β”‚ β”‚ β”‚ @ ArgumentsNode (location: (3,10)-(3,12))
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (3,10)-(3,12))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_9
- β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ block: βˆ…
- β”‚ β”‚ └── flags: βˆ…
- β”‚ └── numbered_parameters: 9
+ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ @ NumberedParametersNode (location: (3,0)-(3,13))
+ β”‚ β”‚ └── maximum: 9
+ β”‚ └── body:
+ β”‚ @ StatementsNode (location: (3,5)-(3,12))
+ β”‚ └── body: (length: 1)
+ β”‚ └── @ CallNode (location: (3,5)-(3,12))
+ β”‚ β”œβ”€β”€ receiver:
+ β”‚ β”‚ @ LocalVariableReadNode (location: (3,5)-(3,7))
+ β”‚ β”‚ β”œβ”€β”€ name: :_1
+ β”‚ β”‚ └── depth: 0
+ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ name: :+
+ β”‚ β”œβ”€β”€ message_loc: (3,8)-(3,9) = "+"
+ β”‚ β”œβ”€β”€ opening_loc: βˆ…
+ β”‚ β”œβ”€β”€ arguments:
+ β”‚ β”‚ @ ArgumentsNode (location: (3,10)-(3,12))
+ β”‚ β”‚ β”œβ”€β”€ arguments: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (3,10)-(3,12))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_9
+ β”‚ β”‚ β”‚ └── depth: 0
+ β”‚ β”‚ └── flags: βˆ…
+ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”œβ”€β”€ block: βˆ…
+ β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(5,16))
β”‚ β”œβ”€β”€ receiver: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
@@ -72,7 +74,9 @@
β”‚ β”œβ”€β”€ block:
β”‚ β”‚ @ BlockNode (location: (5,2)-(5,16))
β”‚ β”‚ β”œβ”€β”€ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
- β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ β”‚ @ NumberedParametersNode (location: (5,2)-(5,16))
+ β”‚ β”‚ β”‚ └── maximum: 9
β”‚ β”‚ β”œβ”€β”€ body:
β”‚ β”‚ β”‚ @ StatementsNode (location: (5,5)-(5,12))
β”‚ β”‚ β”‚ └── body: (length: 1)
@@ -96,8 +100,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,2)-(5,4) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,13)-(5,16) = "end"
- β”‚ β”‚ └── numbered_parameters: 9
+ β”‚ β”‚ └── closing_loc: (5,13)-(5,16) = "end"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (7,0)-(7,13))
β”œβ”€β”€ receiver: βˆ…
@@ -110,7 +113,9 @@
β”œβ”€β”€ block:
β”‚ @ BlockNode (location: (7,2)-(7,13))
β”‚ β”œβ”€β”€ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9]
- β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ @ NumberedParametersNode (location: (7,2)-(7,13))
+ β”‚ β”‚ └── maximum: 9
β”‚ β”œβ”€β”€ body:
β”‚ β”‚ @ StatementsNode (location: (7,4)-(7,11))
β”‚ β”‚ └── body: (length: 1)
@@ -134,6 +139,5 @@
β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (7,2)-(7,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (7,12)-(7,13) = "}"
- β”‚ └── numbered_parameters: 9
+ β”‚ └── closing_loc: (7,12)-(7,13) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/parser_bug_272.txt b/test/prism/snapshots/whitequark/parser_bug_272.txt
index 2b5448c9fc..f8f29f8137 100644
--- a/test/prism/snapshots/whitequark/parser_bug_272.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_272.txt
@@ -37,6 +37,5 @@
β”‚ β”‚ └── closing_loc: (1,10)-(1,11) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,15) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,12)-(1,15) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/parser_bug_507.txt b/test/prism/snapshots/whitequark/parser_bug_507.txt
index ea146fbabe..d2a3d3cba8 100644
--- a/test/prism/snapshots/whitequark/parser_bug_507.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_507.txt
@@ -31,6 +31,5 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── operator_loc: (1,2)-(1,3) = "="
diff --git a/test/prism/snapshots/whitequark/parser_bug_525.txt b/test/prism/snapshots/whitequark/parser_bug_525.txt
index 4377aff91e..f875dc8116 100644
--- a/test/prism/snapshots/whitequark/parser_bug_525.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_525.txt
@@ -56,10 +56,8 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,21)-(1,23) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,24)-(1,27) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,24)-(1,27) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,12)-(1,14) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,29)-(1,32) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,29)-(1,32) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/parser_bug_604.txt b/test/prism/snapshots/whitequark/parser_bug_604.txt
index 66e2c3ae92..12a05c31cb 100644
--- a/test/prism/snapshots/whitequark/parser_bug_604.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_604.txt
@@ -53,6 +53,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,8)-(1,10) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,11)-(1,14) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,11)-(1,14) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/parser_bug_645.txt b/test/prism/snapshots/whitequark/parser_bug_645.txt
index f737157284..4eee6234c1 100644
--- a/test/prism/snapshots/whitequark/parser_bug_645.txt
+++ b/test/prism/snapshots/whitequark/parser_bug_645.txt
@@ -31,5 +31,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "("
β”‚ └── closing_loc: (1,10)-(1,11) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/whitequark/procarg0.txt b/test/prism/snapshots/whitequark/procarg0.txt
index c5da626acb..62eaaca68f 100644
--- a/test/prism/snapshots/whitequark/procarg0.txt
+++ b/test/prism/snapshots/whitequark/procarg0.txt
@@ -40,8 +40,7 @@
β”‚ β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = "|"
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,18) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,17)-(1,18) = "}"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (3,0)-(3,11))
β”œβ”€β”€ receiver: βˆ…
@@ -72,6 +71,5 @@
β”‚ β”‚ └── closing_loc: (3,8)-(3,9) = "|"
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (3,2)-(3,3) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (3,10)-(3,11) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (3,10)-(3,11) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt b/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt
index 0208513ee3..72b6842f42 100644
--- a/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt
+++ b/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt
@@ -9,19 +9,18 @@
β”œβ”€β”€ opening_loc: (1,3)-(1,5) = "do"
β”œβ”€β”€ closing_loc: (1,14)-(1,17) = "end"
β”œβ”€β”€ parameters: βˆ…
- β”œβ”€β”€ body:
- β”‚ @ BeginNode (location: (1,6)-(1,17))
- β”‚ β”œβ”€β”€ begin_keyword_loc: βˆ…
- β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”œβ”€β”€ rescue_clause:
- β”‚ β”‚ @ RescueNode (location: (1,6)-(1,12))
- β”‚ β”‚ β”œβ”€β”€ keyword_loc: (1,6)-(1,12) = "rescue"
- β”‚ β”‚ β”œβ”€β”€ exceptions: (length: 0)
- β”‚ β”‚ β”œβ”€β”€ operator_loc: βˆ…
- β”‚ β”‚ β”œβ”€β”€ reference: βˆ…
- β”‚ β”‚ β”œβ”€β”€ statements: βˆ…
- β”‚ β”‚ └── consequent: βˆ…
- β”‚ β”œβ”€β”€ else_clause: βˆ…
- β”‚ β”œβ”€β”€ ensure_clause: βˆ…
- β”‚ └── end_keyword_loc: (1,14)-(1,17) = "end"
- └── numbered_parameters: 0
+ └── body:
+ @ BeginNode (location: (1,6)-(1,17))
+ β”œβ”€β”€ begin_keyword_loc: βˆ…
+ β”œβ”€β”€ statements: βˆ…
+ β”œβ”€β”€ rescue_clause:
+ β”‚ @ RescueNode (location: (1,6)-(1,12))
+ β”‚ β”œβ”€β”€ keyword_loc: (1,6)-(1,12) = "rescue"
+ β”‚ β”œβ”€β”€ exceptions: (length: 0)
+ β”‚ β”œβ”€β”€ operator_loc: βˆ…
+ β”‚ β”œβ”€β”€ reference: βˆ…
+ β”‚ β”œβ”€β”€ statements: βˆ…
+ β”‚ └── consequent: βˆ…
+ β”œβ”€β”€ else_clause: βˆ…
+ β”œβ”€β”€ ensure_clause: βˆ…
+ └── end_keyword_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 f2591d2d20..c997d99d46 100644
--- a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt
+++ b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt
@@ -55,6 +55,5 @@
β”‚ β”‚ β”œβ”€β”€ ensure_clause: βˆ…
β”‚ β”‚ └── end_keyword_loc: (1,27)-(1,30) = "end"
β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,7) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,27)-(1,30) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,27)-(1,30) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/return_block.txt b/test/prism/snapshots/whitequark/return_block.txt
index 453ed258f8..f963bedff1 100644
--- a/test/prism/snapshots/whitequark/return_block.txt
+++ b/test/prism/snapshots/whitequark/return_block.txt
@@ -35,7 +35,6 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,15)-(1,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,18)-(1,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,18)-(1,21) = "end"
β”‚ └── flags: βˆ…
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_10653.txt b/test/prism/snapshots/whitequark/ruby_bug_10653.txt
index 4fac961de1..35a3e966bd 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_10653.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_10653.txt
@@ -25,8 +25,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,20) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,17)-(1,20) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ consequent:
β”‚ β”‚ @ ElseNode (location: (1,21)-(1,33))
@@ -48,8 +47,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,27)-(1,29) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,30)-(1,33) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,30)-(1,33) = "end"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── end_keyword_loc: βˆ…
β”‚ └── end_keyword_loc: βˆ…
@@ -75,8 +73,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,14)-(3,15) = "{"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,15)-(3,16) = "}"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (3,15)-(3,16) = "}"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ consequent:
β”‚ β”‚ @ ElseNode (location: (3,17)-(3,25))
@@ -98,8 +95,7 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,23)-(3,24) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,24)-(3,25) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (3,24)-(3,25) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── end_keyword_loc: βˆ…
β”‚ └── end_keyword_loc: βˆ…
@@ -160,8 +156,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,13)-(5,15) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,24)-(5,27) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,24)-(5,27) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ consequent:
β”‚ @ ElseNode (location: (5,28)-(5,31))
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11107.txt b/test/prism/snapshots/whitequark/ruby_bug_11107.txt
index a794a6f5a7..1d8e922a1f 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11107.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11107.txt
@@ -23,27 +23,25 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,5) = "("
β”‚ β”‚ β”‚ └── closing_loc: (1,5)-(1,6) = ")"
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (1,10)-(1,20))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ CallNode (location: (1,10)-(1,20))
- β”‚ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ β”œβ”€β”€ message_loc: (1,10)-(1,11) = "a"
- β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,12) = "("
- β”‚ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = ")"
- β”‚ β”‚ β”‚ β”œβ”€β”€ block:
- β”‚ β”‚ β”‚ β”‚ @ BlockNode (location: (1,14)-(1,20))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,20) = "end"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
- β”‚ β”‚ β”‚ └── flags: βˆ…
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (1,10)-(1,20))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ CallNode (location: (1,10)-(1,20))
+ β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ call_operator_loc: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ β”œβ”€β”€ message_loc: (1,10)-(1,11) = "a"
+ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,12) = "("
+ β”‚ β”‚ β”œβ”€β”€ arguments: βˆ…
+ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = ")"
+ β”‚ β”‚ β”œβ”€β”€ block:
+ β”‚ β”‚ β”‚ @ BlockNode (location: (1,14)-(1,20))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: []
+ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
+ β”‚ β”‚ β”‚ └── closing_loc: (1,17)-(1,20) = "end"
+ β”‚ β”‚ └── flags: βˆ…
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11380.txt b/test/prism/snapshots/whitequark/ruby_bug_11380.txt
index 29850868cd..6f74ac0d6f 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11380.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11380.txt
@@ -18,15 +18,14 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,5)-(1,6) = "{"
β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,15) = "}"
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (1,7)-(1,13))
- β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ SymbolNode (location: (1,7)-(1,13))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,8) = ":"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ value_loc: (1,8)-(1,13) = "hello"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
- β”‚ β”‚ β”‚ β”‚ └── unescaped: "hello"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ @ StatementsNode (location: (1,7)-(1,13))
+ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ └── @ SymbolNode (location: (1,7)-(1,13))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,8) = ":"
+ β”‚ β”‚ β”‚ β”œβ”€β”€ value_loc: (1,8)-(1,13) = "hello"
+ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: βˆ…
+ β”‚ β”‚ β”‚ └── unescaped: "hello"
β”‚ β”‚ └── @ KeywordHashNode (location: (1,17)-(1,21))
β”‚ β”‚ └── elements: (length: 1)
β”‚ β”‚ └── @ AssocNode (location: (1,17)-(1,21))
@@ -48,6 +47,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,22)-(1,24) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,25)-(1,28) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,25)-(1,28) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873.txt b/test/prism/snapshots/whitequark/ruby_bug_11873.txt
index b4a4173dc1..d094841587 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873.txt
@@ -62,8 +62,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,17)-(1,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,17)-(1,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(3,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -124,8 +123,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,14)-(3,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,17)-(3,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (3,17)-(3,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(5,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -186,8 +184,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,15)-(5,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,18)-(5,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,18)-(5,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (7,0)-(7,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -248,8 +245,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,15)-(7,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,18)-(7,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (7,18)-(7,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (9,0)-(9,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -310,8 +306,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,15)-(9,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,18)-(9,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (9,18)-(9,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (11,0)-(11,22))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -372,8 +367,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,16)-(11,18) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (11,19)-(11,22) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (11,19)-(11,22) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (13,0)-(13,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -423,8 +417,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,3)-(13,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,7)-(13,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (13,7)-(13,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ StringNode (location: (13,10)-(13,13))
β”‚ β”‚ β”‚ β”œβ”€β”€ flags: βˆ…
@@ -440,8 +433,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,14)-(13,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,17)-(13,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (13,17)-(13,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (15,0)-(15,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -491,8 +483,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,3)-(15,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (15,7)-(15,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (15,7)-(15,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ RegularExpressionNode (location: (15,10)-(15,13))
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,10)-(15,11) = "/"
@@ -508,8 +499,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,14)-(15,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (15,17)-(15,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (15,17)-(15,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (17,0)-(17,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -559,8 +549,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,3)-(17,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (17,7)-(17,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (17,7)-(17,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ RegularExpressionNode (location: (17,10)-(17,14))
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,10)-(17,11) = "/"
@@ -576,8 +565,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,15)-(17,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (17,18)-(17,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (17,18)-(17,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (19,0)-(19,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -627,8 +615,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (19,3)-(19,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (19,8)-(19,9) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (19,8)-(19,9) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ StringNode (location: (19,11)-(19,14))
β”‚ β”‚ β”‚ β”œβ”€β”€ flags: βˆ…
@@ -644,8 +631,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (19,15)-(19,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (19,18)-(19,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (19,18)-(19,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (21,0)-(21,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -695,8 +681,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,3)-(21,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,8)-(21,9) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (21,8)-(21,9) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ RegularExpressionNode (location: (21,11)-(21,14))
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,11)-(21,12) = "/"
@@ -712,8 +697,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,15)-(21,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,18)-(21,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (21,18)-(21,21) = "end"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (23,0)-(23,22))
β”œβ”€β”€ receiver: βˆ…
@@ -763,8 +747,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,3)-(23,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (23,8)-(23,9) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (23,8)-(23,9) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── @ RegularExpressionNode (location: (23,11)-(23,15))
β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,11)-(23,12) = "/"
@@ -780,6 +763,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (23,16)-(23,18) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (23,19)-(23,22) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (23,19)-(23,22) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
index 45857739c5..77da1d947c 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
@@ -58,8 +58,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,12)-(1,14) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,15)-(1,18) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,15)-(1,18) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(3,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -115,8 +114,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,14)-(3,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,17)-(3,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (3,17)-(3,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(5,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -174,8 +172,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,15)-(5,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,18)-(5,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,18)-(5,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (7,0)-(7,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -233,8 +230,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,15)-(7,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,18)-(7,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (7,18)-(7,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (9,0)-(9,19))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -294,8 +290,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,13)-(9,15) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,16)-(9,19) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (9,16)-(9,19) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (11,0)-(11,19))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -352,8 +347,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,13)-(11,15) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (11,16)-(11,19) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (11,16)-(11,19) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (13,0)-(13,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -409,8 +403,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,15)-(13,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,18)-(13,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (13,18)-(13,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (15,0)-(15,22))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -468,8 +461,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (15,16)-(15,18) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (15,19)-(15,22) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (15,19)-(15,22) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (17,0)-(17,22))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -527,8 +519,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (17,16)-(17,18) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (17,19)-(17,22) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (17,19)-(17,22) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (19,0)-(19,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -588,8 +579,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (19,14)-(19,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (19,17)-(19,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (19,17)-(19,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (21,0)-(21,18))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -639,8 +629,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,3)-(21,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,7)-(21,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (21,7)-(21,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ IntegerNode (location: (21,10)-(21,11))
β”‚ β”‚ β”‚ └── flags: decimal
@@ -652,8 +641,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (21,12)-(21,14) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (21,15)-(21,18) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (21,15)-(21,18) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (23,0)-(23,20))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -703,8 +691,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,3)-(23,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (23,7)-(23,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (23,7)-(23,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ FloatNode (location: (23,10)-(23,13))
β”‚ β”‚ └── flags: βˆ…
@@ -715,8 +702,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (23,14)-(23,16) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (23,17)-(23,20) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (23,17)-(23,20) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (25,0)-(25,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -766,8 +752,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,3)-(25,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (25,7)-(25,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (25,7)-(25,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ ImaginaryNode (location: (25,10)-(25,14))
β”‚ β”‚ β”‚ └── numeric:
@@ -780,8 +765,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (25,15)-(25,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (25,18)-(25,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (25,18)-(25,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (27,0)-(27,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -831,8 +815,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (27,3)-(27,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (27,7)-(27,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (27,7)-(27,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ RationalNode (location: (27,10)-(27,14))
β”‚ β”‚ β”‚ └── numeric:
@@ -845,8 +828,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (27,15)-(27,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (27,18)-(27,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (27,18)-(27,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (29,0)-(29,19))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -896,8 +878,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (29,3)-(29,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (29,7)-(29,8) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (29,7)-(29,8) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ SymbolNode (location: (29,10)-(29,12))
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (29,10)-(29,11) = ":"
@@ -912,8 +893,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (29,13)-(29,15) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (29,16)-(29,19) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (29,16)-(29,19) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (31,0)-(31,19))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -963,8 +943,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (31,3)-(31,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (31,8)-(31,9) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (31,8)-(31,9) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ IntegerNode (location: (31,11)-(31,12))
β”‚ β”‚ β”‚ └── flags: decimal
@@ -976,8 +955,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (31,13)-(31,15) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (31,16)-(31,19) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (31,16)-(31,19) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (33,0)-(33,21))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1027,8 +1005,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (33,3)-(33,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (33,8)-(33,9) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (33,8)-(33,9) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ FloatNode (location: (33,11)-(33,14))
β”‚ β”‚ └── flags: βˆ…
@@ -1039,8 +1016,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (33,15)-(33,17) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (33,18)-(33,21) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (33,18)-(33,21) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (35,0)-(35,22))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1090,8 +1066,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (35,3)-(35,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (35,8)-(35,9) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (35,8)-(35,9) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ ImaginaryNode (location: (35,11)-(35,15))
β”‚ β”‚ β”‚ └── numeric:
@@ -1104,8 +1079,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (35,16)-(35,18) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (35,19)-(35,22) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (35,19)-(35,22) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (37,0)-(37,22))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -1155,8 +1129,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (37,3)-(37,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (37,8)-(37,9) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (37,8)-(37,9) = "}"
β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ └── @ RationalNode (location: (37,11)-(37,15))
β”‚ β”‚ β”‚ └── numeric:
@@ -1169,8 +1142,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (37,16)-(37,18) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (37,19)-(37,22) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (37,19)-(37,22) = "end"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (39,0)-(39,20))
β”œβ”€β”€ receiver: βˆ…
@@ -1220,8 +1192,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (39,3)-(39,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (39,8)-(39,9) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (39,8)-(39,9) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── @ SymbolNode (location: (39,11)-(39,13))
β”‚ β”‚ β”œβ”€β”€ opening_loc: (39,11)-(39,12) = ":"
@@ -1236,6 +1207,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (39,14)-(39,16) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (39,17)-(39,20) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (39,17)-(39,20) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt
index c649fe4cb9..6f052e5e6f 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt
@@ -74,8 +74,7 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ block: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "{"
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,12)-(1,13) = "}"
- β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,12)-(1,13) = "}"
β”‚ β”‚ β”‚ └── flags: βˆ…
β”‚ β”‚ └── @ CallNode (location: (1,15)-(1,18))
β”‚ β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -95,6 +94,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,19)-(1,21) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,25) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,22)-(1,25) = "end"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_13547.txt b/test/prism/snapshots/whitequark/ruby_bug_13547.txt
index b2805a83c7..becb34f0bb 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_13547.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_13547.txt
@@ -27,6 +27,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,8) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,8)-(1,9) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,8)-(1,9) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_14690.txt b/test/prism/snapshots/whitequark/ruby_bug_14690.txt
index 8282a2f3a9..bccfa5d878 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_14690.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_14690.txt
@@ -52,10 +52,8 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,14)-(1,16) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,18)-(1,21) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,18)-(1,21) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,8) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,22)-(1,23) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,22)-(1,23) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/ruby_bug_15789.txt b/test/prism/snapshots/whitequark/ruby_bug_15789.txt
index 6346624157..ec7cd2a739 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_15789.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_15789.txt
@@ -33,14 +33,15 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ operator_loc: (1,9)-(1,11) = "->"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,11)-(1,12) = "{"
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,14)-(1,15) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (1,12)-(1,14))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,12)-(1,14))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 1
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ @ NumberedParametersNode (location: (1,9)-(1,15))
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── maximum: 1
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (1,12)-(1,14))
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,12)-(1,14))
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ rest: βˆ…
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ posts: (length: 0)
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ keywords: (length: 0)
@@ -49,13 +50,12 @@
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,5) = "("
β”‚ β”‚ β”‚ β”‚ └── closing_loc: (1,15)-(1,16) = ")"
- β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (1,18)-(1,19))
- β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,18)-(1,19))
- β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ @ StatementsNode (location: (1,18)-(1,19))
+ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (1,18)-(1,19))
+ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ closing_loc: βˆ…
β”‚ β”œβ”€β”€ block: βˆ…
@@ -92,26 +92,26 @@
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ operator_loc: (3,8)-(3,10) = "->"
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,10)-(3,11) = "{"
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,13)-(3,14) = "}"
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (3,11)-(3,13))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (3,11)-(3,13))
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
- β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ β”‚ β”‚ β”‚ └── numbered_parameters: 1
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ parameters:
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ @ NumberedParametersNode (location: (3,8)-(3,14))
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── maximum: 1
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── body:
+ β”‚ β”‚ β”‚ β”‚ β”‚ @ StatementsNode (location: (3,11)-(3,13))
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (3,11)-(3,13))
+ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ name: :_1
+ β”‚ β”‚ β”‚ β”‚ β”‚ └── depth: 0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ keyword_rest: βˆ…
β”‚ β”‚ β”‚ β”‚ └── block: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,4)-(3,5) = "("
β”‚ β”‚ β”‚ └── closing_loc: (3,14)-(3,15) = ")"
- β”‚ β”‚ β”œβ”€β”€ body:
- β”‚ β”‚ β”‚ @ StatementsNode (location: (3,17)-(3,18))
- β”‚ β”‚ β”‚ └── body: (length: 1)
- β”‚ β”‚ β”‚ └── @ LocalVariableReadNode (location: (3,17)-(3,18))
- β”‚ β”‚ β”‚ β”œβ”€β”€ name: :a
- β”‚ β”‚ β”‚ └── depth: 0
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── body:
+ β”‚ β”‚ @ StatementsNode (location: (3,17)-(3,18))
+ β”‚ β”‚ └── body: (length: 1)
+ β”‚ β”‚ └── @ LocalVariableReadNode (location: (3,17)-(3,18))
+ β”‚ β”‚ β”œβ”€β”€ name: :a
+ β”‚ β”‚ └── depth: 0
β”‚ └── flags: βˆ…
β”œβ”€β”€ closing_loc: βˆ…
β”œβ”€β”€ block: βˆ…
diff --git a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
index 42f90902a8..40e59aa278 100644
--- a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
+++ b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
@@ -24,8 +24,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,9) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,13) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (1,10)-(1,13) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (1,13)-(1,14) = "."
β”‚ β”œβ”€β”€ name: :fun
@@ -69,8 +68,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,7)-(3,9) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,10)-(3,13) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (3,10)-(3,13) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (3,13)-(3,14) = "."
β”‚ β”œβ”€β”€ name: :fun
@@ -97,8 +95,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,22)-(3,24) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,25)-(3,28) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (3,25)-(3,28) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(5,20))
β”‚ β”œβ”€β”€ receiver:
@@ -121,8 +118,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,7)-(5,9) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,10)-(5,13) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (5,10)-(5,13) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (5,13)-(5,14) = "."
β”‚ β”œβ”€β”€ name: :fun
@@ -136,8 +132,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,18)-(5,19) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,19)-(5,20) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,19)-(5,20) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (7,0)-(7,22))
β”‚ β”œβ”€β”€ receiver:
@@ -160,8 +155,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (7,7)-(7,9) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (7,10)-(7,13) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (7,10)-(7,13) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (7,13)-(7,14) = "."
β”‚ β”œβ”€β”€ name: :fun
@@ -205,8 +199,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,7)-(9,9) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,10)-(9,13) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (9,10)-(9,13) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (9,13)-(9,14) = "."
β”‚ β”œβ”€β”€ name: :fun
@@ -233,8 +226,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (9,23)-(9,24) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (9,24)-(9,25) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (9,24)-(9,25) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (11,0)-(11,22))
β”‚ β”œβ”€β”€ receiver:
@@ -257,8 +249,7 @@
β”‚ β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”‚ β”œβ”€β”€ opening_loc: (11,7)-(11,9) = "do"
- β”‚ β”‚ β”‚ β”œβ”€β”€ closing_loc: (11,10)-(11,13) = "end"
- β”‚ β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ β”‚ └── closing_loc: (11,10)-(11,13) = "end"
β”‚ β”‚ └── flags: βˆ…
β”‚ β”œβ”€β”€ call_operator_loc: (11,13)-(11,15) = "::"
β”‚ β”œβ”€β”€ name: :fun
@@ -302,8 +293,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (13,7)-(13,9) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (13,10)-(13,13) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (13,10)-(13,13) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ call_operator_loc: (13,13)-(13,15) = "::"
β”œβ”€β”€ name: :fun
diff --git a/test/prism/snapshots/whitequark/send_block_conditional.txt b/test/prism/snapshots/whitequark/send_block_conditional.txt
index 16b12fb6ec..ed736996b5 100644
--- a/test/prism/snapshots/whitequark/send_block_conditional.txt
+++ b/test/prism/snapshots/whitequark/send_block_conditional.txt
@@ -27,6 +27,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,9)-(1,10) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,10)-(1,11) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,10)-(1,11) = "}"
└── flags: safe_navigation
diff --git a/test/prism/snapshots/whitequark/send_lambda.txt b/test/prism/snapshots/whitequark/send_lambda.txt
index acacf50035..b39992d868 100644
--- a/test/prism/snapshots/whitequark/send_lambda.txt
+++ b/test/prism/snapshots/whitequark/send_lambda.txt
@@ -26,21 +26,18 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
β”œβ”€β”€ @ LambdaNode (location: (3,0)-(3,9))
β”‚ β”œβ”€β”€ locals: []
β”‚ β”œβ”€β”€ operator_loc: (3,0)-(3,2) = "->"
β”‚ β”œβ”€β”€ opening_loc: (3,3)-(3,5) = "do"
β”‚ β”œβ”€β”€ closing_loc: (3,6)-(3,9) = "end"
β”‚ β”œβ”€β”€ parameters: βˆ…
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── @ LambdaNode (location: (5,0)-(5,5))
β”œβ”€β”€ locals: []
β”œβ”€β”€ operator_loc: (5,0)-(5,2) = "->"
β”œβ”€β”€ opening_loc: (5,2)-(5,3) = "{"
β”œβ”€β”€ closing_loc: (5,4)-(5,5) = "}"
β”œβ”€β”€ parameters: βˆ…
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/whitequark/send_lambda_args.txt b/test/prism/snapshots/whitequark/send_lambda_args.txt
index 30f859313b..0e5dd9a7c0 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args.txt
@@ -24,8 +24,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,3)-(1,4) = "("
β”‚ β”‚ └── closing_loc: (1,5)-(1,6) = ")"
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── @ LambdaNode (location: (3,0)-(3,9))
β”œβ”€β”€ locals: [:a]
β”œβ”€β”€ operator_loc: (3,0)-(3,2) = "->"
@@ -47,5 +46,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: (3,2)-(3,3) = "("
β”‚ └── closing_loc: (3,4)-(3,5) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
index 6ffc7d8a62..913c9a9bb0 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
@@ -28,8 +28,7 @@
β”‚ β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ β”‚ └── closing_loc: βˆ…
- β”‚ β”œβ”€β”€ body: βˆ…
- β”‚ └── numbered_parameters: 0
+ β”‚ └── body: βˆ…
└── @ LambdaNode (location: (3,0)-(3,9))
β”œβ”€β”€ locals: [:a]
β”œβ”€β”€ operator_loc: (3,0)-(3,2) = "->"
@@ -52,5 +51,4 @@
β”‚ β”œβ”€β”€ locals: (length: 0)
β”‚ β”œβ”€β”€ opening_loc: βˆ…
β”‚ └── closing_loc: βˆ…
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt b/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt
index cf5893c6d2..2e1160427c 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt
@@ -28,5 +28,4 @@
β”‚ β”‚ └── name: :bar
β”‚ β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "("
β”‚ └── closing_loc: (1,14)-(1,15) = ")"
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/whitequark/send_lambda_legacy.txt b/test/prism/snapshots/whitequark/send_lambda_legacy.txt
index c03950391a..3a64e941b6 100644
--- a/test/prism/snapshots/whitequark/send_lambda_legacy.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_legacy.txt
@@ -9,5 +9,4 @@
β”œβ”€β”€ opening_loc: (1,2)-(1,3) = "{"
β”œβ”€β”€ closing_loc: (1,4)-(1,5) = "}"
β”œβ”€β”€ parameters: βˆ…
- β”œβ”€β”€ body: βˆ…
- └── numbered_parameters: 0
+ └── body: βˆ…
diff --git a/test/prism/snapshots/whitequark/send_self_block.txt b/test/prism/snapshots/whitequark/send_self_block.txt
index 7e095907dc..7bbee61474 100644
--- a/test/prism/snapshots/whitequark/send_self_block.txt
+++ b/test/prism/snapshots/whitequark/send_self_block.txt
@@ -17,8 +17,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,4)-(1,6) = "do"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,7)-(1,10) = "end"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,7)-(1,10) = "end"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(3,7))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -34,8 +33,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,4)-(3,5) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,6)-(3,7) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (3,6)-(3,7) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (5,0)-(5,9))
β”‚ β”œβ”€β”€ receiver: βˆ…
@@ -51,8 +49,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (5,6)-(5,7) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (5,8)-(5,9) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (5,8)-(5,9) = "}"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (7,0)-(7,10))
β”œβ”€β”€ receiver: βˆ…
@@ -73,6 +70,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (7,7)-(7,8) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (7,9)-(7,10) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (7,9)-(7,10) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/space_args_arg_block.txt b/test/prism/snapshots/whitequark/space_args_arg_block.txt
index 3b46484380..b870fc66d7 100644
--- a/test/prism/snapshots/whitequark/space_args_arg_block.txt
+++ b/test/prism/snapshots/whitequark/space_args_arg_block.txt
@@ -38,8 +38,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (1,12)-(1,13) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (1,13)-(1,14) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (1,13)-(1,14) = "}"
β”‚ └── flags: βˆ…
β”œβ”€β”€ @ CallNode (location: (3,0)-(3,15))
β”‚ β”œβ”€β”€ receiver:
@@ -76,8 +75,7 @@
β”‚ β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”‚ β”œβ”€β”€ opening_loc: (3,13)-(3,14) = "{"
- β”‚ β”‚ β”œβ”€β”€ closing_loc: (3,14)-(3,15) = "}"
- β”‚ β”‚ └── numbered_parameters: 0
+ β”‚ β”‚ └── closing_loc: (3,14)-(3,15) = "}"
β”‚ └── flags: βˆ…
└── @ CallNode (location: (5,0)-(5,10))
β”œβ”€β”€ receiver: βˆ…
@@ -104,6 +102,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (5,8)-(5,9) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (5,9)-(5,10) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (5,9)-(5,10) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/space_args_block.txt b/test/prism/snapshots/whitequark/space_args_block.txt
index 50dd1391ba..28fcecc97f 100644
--- a/test/prism/snapshots/whitequark/space_args_block.txt
+++ b/test/prism/snapshots/whitequark/space_args_block.txt
@@ -24,6 +24,5 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,7)-(1,8) = "{"
- β”‚ β”œβ”€β”€ closing_loc: (1,8)-(1,9) = "}"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,8)-(1,9) = "}"
└── flags: βˆ…
diff --git a/test/prism/snapshots/whitequark/super_block.txt b/test/prism/snapshots/whitequark/super_block.txt
index b631bb1240..124dd22c53 100644
--- a/test/prism/snapshots/whitequark/super_block.txt
+++ b/test/prism/snapshots/whitequark/super_block.txt
@@ -10,8 +10,7 @@
β”‚ β”œβ”€β”€ parameters: βˆ…
β”‚ β”œβ”€β”€ body: βˆ…
β”‚ β”œβ”€β”€ opening_loc: (1,6)-(1,8) = "do"
- β”‚ β”œβ”€β”€ closing_loc: (1,9)-(1,12) = "end"
- β”‚ └── numbered_parameters: 0
+ β”‚ └── closing_loc: (1,9)-(1,12) = "end"
└── @ SuperNode (location: (3,0)-(3,21))
β”œβ”€β”€ keyword_loc: (3,0)-(3,5) = "super"
β”œβ”€β”€ lparen_loc: βˆ…
@@ -46,5 +45,4 @@
β”œβ”€β”€ parameters: βˆ…
β”œβ”€β”€ body: βˆ…
β”œβ”€β”€ opening_loc: (3,15)-(3,17) = "do"
- β”œβ”€β”€ closing_loc: (3,18)-(3,21) = "end"
- └── numbered_parameters: 0
+ └── closing_loc: (3,18)-(3,21) = "end"