summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/prism/prism.gemspec2
-rw-r--r--prism/extension.c20
-rw-r--r--prism/prism.c14
-rw-r--r--prism/prism.h2
-rw-r--r--prism/templates/ext/prism/api_node.c.erb8
-rw-r--r--prism/templates/include/prism/ast.h.erb3
-rw-r--r--prism/templates/src/node.c.erb22
-rw-r--r--prism/templates/src/prettyprint.c.erb16
-rw-r--r--prism/templates/src/serialize.c.erb8
-rwxr-xr-xprism/templates/template.rb2
-rw-r--r--prism/util/pm_integer.c176
-rw-r--r--prism/util/pm_integer.h104
-rw-r--r--prism/util/pm_number.c174
-rw-r--r--prism/util/pm_number.h103
-rw-r--r--test/prism/integer_parse_test.rb37
-rw-r--r--test/prism/number_parse_test.rb36
-rw-r--r--test/prism/snapshots/alias.txt3
-rw-r--r--test/prism/snapshots/arithmetic.txt9
-rw-r--r--test/prism/snapshots/arrays.txt120
-rw-r--r--test/prism/snapshots/blocks.txt18
-rw-r--r--test/prism/snapshots/break.txt57
-rw-r--r--test/prism/snapshots/case.txt45
-rw-r--r--test/prism/snapshots/classes.txt21
-rw-r--r--test/prism/snapshots/command_method_call.txt114
-rw-r--r--test/prism/snapshots/constants.txt15
-rw-r--r--test/prism/snapshots/dash_heredocs.txt6
-rw-r--r--test/prism/snapshots/defined.txt12
-rw-r--r--test/prism/snapshots/emoji_method_calls.txt3
-rw-r--r--test/prism/snapshots/endless_methods.txt12
-rw-r--r--test/prism/snapshots/endless_range_in_conditional.txt12
-rw-r--r--test/prism/snapshots/for.txt36
-rw-r--r--test/prism/snapshots/hashes.txt9
-rw-r--r--test/prism/snapshots/heredocs_nested.txt3
-rw-r--r--test/prism/snapshots/if.txt24
-rw-r--r--test/prism/snapshots/integer_operations.txt198
-rw-r--r--test/prism/snapshots/lambda.txt3
-rw-r--r--test/prism/snapshots/method_calls.txt51
-rw-r--r--test/prism/snapshots/methods.txt87
-rw-r--r--test/prism/snapshots/modules.txt9
-rw-r--r--test/prism/snapshots/next.txt51
-rw-r--r--test/prism/snapshots/nils.txt6
-rw-r--r--test/prism/snapshots/numbers.txt87
-rw-r--r--test/prism/snapshots/patterns.txt102
-rw-r--r--test/prism/snapshots/procs.txt9
-rw-r--r--test/prism/snapshots/range_begin_open_exclusive.txt3
-rw-r--r--test/prism/snapshots/range_begin_open_inclusive.txt3
-rw-r--r--test/prism/snapshots/range_end_open_exclusive.txt3
-rw-r--r--test/prism/snapshots/range_end_open_inclusive.txt3
-rw-r--r--test/prism/snapshots/ranges.txt123
-rw-r--r--test/prism/snapshots/regex.txt3
-rw-r--r--test/prism/snapshots/repeat_parameters.txt12
-rw-r--r--test/prism/snapshots/rescue.txt12
-rw-r--r--test/prism/snapshots/return.txt51
-rw-r--r--test/prism/snapshots/seattlerb/BEGIN.txt3
-rw-r--r--test/prism/snapshots/seattlerb/TestRubyParserShared.txt6
-rw-r--r--test/prism/snapshots/seattlerb/aref_args_assocs.txt6
-rw-r--r--test/prism/snapshots/seattlerb/aref_args_lit_assocs.txt9
-rw-r--r--test/prism/snapshots/seattlerb/args_kw_block.txt3
-rw-r--r--test/prism/snapshots/seattlerb/array_line_breaks.txt3
-rw-r--r--test/prism/snapshots/seattlerb/assoc_label.txt3
-rw-r--r--test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt3
-rw-r--r--test/prism/snapshots/seattlerb/attrasgn_array_arg.txt9
-rw-r--r--test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt12
-rw-r--r--test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bang_eq.txt6
-rw-r--r--test/prism/snapshots/seattlerb/bdot2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/bdot3.txt3
-rw-r--r--test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt12
-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_args_opt1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt2.txt6
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt2_2.txt6
-rw-r--r--test/prism/snapshots/seattlerb/block_args_opt3.txt6
-rw-r--r--test/prism/snapshots/seattlerb/block_kw.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/bug202.txt6
-rw-r--r--test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt18
-rw-r--r--test/prism/snapshots/seattlerb/call_and.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_arg_assoc.txt9
-rw-r--r--test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt9
-rw-r--r--test/prism/snapshots/seattlerb/call_arg_kwsplat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt9
-rw-r--r--test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt9
-rw-r--r--test/prism/snapshots/seattlerb/call_args_command.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_array_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_assoc.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_assoc_new.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_bang_command_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_bang_squiggle.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_carat.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_colon_parens.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_div.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_dot_parens.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_eq3.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_gt.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_kwsplat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_lt.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_lte.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_not.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_pipe.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_rshift.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_self_brackets.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_spaceship.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_star.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_star2.txt6
-rw-r--r--test/prism/snapshots/seattlerb/call_trailing_comma.txt3
-rw-r--r--test/prism/snapshots/seattlerb/call_unary_bang.txt3
-rw-r--r--test/prism/snapshots/seattlerb/case_in.txt18
-rw-r--r--test/prism/snapshots/seattlerb/case_in_67.txt3
-rw-r--r--test/prism/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt3
-rw-r--r--test/prism/snapshots/seattlerb/cond_unary_minus.txt3
-rw-r--r--test/prism/snapshots/seattlerb/const_2_op_asgn_or2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/const_3_op_asgn_or.txt3
-rw-r--r--test/prism/snapshots/seattlerb/const_op_asgn_and1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/const_op_asgn_and2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/const_op_asgn_or.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defined_eh_parens.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_endless_command.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt6
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt6
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_val.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defs_endless_command.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt6
-rw-r--r--test/prism/snapshots/seattlerb/defs_kwarg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/difficult1_line_numbers.txt42
-rw-r--r--test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt6
-rw-r--r--test/prism/snapshots/seattlerb/difficult2_.txt9
-rw-r--r--test/prism/snapshots/seattlerb/difficult4__leading_dots2.txt6
-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/do_bug.txt3
-rw-r--r--test/prism/snapshots/seattlerb/eq_begin_line_numbers.txt6
-rw-r--r--test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt3
-rw-r--r--test/prism/snapshots/seattlerb/f_kw.txt3
-rw-r--r--test/prism/snapshots/seattlerb/heredoc_lineno.txt3
-rw-r--r--test/prism/snapshots/seattlerb/heredoc_nested.txt3
-rw-r--r--test/prism/snapshots/seattlerb/heredoc_squiggly_interp.txt3
-rw-r--r--test/prism/snapshots/seattlerb/if_elsif.txt6
-rw-r--r--test/prism/snapshots/seattlerb/integer_with_if_modifier.txt3
-rw-r--r--test/prism/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt3
-rw-r--r--test/prism/snapshots/seattlerb/interpolated_word_array_line_breaks.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_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/lasgn_arg_rescue_arg.txt6
-rw-r--r--test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt6
-rw-r--r--test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt6
-rw-r--r--test/prism/snapshots/seattlerb/lasgn_command.txt3
-rw-r--r--test/prism/snapshots/seattlerb/lasgn_env.txt3
-rw-r--r--test/prism/snapshots/seattlerb/lasgn_ivar_env.txt3
-rw-r--r--test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/masgn_colon2.txt6
-rw-r--r--test/prism/snapshots/seattlerb/masgn_colon3.txt6
-rw-r--r--test/prism/snapshots/seattlerb/masgn_command_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/masgn_lhs_splat.txt9
-rw-r--r--test/prism/snapshots/seattlerb/masgn_star.txt3
-rw-r--r--test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt6
-rw-r--r--test/prism/snapshots/seattlerb/method_call_trailing_comma.txt3
-rw-r--r--test/prism/snapshots/seattlerb/mlhs_rescue.txt3
-rw-r--r--test/prism/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt3
-rw-r--r--test/prism/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt3
-rw-r--r--test/prism/snapshots/seattlerb/op_asgn_command_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt6
-rw-r--r--test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt3
-rw-r--r--test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_block.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_defn_complex.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_dot2.txt6
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_dot2_open.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_dot3.txt6
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_dot3_open.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_hash_lit.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_multiline_str.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_line_return.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt9
-rw-r--r--test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt6
-rw-r--r--test/prism/snapshots/seattlerb/parse_pattern_019.txt9
-rw-r--r--test/prism/snapshots/seattlerb/parse_pattern_051.txt15
-rw-r--r--test/prism/snapshots/seattlerb/parse_pattern_058.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_pattern_058_2.txt3
-rw-r--r--test/prism/snapshots/seattlerb/parse_pattern_069.txt6
-rw-r--r--test/prism/snapshots/seattlerb/parse_pattern_076.txt6
-rw-r--r--test/prism/snapshots/seattlerb/qsymbols_interp.txt6
-rw-r--r--test/prism/snapshots/seattlerb/return_call_assocs.txt27
-rw-r--r--test/prism/snapshots/seattlerb/rhs_asgn.txt3
-rw-r--r--test/prism/snapshots/seattlerb/ruby21_numbers.txt9
-rw-r--r--test/prism/snapshots/seattlerb/safe_attrasgn.txt3
-rw-r--r--test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt3
-rw-r--r--test/prism/snapshots/seattlerb/safe_call_operator.txt3
-rw-r--r--test/prism/snapshots/seattlerb/safe_calls.txt3
-rw-r--r--test/prism/snapshots/seattlerb/safe_op_asgn.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_no_target_with_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/stabby_block_kw.txt3
-rw-r--r--test/prism/snapshots/seattlerb/str_newline_hash_line_number.txt3
-rw-r--r--test/prism/snapshots/seattlerb/str_pct_nested_nested.txt3
-rw-r--r--test/prism/snapshots/seattlerb/super_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/thingy.txt6
-rw-r--r--test/prism/snapshots/seattlerb/utf8_bom.txt3
-rw-r--r--test/prism/snapshots/seattlerb/words_interp.txt3
-rw-r--r--test/prism/snapshots/seattlerb/yield_arg.txt3
-rw-r--r--test/prism/snapshots/seattlerb/yield_call_assocs.txt27
-rw-r--r--test/prism/snapshots/super.txt30
-rw-r--r--test/prism/snapshots/symbols.txt21
-rw-r--r--test/prism/snapshots/ternary_operator.txt6
-rw-r--r--test/prism/snapshots/tilde_heredocs.txt21
-rw-r--r--test/prism/snapshots/undef.txt3
-rw-r--r--test/prism/snapshots/unless.txt12
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/assignment.txt120
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/block.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/case.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/control.txt33
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/def.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/defined.txt6
-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/flipflop.txt12
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/if.txt24
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/literal.txt93
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/opasgn.txt60
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/pattern.txt51
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/range.txt18
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/send.txt27
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/27.txt3
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/30.txt15
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/unary.txt9
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/while.txt6
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/literal.txt9
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/send.txt3
-rw-r--r--test/prism/snapshots/until.txt6
-rw-r--r--test/prism/snapshots/variables.txt87
-rw-r--r--test/prism/snapshots/while.txt6
-rw-r--r--test/prism/snapshots/whitequark/and_asgn.txt12
-rw-r--r--test/prism/snapshots/whitequark/args.txt36
-rw-r--r--test/prism/snapshots/whitequark/args_args_assocs.txt6
-rw-r--r--test/prism/snapshots/whitequark/args_args_assocs_comma.txt3
-rw-r--r--test/prism/snapshots/whitequark/args_assocs.txt18
-rw-r--r--test/prism/snapshots/whitequark/args_assocs_comma.txt3
-rw-r--r--test/prism/snapshots/whitequark/args_assocs_legacy.txt18
-rw-r--r--test/prism/snapshots/whitequark/array_assocs.txt15
-rw-r--r--test/prism/snapshots/whitequark/array_plain.txt6
-rw-r--r--test/prism/snapshots/whitequark/array_splat.txt9
-rw-r--r--test/prism/snapshots/whitequark/asgn_mrhs.txt3
-rw-r--r--test/prism/snapshots/whitequark/begin_cmdarg.txt6
-rw-r--r--test/prism/snapshots/whitequark/beginless_erange_after_newline.txt3
-rw-r--r--test/prism/snapshots/whitequark/beginless_irange_after_newline.txt3
-rw-r--r--test/prism/snapshots/whitequark/beginless_range.txt6
-rw-r--r--test/prism/snapshots/whitequark/blockargs.txt36
-rw-r--r--test/prism/snapshots/whitequark/bug_447.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_452.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_466.txt6
-rw-r--r--test/prism/snapshots/whitequark/bug_481.txt3
-rw-r--r--test/prism/snapshots/whitequark/bug_interp_single.txt6
-rw-r--r--test/prism/snapshots/whitequark/casgn_scoped.txt3
-rw-r--r--test/prism/snapshots/whitequark/casgn_toplevel.txt3
-rw-r--r--test/prism/snapshots/whitequark/casgn_unscoped.txt3
-rw-r--r--test/prism/snapshots/whitequark/complex.txt6
-rw-r--r--test/prism/snapshots/whitequark/const_op_asgn.txt15
-rw-r--r--test/prism/snapshots/whitequark/cvasgn.txt3
-rw-r--r--test/prism/snapshots/whitequark/endless_method.txt12
-rw-r--r--test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt12
-rw-r--r--test/prism/snapshots/whitequark/endless_method_without_args.txt12
-rw-r--r--test/prism/snapshots/whitequark/forward_arg_with_open_args.txt9
-rw-r--r--test/prism/snapshots/whitequark/gvasgn.txt3
-rw-r--r--test/prism/snapshots/whitequark/hash_hashrocket.txt12
-rw-r--r--test/prism/snapshots/whitequark/hash_kwsplat.txt3
-rw-r--r--test/prism/snapshots/whitequark/hash_label.txt3
-rw-r--r--test/prism/snapshots/whitequark/hash_label_end.txt9
-rw-r--r--test/prism/snapshots/whitequark/if_elsif.txt6
-rw-r--r--test/prism/snapshots/whitequark/int.txt9
-rw-r--r--test/prism/snapshots/whitequark/ivasgn.txt3
-rw-r--r--test/prism/snapshots/whitequark/kwoptarg.txt3
-rw-r--r--test/prism/snapshots/whitequark/lvasgn.txt3
-rw-r--r--test/prism/snapshots/whitequark/masgn.txt18
-rw-r--r--test/prism/snapshots/whitequark/masgn_attr.txt6
-rw-r--r--test/prism/snapshots/whitequark/multiple_pattern_matches.txt12
-rw-r--r--test/prism/snapshots/whitequark/newline_in_hash_argument.txt12
-rw-r--r--test/prism/snapshots/whitequark/non_lvar_injecting_match.txt3
-rw-r--r--test/prism/snapshots/whitequark/op_asgn.txt9
-rw-r--r--test/prism/snapshots/whitequark/op_asgn_index.txt9
-rw-r--r--test/prism/snapshots/whitequark/op_asgn_index_cmd.txt6
-rw-r--r--test/prism/snapshots/whitequark/optarg.txt9
-rw-r--r--test/prism/snapshots/whitequark/or_asgn.txt12
-rw-r--r--test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt3
-rw-r--r--test/prism/snapshots/whitequark/pattern_matching_blank_else.txt9
-rw-r--r--test/prism/snapshots/whitequark/pattern_matching_else.txt12
-rw-r--r--test/prism/snapshots/whitequark/pattern_matching_single_line.txt6
-rw-r--r--test/prism/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt18
-rw-r--r--test/prism/snapshots/whitequark/postexe.txt3
-rw-r--r--test/prism/snapshots/whitequark/preexe.txt3
-rw-r--r--test/prism/snapshots/whitequark/range_exclusive.txt6
-rw-r--r--test/prism/snapshots/whitequark/range_inclusive.txt6
-rw-r--r--test/prism/snapshots/whitequark/rational.txt3
-rw-r--r--test/prism/snapshots/whitequark/rescue_mod_masgn.txt6
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_10279.txt3
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_10653.txt6
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11380.txt3
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_11873_a.txt12
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_12073.txt6
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_12402.txt6
-rw-r--r--test/prism/snapshots/whitequark/ruby_bug_9669.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_attr_asgn.txt12
-rw-r--r--test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_binary_op.txt63
-rw-r--r--test/prism/snapshots/whitequark/send_block_chain_cmd.txt21
-rw-r--r--test/prism/snapshots/whitequark/send_call.txt6
-rw-r--r--test/prism/snapshots/whitequark/send_index.txt6
-rw-r--r--test/prism/snapshots/whitequark/send_index_asgn.txt9
-rw-r--r--test/prism/snapshots/whitequark/send_index_asgn_legacy.txt9
-rw-r--r--test/prism/snapshots/whitequark/send_index_legacy.txt6
-rw-r--r--test/prism/snapshots/whitequark/send_lambda_args_noparen.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_op_asgn_conditional.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_self.txt3
-rw-r--r--test/prism/snapshots/whitequark/send_self_block.txt3
-rw-r--r--test/prism/snapshots/whitequark/space_args_arg.txt3
-rw-r--r--test/prism/snapshots/whitequark/space_args_arg_block.txt9
-rw-r--r--test/prism/snapshots/whitequark/space_args_arg_call.txt3
-rw-r--r--test/prism/snapshots/whitequark/space_args_arg_newline.txt3
-rw-r--r--test/prism/snapshots/whitequark/ternary.txt6
-rw-r--r--test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt3
-rw-r--r--test/prism/snapshots/whitequark/trailing_forward_arg.txt3
-rw-r--r--test/prism/snapshots/whitequark/unary_num_pow_precedence.txt12
-rw-r--r--test/prism/snapshots/whitequark/undef.txt3
-rw-r--r--test/prism/snapshots/whitequark/var_and_asgn.txt3
-rw-r--r--test/prism/snapshots/whitequark/var_op_asgn.txt12
-rw-r--r--test/prism/snapshots/whitequark/var_or_asgn.txt3
-rw-r--r--test/prism/snapshots/whitequark/when_splat.txt3
-rw-r--r--test/prism/snapshots/yield.txt12
356 files changed, 2823 insertions, 1588 deletions
diff --git a/lib/prism/prism.gemspec b/lib/prism/prism.gemspec
index 902a1f235f..5017d671ae 100644
--- a/lib/prism/prism.gemspec
+++ b/lib/prism/prism.gemspec
@@ -57,6 +57,7 @@ Gem::Specification.new do |spec|
"include/prism/util/pm_buffer.h",
"include/prism/util/pm_char.h",
"include/prism/util/pm_constant_pool.h",
+ "include/prism/util/pm_integer.h",
"include/prism/util/pm_list.h",
"include/prism/util/pm_memchr.h",
"include/prism/util/pm_newline_list.h",
@@ -107,6 +108,7 @@ Gem::Specification.new do |spec|
"src/util/pm_buffer.c",
"src/util/pm_char.c",
"src/util/pm_constant_pool.c",
+ "src/util/pm_integer.c",
"src/util/pm_list.c",
"src/util/pm_memchr.c",
"src/util/pm_newline_list.c",
diff --git a/prism/extension.c b/prism/extension.c
index 4af28bdb96..fd2281fd79 100644
--- a/prism/extension.c
+++ b/prism/extension.c
@@ -951,28 +951,28 @@ named_captures(VALUE self, VALUE source) {
/**
* call-seq:
- * Debug::number_parse(source) -> Integer
+ * Debug::integer_parse(source) -> Integer
*
- * Parses the given source string and returns the number it represents.
+ * Parses the given source string and returns the integer it represents.
*/
static VALUE
-number_parse(VALUE self, VALUE source) {
+integer_parse(VALUE self, VALUE source) {
const uint8_t *start = (const uint8_t *) RSTRING_PTR(source);
size_t length = RSTRING_LEN(source);
- pm_number_t number = { 0 };
- pm_number_parse(&number, PM_NUMBER_BASE_UNKNOWN, start, start + length);
+ pm_integer_t integer = { 0 };
+ pm_integer_parse(&integer, PM_INTEGER_BASE_UNKNOWN, start, start + length);
- VALUE result = UINT2NUM(number.head.value);
+ VALUE result = UINT2NUM(integer.head.value);
size_t shift = 0;
- for (pm_number_node_t *node = number.head.next; node != NULL; node = node->next) {
+ for (pm_integer_word_t *node = integer.head.next; node != NULL; node = node->next) {
VALUE receiver = rb_funcall(UINT2NUM(node->value), rb_intern("<<"), 1, ULONG2NUM(++shift * 32));
result = rb_funcall(receiver, rb_intern("|"), 1, result);
}
- if (number.negative) result = rb_funcall(result, rb_intern("-@"), 0);
- pm_number_free(&number);
+ if (integer.negative) result = rb_funcall(result, rb_intern("-@"), 0);
+ pm_integer_free(&integer);
return result;
}
@@ -1176,7 +1176,7 @@ Init_prism(void) {
// internal tasks. We expose these to make them easier to test.
VALUE rb_cPrismDebug = rb_define_module_under(rb_cPrism, "Debug");
rb_define_singleton_method(rb_cPrismDebug, "named_captures", named_captures, 1);
- rb_define_singleton_method(rb_cPrismDebug, "number_parse", number_parse, 1);
+ rb_define_singleton_method(rb_cPrismDebug, "integer_parse", integer_parse, 1);
rb_define_singleton_method(rb_cPrismDebug, "memsize", memsize, 1);
rb_define_singleton_method(rb_cPrismDebug, "profile_file", profile_file, 1);
rb_define_singleton_method(rb_cPrismDebug, "inspect_node", inspect_node, 1);
diff --git a/prism/prism.c b/prism/prism.c
index a1b2bf74e2..e14911167a 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -3812,16 +3812,16 @@ pm_integer_node_create(pm_parser_t *parser, pm_node_flags_t base, const pm_token
.value = { 0 }
};
- pm_number_base_t number_base;
+ pm_integer_base_t integer_base = PM_INTEGER_BASE_DECIMAL;
switch (base) {
- case PM_INTEGER_BASE_FLAGS_BINARY: number_base = PM_NUMBER_BASE_BINARY; break;
- case PM_INTEGER_BASE_FLAGS_OCTAL: number_base = PM_NUMBER_BASE_OCTAL; break;
- case PM_INTEGER_BASE_FLAGS_DECIMAL: number_base = PM_NUMBER_BASE_DECIMAL; break;
- case PM_INTEGER_BASE_FLAGS_HEXADECIMAL: number_base = PM_NUMBER_BASE_HEXADECIMAL; break;
- default: assert(false && "unreachable");
+ case PM_INTEGER_BASE_FLAGS_BINARY: integer_base = PM_INTEGER_BASE_BINARY; break;
+ case PM_INTEGER_BASE_FLAGS_OCTAL: integer_base = PM_INTEGER_BASE_OCTAL; break;
+ case PM_INTEGER_BASE_FLAGS_DECIMAL: break;
+ case PM_INTEGER_BASE_FLAGS_HEXADECIMAL: integer_base = PM_INTEGER_BASE_HEXADECIMAL; break;
+ default: assert(false && "unreachable"); break;
}
- pm_number_parse(&node->value, number_base, token->start, token->end);
+ pm_integer_parse(&node->value, integer_base, token->start, token->end);
return node;
}
diff --git a/prism/prism.h b/prism/prism.h
index 88eb128769..f26ca0c784 100644
--- a/prism/prism.h
+++ b/prism/prism.h
@@ -9,8 +9,8 @@
#include "prism/defines.h"
#include "prism/util/pm_buffer.h"
#include "prism/util/pm_char.h"
+#include "prism/util/pm_integer.h"
#include "prism/util/pm_memchr.h"
-#include "prism/util/pm_number.h"
#include "prism/util/pm_strncasecmp.h"
#include "prism/util/pm_strpbrk.h"
#include "prism/ast.h"
diff --git a/prism/templates/ext/prism/api_node.c.erb b/prism/templates/ext/prism/api_node.c.erb
index 38288918d8..c669a4aac9 100644
--- a/prism/templates/ext/prism/api_node.c.erb
+++ b/prism/templates/ext/prism/api_node.c.erb
@@ -38,16 +38,16 @@ pm_string_new(const pm_string_t *string, rb_encoding *encoding) {
}
static VALUE
-pm_integer_new(const pm_number_t *number) {
- VALUE result = UINT2NUM(number->head.value);
+pm_integer_new(const pm_integer_t *integer) {
+ VALUE result = UINT2NUM(integer->head.value);
size_t shift = 0;
- for (const pm_number_node_t *node = number->head.next; node != NULL; node = node->next) {
+ for (const pm_integer_word_t *node = integer->head.next; node != NULL; node = node->next) {
VALUE receiver = rb_funcall(UINT2NUM(node->value), rb_intern("<<"), 1, ULONG2NUM(++shift * 32));
result = rb_funcall(receiver, rb_intern("|"), 1, result);
}
- if (number->negative) {
+ if (integer->negative) {
result = rb_funcall(result, rb_intern("-@"), 0);
}
diff --git a/prism/templates/include/prism/ast.h.erb b/prism/templates/include/prism/ast.h.erb
index e75fdd51ab..d1c94fe541 100644
--- a/prism/templates/include/prism/ast.h.erb
+++ b/prism/templates/include/prism/ast.h.erb
@@ -8,6 +8,7 @@
#include "prism/defines.h"
#include "prism/util/pm_constant_pool.h"
+#include "prism/util/pm_integer.h"
#include "prism/util/pm_string.h"
#include <assert.h>
@@ -183,7 +184,7 @@ typedef struct pm_<%= node.human %> {
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}"
- when Prism::IntegerField then "pm_number_t #{field.name}"
+ when Prism::IntegerField then "pm_integer_t #{field.name}"
else raise field.class.name
end
%>;
diff --git a/prism/templates/src/node.c.erb b/prism/templates/src/node.c.erb
index bc5eca43a0..082d1a3698 100644
--- a/prism/templates/src/node.c.erb
+++ b/prism/templates/src/node.c.erb
@@ -75,7 +75,7 @@ pm_node_destroy(pm_parser_t *parser, pm_node_t *node) {
<%- when Prism::ConstantListField -%>
pm_constant_id_list_free(&cast-><%= field.name %>);
<%- when Prism::IntegerField -%>
- pm_number_free(&cast-><%= field.name %>);
+ pm_integer_free(&cast-><%= field.name %>);
<%- else -%>
<%- raise -%>
<%- end -%>
@@ -121,7 +121,7 @@ pm_node_memsize_node(pm_node_t *node, pm_memsize_t *memsize) {
<%- when Prism::ConstantListField -%>
memsize->memsize += (pm_constant_id_list_memsize(&cast-><%= field.name %>) - sizeof(pm_constant_id_list_t));
<%- when Prism::IntegerField -%>
- memsize->memsize += (pm_number_memsize(&cast-><%= field.name %>) - sizeof(pm_number_t));
+ memsize->memsize += (pm_integer_memsize(&cast-><%= field.name %>) - sizeof(pm_integer_t));
<%- else -%>
<%- raise -%>
<%- end -%>
@@ -255,19 +255,19 @@ pm_dump_json(pm_buffer_t *buffer, const pm_parser_t *parser, const pm_node_t *no
pm_buffer_append_byte(buffer, ']');
<%- when Prism::IntegerField -%>
{
- const pm_number_t *number = &cast-><%= field.name %>;
- if (number->length == 0) {
- if (number->negative) pm_buffer_append_byte(buffer, '-');
- pm_buffer_append_string(buffer, "%" PRIu32, number->head.value);
- } else if (number->length == 1) {
- if (number->negative) pm_buffer_append_byte(buffer, '-');
- pm_buffer_append_format(buffer, "%" PRIu64, ((uint64_t) number->head.value) | (((uint64_t) number->head.next->value) << 32));
+ const pm_integer_t *integer = &cast-><%= field.name %>;
+ if (integer->length == 0) {
+ if (integer->negative) pm_buffer_append_byte(buffer, '-');
+ pm_buffer_append_string(buffer, "%" PRIu32, integer->head.value);
+ } else if (integer->length == 1) {
+ if (integer->negative) pm_buffer_append_byte(buffer, '-');
+ pm_buffer_append_format(buffer, "%" PRIu64, ((uint64_t) integer->head.value) | (((uint64_t) integer->head.next->value) << 32));
} else {
pm_buffer_append_byte(buffer, '{');
- pm_buffer_append_format(buffer, "\"negative\": %s", number->negative ? "true" : "false");
+ pm_buffer_append_format(buffer, "\"negative\": %s", integer->negative ? "true" : "false");
pm_buffer_append_string(buffer, ",\"values\":[", 11);
- const pm_number_node_t *node = &number->head;
+ const pm_integer_word_t *node = &integer->head;
while (node != NULL) {
pm_buffer_append_format(buffer, "%" PRIu32, node->value);
node = node->next;
diff --git a/prism/templates/src/prettyprint.c.erb b/prism/templates/src/prettyprint.c.erb
index 799e8b91ef..dafe3671f1 100644
--- a/prism/templates/src/prettyprint.c.erb
+++ b/prism/templates/src/prettyprint.c.erb
@@ -127,19 +127,19 @@ prettyprint_node(pm_buffer_t *output_buffer, const pm_parser_t *parser, const pm
if (!found) pm_buffer_append_string(output_buffer, " nil", 4);
pm_buffer_append_byte(output_buffer, '\n');
<%- when Prism::IntegerField -%>
- const pm_number_t *number = &cast-><%= field.name %>;
- if (number->length == 0) {
+ const pm_integer_t *integer = &cast-><%= field.name %>;
+ if (integer->length == 0) {
pm_buffer_append_byte(output_buffer, ' ');
- if (number->negative) pm_buffer_append_byte(output_buffer, '-');
- pm_buffer_append_string(output_buffer, "%" PRIu32 "\n", number->head.value);
- } else if (number->length == 1) {
+ if (integer->negative) pm_buffer_append_byte(output_buffer, '-');
+ pm_buffer_append_format(output_buffer, "%" PRIu32 "\n", integer->head.value);
+ } else if (integer->length == 1) {
pm_buffer_append_byte(output_buffer, ' ');
- if (number->negative) pm_buffer_append_byte(output_buffer, '-');
- pm_buffer_append_string(output_buffer, "%" PRIu64 "\n", ((uint64_t) number->head.value) | (((uint64_t) number->head.next->value) << 32));
+ if (integer->negative) pm_buffer_append_byte(output_buffer, '-');
+ pm_buffer_append_format(output_buffer, "%" PRIu64 "\n", ((uint64_t) integer->head.value) | (((uint64_t) integer->head.next->value) << 32));
} else {
pm_buffer_append_byte(output_buffer, ' ');
- const pm_number_node_t *node = &number->head;
+ const pm_integer_word_t *node = &integer->head;
uint32_t index = 0;
while (node != NULL) {
diff --git a/prism/templates/src/serialize.c.erb b/prism/templates/src/serialize.c.erb
index cfa82d96f5..9e0fe1e4e8 100644
--- a/prism/templates/src/serialize.c.erb
+++ b/prism/templates/src/serialize.c.erb
@@ -50,11 +50,11 @@ pm_serialize_string(const pm_parser_t *parser, const pm_string_t *string, pm_buf
}
static void
-pm_serialize_integer(const pm_number_t *number, pm_buffer_t *buffer) {
- pm_buffer_append_byte(buffer, number->negative ? 1 : 0);
- pm_buffer_append_varuint(buffer, pm_sizet_to_u32(number->length + 1));
+pm_serialize_integer(const pm_integer_t *integer, pm_buffer_t *buffer) {
+ pm_buffer_append_byte(buffer, integer->negative ? 1 : 0);
+ pm_buffer_append_varuint(buffer, pm_sizet_to_u32(integer->length + 1));
- for (const pm_number_node_t *node = &number->head; node != NULL; node = node->next) {
+ for (const pm_integer_word_t *node = &integer->head; node != NULL; node = node->next) {
pm_buffer_append_varuint(buffer, node->value);
}
}
diff --git a/prism/templates/template.rb b/prism/templates/template.rb
index be769c2ddd..8e20042bb8 100755
--- a/prism/templates/template.rb
+++ b/prism/templates/template.rb
@@ -266,7 +266,7 @@ module Prism
end
def java_type
- "VariableInteger"
+ "Object"
end
end
diff --git a/prism/util/pm_integer.c b/prism/util/pm_integer.c
new file mode 100644
index 0000000000..f08078356a
--- /dev/null
+++ b/prism/util/pm_integer.c
@@ -0,0 +1,176 @@
+#include "prism/util/pm_integer.h"
+
+/**
+ * Create a new node for an integer in the linked list.
+ */
+static pm_integer_word_t *
+pm_integer_node_create(pm_integer_t *integer, uint32_t value) {
+ integer->length++;
+
+ pm_integer_word_t *node = malloc(sizeof(pm_integer_word_t));
+ if (node == NULL) return NULL;
+
+ *node = (pm_integer_word_t) { .next = NULL, .value = value };
+ return node;
+}
+
+/**
+ * Add a 32-bit integer to an integer.
+ */
+static void
+pm_integer_add(pm_integer_t *integer, uint32_t addend) {
+ uint32_t carry = addend;
+ pm_integer_word_t *current = &integer->head;
+
+ while (carry > 0) {
+ uint64_t result = (uint64_t) current->value + carry;
+ carry = (uint32_t) (result >> 32);
+ current->value = (uint32_t) result;
+
+ if (carry > 0) {
+ if (current->next == NULL) {
+ current->next = pm_integer_node_create(integer, carry);
+ break;
+ }
+
+ current = current->next;
+ }
+ }
+}
+
+/**
+ * Multiple an integer by a 32-bit integer. In practice, the multiplier is the
+ * base of the integer, so this is 2, 8, 10, or 16.
+ */
+static void
+pm_integer_multiply(pm_integer_t *integer, uint32_t multiplier) {
+ uint32_t carry = 0;
+
+ for (pm_integer_word_t *current = &integer->head; current != NULL; current = current->next) {
+ uint64_t result = (uint64_t) current->value * multiplier + carry;
+ carry = (uint32_t) (result >> 32);
+ current->value = (uint32_t) result;
+
+ if (carry > 0 && current->next == NULL) {
+ current->next = pm_integer_node_create(integer, carry);
+ break;
+ }
+ }
+}
+
+/**
+ * Return the value of a digit in a uint32_t.
+ */
+static uint32_t
+pm_integer_parse_digit(const uint8_t character) {
+ switch (character) {
+ case '0': return 0;
+ case '1': return 1;
+ case '2': return 2;
+ case '3': return 3;
+ case '4': return 4;
+ case '5': return 5;
+ case '6': return 6;
+ case '7': return 7;
+ case '8': return 8;
+ case '9': return 9;
+ case 'a': case 'A': return 10;
+ case 'b': case 'B': return 11;
+ case 'c': case 'C': return 12;
+ case 'd': case 'D': return 13;
+ case 'e': case 'E': return 14;
+ case 'f': case 'F': return 15;
+ default: assert(false && "unreachable"); return 0;
+ }
+}
+
+/**
+ * Parse an integer from a string. This assumes that the format of the integer
+ * has already been validated, as internal validation checks are not performed
+ * here.
+ */
+PRISM_EXPORTED_FUNCTION void
+pm_integer_parse(pm_integer_t *integer, pm_integer_base_t base, const uint8_t *start, const uint8_t *end) {
+ // Ignore unary +. Unary + is parsed differently and will not end up here.
+ // Instead, it will modify the parsed integer later.
+ if (*start == '+') start++;
+
+ // Determine the multiplier from the base, and skip past any prefixes.
+ uint32_t multiplier = 10;
+ switch (base) {
+ case PM_INTEGER_BASE_BINARY:
+ start += 2; // 0b
+ multiplier = 2;
+ break;
+ case PM_INTEGER_BASE_OCTAL:
+ start++; // 0
+ if (*start == '_' || *start == 'o' || *start == 'O') start++; // o
+ multiplier = 8;
+ break;
+ case PM_INTEGER_BASE_DECIMAL:
+ if (*start == '0' && (end - start) > 1) start += 2; // 0d
+ break;
+ case PM_INTEGER_BASE_HEXADECIMAL:
+ start += 2; // 0x
+ multiplier = 16;
+ break;
+ case PM_INTEGER_BASE_UNKNOWN:
+ if (*start == '0' && (end - start) > 1) {
+ switch (start[1]) {
+ case '_': start += 2; multiplier = 8; break;
+ case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': start++; multiplier = 8; break;
+ case 'b': case 'B': start += 2; multiplier = 2; break;
+ case 'o': case 'O': start += 2; multiplier = 8; break;
+ case 'd': case 'D': start += 2; break;
+ case 'x': case 'X': start += 2; multiplier = 16; break;
+ default: assert(false && "unreachable"); break;
+ }
+ }
+ break;
+ }
+
+ // It's possible that we've consumed everything at this point if there is an
+ // invalid integer. If this is the case, we'll just return 0.
+ if (start >= end) return;
+
+ // Add the first digit to the integer.
+ pm_integer_add(integer, pm_integer_parse_digit(*start++));
+
+ // Add the subsequent digits to the integer.
+ for (; start < end; start++) {
+ if (*start == '_') continue;
+ pm_integer_multiply(integer, multiplier);
+ pm_integer_add(integer, pm_integer_parse_digit(*start));
+ }
+}
+
+/**
+ * Return the memory size of the integer.
+ */
+size_t
+pm_integer_memsize(const pm_integer_t *integer) {
+ return sizeof(pm_integer_t) + integer->length * sizeof(pm_integer_word_t);
+}
+
+/**
+ * Recursively destroy the linked list of an integer.
+ */
+static void
+pm_integer_word_destroy(pm_integer_word_t *integer) {
+ if (integer->next != NULL) {
+ pm_integer_word_destroy(integer->next);
+ }
+
+ free(integer);
+}
+
+/**
+ * Free the internal memory of an integer. This memory will only be allocated if
+ * the integer exceeds the size of a single node in the linked list.
+ */
+PRISM_EXPORTED_FUNCTION void
+pm_integer_free(pm_integer_t *integer) {
+ if (integer->head.next) {
+ pm_integer_word_destroy(integer->head.next);
+ }
+}
diff --git a/prism/util/pm_integer.h b/prism/util/pm_integer.h
new file mode 100644
index 0000000000..5525adabb0
--- /dev/null
+++ b/prism/util/pm_integer.h
@@ -0,0 +1,104 @@
+/**
+ * @file pm_integer.h
+ *
+ * This module provides functions for working with arbitrary-sized integers.
+ */
+#ifndef PRISM_NUMBER_H
+#define PRISM_NUMBER_H
+
+#include "prism/defines.h"
+
+#include <assert.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdlib.h>
+
+/**
+ * A node in the linked list of a pm_integer_t.
+ */
+typedef struct pm_integer_word {
+ /** A pointer to the next node in the list. */
+ struct pm_integer_word *next;
+
+ /** The value of the node. */
+ uint32_t value;
+} pm_integer_word_t;
+
+/**
+ * This structure represents an arbitrary-sized integer. It is implemented as a
+ * linked list of 32-bit integers, with the least significant digit at the head
+ * of the list.
+ */
+typedef struct {
+ /** The number of nodes in the linked list that have been allocated. */
+ size_t length;
+
+ /**
+ * The head of the linked list, embedded directly so that allocations do not
+ * need to be performed for small integers.
+ */
+ pm_integer_word_t head;
+
+ /**
+ * Whether or not the integer is negative. It is stored this way so that a
+ * zeroed pm_integer_t is always positive zero.
+ */
+ bool negative;
+} pm_integer_t;
+
+/**
+ * An enum controlling the base of an integer. It is expected that the base is
+ * already known before parsing the integer, even though it could be derived
+ * from the string itself.
+ */
+typedef enum {
+ /** The binary base, indicated by a 0b or 0B prefix. */
+ PM_INTEGER_BASE_BINARY,
+
+ /** The octal base, indicated by a 0, 0o, or 0O prefix. */
+ PM_INTEGER_BASE_OCTAL,
+
+ /** The decimal base, indicated by a 0d, 0D, or empty prefix. */
+ PM_INTEGER_BASE_DECIMAL,
+
+ /** The hexidecimal base, indicated by a 0x or 0X prefix. */
+ PM_INTEGER_BASE_HEXADECIMAL,
+
+ /**
+ * An unknown base, in which case pm_integer_parse will derive it based on
+ * the content of the string. This is less efficient and does more
+ * comparisons, so if callers know the base ahead of time, they should use
+ * that instead.
+ */
+ PM_INTEGER_BASE_UNKNOWN
+} pm_integer_base_t;
+
+/**
+ * Parse an integer from a string. This assumes that the format of the integer
+ * has already been validated, as internal validation checks are not performed
+ * here.
+ *
+ * @param integer The integer to parse into.
+ * @param base The base of the integer.
+ * @param start The start of the string.
+ * @param end The end of the string.
+ */
+PRISM_EXPORTED_FUNCTION void pm_integer_parse(pm_integer_t *integer, pm_integer_base_t base, const uint8_t *start, const uint8_t *end);
+
+/**
+ * Return the memory size of the integer.
+ *
+ * @param integer The integer to get the memory size of.
+ * @return The size of the memory associated with the integer.
+ */
+size_t pm_integer_memsize(const pm_integer_t *integer);
+
+/**
+ * Free the internal memory of an integer. This memory will only be allocated if
+ * the integer exceeds the size of a single node in the linked list.
+ *
+ * @param integer The integer to free.
+ */
+PRISM_EXPORTED_FUNCTION void pm_integer_free(pm_integer_t *integer);
+
+#endif
diff --git a/prism/util/pm_number.c b/prism/util/pm_number.c
deleted file mode 100644
index 6f0a13ae8e..0000000000
--- a/prism/util/pm_number.c
+++ /dev/null
@@ -1,174 +0,0 @@
-#include "prism/util/pm_number.h"
-
-/**
- * Create a new node for a number in the linked list.
- */
-static pm_number_node_t *
-pm_number_node_create(pm_number_t *number, uint32_t value) {
- number->length++;
- pm_number_node_t *node = malloc(sizeof(pm_number_node_t));
- *node = (pm_number_node_t) { .next = NULL, .value = value };
- return node;
-}
-
-/**
- * Add a 32-bit integer to a number.
- */
-static void
-pm_number_add(pm_number_t *number, uint32_t addend) {
- uint32_t carry = addend;
- pm_number_node_t *current = &number->head;
-
- while (carry > 0) {
- uint64_t result = (uint64_t) current->value + carry;
- carry = (uint32_t) (result >> 32);
- current->value = (uint32_t) result;
-
- if (carry > 0) {
- if (current->next == NULL) {
- current->next = pm_number_node_create(number, carry);
- break;
- }
-
- current = current->next;
- }
- }
-}
-
-/**
- * Multiple a number by a 32-bit integer. In practice, the multiplier is the
- * base of the number, so this is 2, 8, 10, or 16.
- */
-static void
-pm_number_multiply(pm_number_t *number, uint32_t multiplier) {
- uint32_t carry = 0;
-
- for (pm_number_node_t *current = &number->head; current != NULL; current = current->next) {
- uint64_t result = (uint64_t) current->value * multiplier + carry;
- carry = (uint32_t) (result >> 32);
- current->value = (uint32_t) result;
-
- if (carry > 0 && current->next == NULL) {
- current->next = pm_number_node_create(number, carry);
- break;
- }
- }
-}
-
-/**
- * Return the value of a digit in a number.
- */
-static uint32_t
-pm_number_parse_digit(const uint8_t character) {
- switch (character) {
- case '0': return 0;
- case '1': return 1;
- case '2': return 2;
- case '3': return 3;
- case '4': return 4;
- case '5': return 5;
- case '6': return 6;
- case '7': return 7;
- case '8': return 8;
- case '9': return 9;
- case 'a': case 'A': return 10;
- case 'b': case 'B': return 11;
- case 'c': case 'C': return 12;
- case 'd': case 'D': return 13;
- case 'e': case 'E': return 14;
- case 'f': case 'F': return 15;
- default: assert(false && "unreachable");
- }
-}
-
-/**
- * Parse a number from a string. This assumes that the format of the number has
- * already been validated, as internal validation checks are not performed here.
- */
-PRISM_EXPORTED_FUNCTION void
-pm_number_parse(pm_number_t *number, pm_number_base_t base, const uint8_t *start, const uint8_t *end) {
- // Ignore unary +. Unary + is parsed differently and will not end up here.
- // Instead, it will modify the parsed number later.
- if (*start == '+') start++;
-
- // Determine the multiplier from the base, and skip past any prefixes.
- uint32_t multiplier;
- switch (base) {
- case PM_NUMBER_BASE_BINARY:
- start += 2; // 0b
- multiplier = 2;
- break;
- case PM_NUMBER_BASE_OCTAL:
- start++; // 0
- if (*start == 'o' || *start == 'O') start++; // o
- multiplier = 8;
- break;
- case PM_NUMBER_BASE_DECIMAL:
- if (*start == '0' && (end - start) > 1) start += 2; // 0d
- multiplier = 10;
- break;
- case PM_NUMBER_BASE_HEXADECIMAL:
- start += 2; // 0x
- multiplier = 16;
- break;
- case PM_NUMBER_BASE_UNKNOWN:
- if (*start == '0' && (end - start) > 1) {
- switch (start[1]) {
- case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': start++; multiplier = 8; break;
- case 'b': case 'B': start += 2; multiplier = 2; break;
- case 'o': case 'O': start += 2; multiplier = 8; break;
- case 'd': case 'D': start += 2; multiplier = 10; break;
- case 'x': case 'X': start += 2; multiplier = 16; break;
- default: assert(false && "unreachable");
- }
- } else {
- multiplier = 10;
- }
- break;
- }
-
- // It's possible that we've consumed everything at this point if there is an
- // invalid number. If this is the case, we'll just return 0.
- if (start >= end) return;
-
- // Add the first digit to the number.
- pm_number_add(number, pm_number_parse_digit(*start++));
-
- // Add the subsequent digits to the number.
- for (; start < end; start++) {
- if (*start == '_') continue;
- pm_number_multiply(number, multiplier);
- pm_number_add(number, pm_number_parse_digit(*start));
- }
-}
-
-/**
- * Return the memory size of the number.
- */
-size_t
-pm_number_memsize(const pm_number_t *number) {
- return sizeof(pm_number_t) + number->length * sizeof(pm_number_node_t);
-}
-
-/**
- * Recursively destroy the linked list of a number.
- */
-static void
-pm_number_node_destroy(pm_number_node_t *number) {
- if (number->next != NULL) {
- pm_number_node_destroy(number->next);
- }
-
- free(number);
-}
-
-/**
- * Free the internal memory of a number. This memory will only be allocated if
- * the number exceeds the size of a single node in the linked list.
- */
-PRISM_EXPORTED_FUNCTION void
-pm_number_free(pm_number_t *number) {
- if (number->head.next) {
- pm_number_node_destroy(number->head.next);
- }
-}
diff --git a/prism/util/pm_number.h b/prism/util/pm_number.h
deleted file mode 100644
index 04404ffa0d..0000000000
--- a/prism/util/pm_number.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/**
- * @file pm_number.h
- *
- * This module provides functions for working with arbitrary-sized numbers.
- */
-#ifndef PRISM_NUMBER_H
-#define PRISM_NUMBER_H
-
-#include "prism/defines.h"
-
-#include <assert.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-
-/**
- * A node in the linked list of a pm_number_t.
- */
-typedef struct pm_number_node {
- /** A pointer to the next node in the list. */
- struct pm_number_node *next;
-
- /** The value of the node. */
- uint32_t value;
-} pm_number_node_t;
-
-/**
- * This structure represents an arbitrary-sized number. It is implemented as a
- * linked list of 32-bit integers, with the least significant digit at the head
- * of the list.
- */
-typedef struct {
- /**
- * The head of the linked list, embedded directly so that allocations do not
- * need to be performed for small numbers.
- */
- pm_number_node_t head;
-
- /** The number of nodes in the linked list that have been allocated. */
- size_t length;
-
- /**
- * Whether or not the number is negative. It is stored this way so that a
- * zeroed pm_number_t is always positive zero.
- */
- bool negative;
-} pm_number_t;
-
-/**
- * An enum controlling the base of a number. It is expected that the base is
- * already known before parsing the number, even though it could be derived from
- * the string itself.
- */
-typedef enum {
- /** The binary base, indicated by a 0b or 0B prefix. */
- PM_NUMBER_BASE_BINARY,
-
- /** The octal base, indicated by a 0, 0o, or 0O prefix. */
- PM_NUMBER_BASE_OCTAL,
-
- /** The decimal base, indicated by a 0d, 0D, or empty prefix. */
- PM_NUMBER_BASE_DECIMAL,
-
- /** The hexidecimal base, indicated by a 0x or 0X prefix. */
- PM_NUMBER_BASE_HEXADECIMAL,
-
- /**
- * An unknown base, in which case pm_number_parse will derive it based on
- * the content of the string. This is less efficient and does more
- * comparisons, so if callers know the base ahead of time, they should use
- * that instead.
- */
- PM_NUMBER_BASE_UNKNOWN
-} pm_number_base_t;
-
-/**
- * Parse a number from a string. This assumes that the format of the number has
- * already been validated, as internal validation checks are not performed here.
- *
- * @param number The number to parse into.
- * @param base The base of the number.
- * @param start The start of the string.
- * @param end The end of the string.
- */
-PRISM_EXPORTED_FUNCTION void pm_number_parse(pm_number_t *number, pm_number_base_t base, const uint8_t *start, const uint8_t *end);
-
-/**
- * Return the memory size of the number.
- *
- * @param number The number to get the memory size of.
- * @return The size of the memory associated with the number.
- */
-size_t pm_number_memsize(const pm_number_t *number);
-
-/**
- * Free the internal memory of a number. This memory will only be allocated if
- * the number exceeds the size of a single node in the linked list.
- *
- * @param number The number to free.
- */
-PRISM_EXPORTED_FUNCTION void pm_number_free(pm_number_t *number);
-
-#endif
diff --git a/test/prism/integer_parse_test.rb b/test/prism/integer_parse_test.rb
new file mode 100644
index 0000000000..756f667b96
--- /dev/null
+++ b/test/prism/integer_parse_test.rb
@@ -0,0 +1,37 @@
+# frozen_string_literal: true
+
+require_relative "test_helper"
+
+return if Prism::BACKEND == :FFI
+
+module Prism
+ class IntegerParseTest < TestCase
+ def test_integer_parse
+ assert_integer_parse(1)
+ assert_integer_parse(50)
+ assert_integer_parse(100)
+ assert_integer_parse(100, "1_0_0")
+ assert_integer_parse(8, "0_1_0")
+
+ assert_integer_parse(10, "0b1010")
+ assert_integer_parse(10, "0B1010")
+ assert_integer_parse(10, "0o12")
+ assert_integer_parse(10, "0O12")
+ assert_integer_parse(10, "012")
+ assert_integer_parse(10, "0d10")
+ assert_integer_parse(10, "0D10")
+ assert_integer_parse(10, "0xA")
+ assert_integer_parse(10, "0XA")
+
+ assert_integer_parse(2**32)
+ assert_integer_parse(2**64 + 2**32)
+ assert_integer_parse(2**128 + 2**64 + 2**32)
+ end
+
+ private
+
+ def assert_integer_parse(expected, source = expected.to_s)
+ assert_equal expected, Debug.integer_parse(source)
+ end
+ end
+end
diff --git a/test/prism/number_parse_test.rb b/test/prism/number_parse_test.rb
deleted file mode 100644
index 401aead243..0000000000
--- a/test/prism/number_parse_test.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# frozen_string_literal: true
-
-require_relative "test_helper"
-
-return if Prism::BACKEND == :FFI
-
-module Prism
- class NumberParseTest < TestCase
- def test_number_parse
- assert_number_parse(1)
- assert_number_parse(50)
- assert_number_parse(100)
- assert_number_parse(100, "1_0_0")
-
- assert_number_parse(10, "0b1010")
- assert_number_parse(10, "0B1010")
- assert_number_parse(10, "0o12")
- assert_number_parse(10, "0O12")
- assert_number_parse(10, "012")
- assert_number_parse(10, "0d10")
- assert_number_parse(10, "0D10")
- assert_number_parse(10, "0xA")
- assert_number_parse(10, "0XA")
-
- assert_number_parse(2**32)
- assert_number_parse(2**64 + 2**32)
- assert_number_parse(2**128 + 2**64 + 2**32)
- end
-
- private
-
- def assert_number_parse(expected, source = expected.to_s)
- assert_equal expected, Debug.number_parse(source)
- end
- end
-end
diff --git a/test/prism/snapshots/alias.txt b/test/prism/snapshots/alias.txt
index c2ddc9d2da..687082d85e 100644
--- a/test/prism/snapshots/alias.txt
+++ b/test/prism/snapshots/alias.txt
@@ -68,7 +68,8 @@
│ │ │ │ @ StatementsNode (location: (7,13)-(7,14))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (7,13)-(7,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (7,14)-(7,15) = "}"
│ │ └── closing_loc: (7,15)-(7,16) = "\""
│ ├── old_name:
diff --git a/test/prism/snapshots/arithmetic.txt b/test/prism/snapshots/arithmetic.txt
index b5fca69506..c8a31c3d70 100644
--- a/test/prism/snapshots/arithmetic.txt
+++ b/test/prism/snapshots/arithmetic.txt
@@ -218,7 +218,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (11,1)-(11,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :**
│ │ ├── message_loc: (11,2)-(11,4) = "**"
@@ -228,7 +229,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (11,4)-(11,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
@@ -242,7 +244,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (13,0)-(13,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: -1
├── call_operator_loc: (13,2)-(13,3) = "."
├── name: :zero?
├── message_loc: (13,3)-(13,8) = "zero?"
diff --git a/test/prism/snapshots/arrays.txt b/test/prism/snapshots/arrays.txt
index 0cd77eab29..1cf6b22697 100644
--- a/test/prism/snapshots/arrays.txt
+++ b/test/prism/snapshots/arrays.txt
@@ -66,11 +66,14 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 3)
│ │ │ ├── @ IntegerNode (location: (3,16)-(3,17))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ IntegerNode (location: (3,19)-(3,20))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (3,22)-(3,23))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ ├── closing_loc: (3,12)-(3,13) = "]"
@@ -132,7 +135,8 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "c"
│ │ ├── @ IntegerNode (location: (10,3)-(10,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ SymbolNode (location: (14,0)-(14,2))
│ │ ├── flags: forced_us_ascii_encoding
│ │ ├── opening_loc: (14,0)-(14,1) = ":"
@@ -163,7 +167,8 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "c"
│ │ ├── @ IntegerNode (location: (19,3)-(19,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ SymbolNode (location: (23,0)-(23,2))
│ │ ├── flags: forced_us_ascii_encoding
│ │ ├── opening_loc: (23,0)-(23,1) = ":"
@@ -448,7 +453,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (41,4)-(41,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ ├── closing_loc: (41,5)-(41,6) = "]"
│ │ │ └── block: ∅
│ │ └── @ IndexTargetNode (location: (41,8)-(41,14))
@@ -470,7 +476,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (41,12)-(41,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 0
│ │ ├── closing_loc: (41,13)-(41,14) = "]"
│ │ └── block: ∅
│ ├── rest: ∅
@@ -483,9 +490,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (41,17)-(41,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (41,20)-(41,21))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ CallNode (location: (43,0)-(43,19))
@@ -670,7 +679,8 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (53,1)-(53,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ KeywordHashNode (location: (53,4)-(53,8))
│ │ ├── flags: ∅
│ │ └── elements: (length: 1)
@@ -693,7 +703,8 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (55,1)-(55,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ KeywordHashNode (location: (55,4)-(55,20))
│ │ ├── flags: ∅
│ │ └── elements: (length: 3)
@@ -953,7 +964,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (84,12)-(84,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (84,8)-(84,9) = "]"
│ └── block:
│ @ BlockArgumentNode (location: (84,4)-(84,8))
@@ -1001,7 +1013,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (86,16)-(86,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (86,12)-(86,13) = "]"
│ └── block:
│ @ BlockArgumentNode (location: (86,8)-(86,12))
@@ -1060,7 +1073,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (89,11)-(89,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (89,7)-(89,8) = "]"
│ │ └── block:
│ │ @ BlockArgumentNode (location: (89,6)-(89,7))
@@ -1095,7 +1109,8 @@
│ ├── operator_loc: (92,6)-(92,8) = "+="
│ └── value:
│ @ IntegerNode (location: (92,9)-(92,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOrWriteNode (location: (94,0)-(94,11))
│ ├── flags: ∅
│ ├── receiver:
@@ -1117,7 +1132,8 @@
│ ├── operator_loc: (94,6)-(94,9) = "||="
│ └── value:
│ @ IntegerNode (location: (94,10)-(94,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexAndWriteNode (location: (96,0)-(96,11))
│ ├── flags: ∅
│ ├── receiver:
@@ -1139,7 +1155,8 @@
│ ├── operator_loc: (96,6)-(96,9) = "&&="
│ └── value:
│ @ IntegerNode (location: (96,10)-(96,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOperatorWriteNode (location: (98,0)-(98,14))
│ ├── flags: ∅
│ ├── receiver:
@@ -1172,7 +1189,8 @@
│ ├── operator_loc: (98,10)-(98,12) = "+="
│ └── value:
│ @ IntegerNode (location: (98,13)-(98,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOrWriteNode (location: (100,0)-(100,15))
│ ├── flags: ∅
│ ├── receiver:
@@ -1204,7 +1222,8 @@
│ ├── operator_loc: (100,10)-(100,13) = "||="
│ └── value:
│ @ IntegerNode (location: (100,14)-(100,15))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexAndWriteNode (location: (102,0)-(102,15))
│ ├── flags: ∅
│ ├── receiver:
@@ -1236,7 +1255,8 @@
│ ├── operator_loc: (102,10)-(102,13) = "&&="
│ └── value:
│ @ IntegerNode (location: (102,14)-(102,15))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOperatorWriteNode (location: (104,0)-(104,13))
│ ├── flags: ∅
│ ├── receiver:
@@ -1272,7 +1292,8 @@
│ ├── operator_loc: (104,9)-(104,11) = "+="
│ └── value:
│ @ IntegerNode (location: (104,12)-(104,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOrWriteNode (location: (106,0)-(106,14))
│ ├── flags: ∅
│ ├── receiver:
@@ -1307,7 +1328,8 @@
│ ├── operator_loc: (106,9)-(106,12) = "||="
│ └── value:
│ @ IntegerNode (location: (106,13)-(106,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexAndWriteNode (location: (108,0)-(108,14))
│ ├── flags: ∅
│ ├── receiver:
@@ -1342,7 +1364,8 @@
│ ├── operator_loc: (108,9)-(108,12) = "&&="
│ └── value:
│ @ IntegerNode (location: (108,13)-(108,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOperatorWriteNode (location: (110,0)-(110,17))
│ ├── flags: ∅
│ ├── receiver:
@@ -1388,7 +1411,8 @@
│ ├── operator_loc: (110,13)-(110,15) = "+="
│ └── value:
│ @ IntegerNode (location: (110,16)-(110,17))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOrWriteNode (location: (112,0)-(112,18))
│ ├── flags: ∅
│ ├── receiver:
@@ -1433,7 +1457,8 @@
│ ├── operator_loc: (112,13)-(112,16) = "||="
│ └── value:
│ @ IntegerNode (location: (112,17)-(112,18))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexAndWriteNode (location: (114,0)-(114,18))
│ ├── flags: ∅
│ ├── receiver:
@@ -1478,7 +1503,8 @@
│ ├── operator_loc: (114,13)-(114,16) = "&&="
│ └── value:
│ @ IntegerNode (location: (114,17)-(114,18))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOperatorWriteNode (location: (116,0)-(116,19))
│ ├── flags: ∅
│ ├── receiver:
@@ -1527,7 +1553,8 @@
│ ├── operator_loc: (116,15)-(116,17) = "+="
│ └── value:
│ @ IntegerNode (location: (116,18)-(116,19))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOrWriteNode (location: (118,0)-(118,20))
│ ├── flags: ∅
│ ├── receiver:
@@ -1575,7 +1602,8 @@
│ ├── operator_loc: (118,15)-(118,18) = "||="
│ └── value:
│ @ IntegerNode (location: (118,19)-(118,20))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexAndWriteNode (location: (120,0)-(120,20))
│ ├── flags: ∅
│ ├── receiver:
@@ -1623,7 +1651,8 @@
│ ├── operator_loc: (120,15)-(120,18) = "&&="
│ └── value:
│ @ IntegerNode (location: (120,19)-(120,20))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOperatorWriteNode (location: (122,0)-(122,23))
│ ├── flags: ∅
│ ├── receiver:
@@ -1682,7 +1711,8 @@
│ ├── operator_loc: (122,19)-(122,21) = "+="
│ └── value:
│ @ IntegerNode (location: (122,22)-(122,23))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexOrWriteNode (location: (124,0)-(124,24))
│ ├── flags: ∅
│ ├── receiver:
@@ -1740,7 +1770,8 @@
│ ├── operator_loc: (124,19)-(124,22) = "||="
│ └── value:
│ @ IntegerNode (location: (124,23)-(124,24))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IndexAndWriteNode (location: (126,0)-(126,24))
│ ├── flags: ∅
│ ├── receiver:
@@ -1798,7 +1829,8 @@
│ ├── operator_loc: (126,19)-(126,22) = "&&="
│ └── value:
│ @ IntegerNode (location: (126,23)-(126,24))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ DefNode (location: (128,0)-(128,19))
│ ├── name: :f
│ ├── name_loc: (128,4)-(128,5) = "f"
@@ -1896,7 +1928,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ IntegerNode (location: (130,12)-(130,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ SplatNode (location: (130,15)-(130,16))
│ │ │ ├── operator_loc: (130,15)-(130,16) = "*"
│ │ │ └── expression: ∅
@@ -1955,7 +1988,8 @@
│ │ │ │ ├── operator_loc: (132,12)-(132,13) = "*"
│ │ │ │ └── expression: ∅
│ │ │ └── @ IntegerNode (location: (132,17)-(132,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (132,13)-(132,14) = "]"
│ │ └── block: ∅
│ ├── locals: []
@@ -2008,12 +2042,14 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 3)
│ │ │ ├── @ IntegerNode (location: (134,12)-(134,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ SplatNode (location: (134,15)-(134,16))
│ │ │ │ ├── operator_loc: (134,15)-(134,16) = "*"
│ │ │ │ └── expression: ∅
│ │ │ └── @ IntegerNode (location: (134,20)-(134,21))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (134,16)-(134,17) = "]"
│ │ └── block: ∅
│ ├── locals: []
@@ -2072,7 +2108,8 @@
│ │ ├── operator_loc: (136,15)-(136,17) = "+="
│ │ └── value:
│ │ @ IntegerNode (location: (136,18)-(136,19))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── locals: []
│ ├── def_keyword_loc: (136,0)-(136,3) = "def"
│ ├── operator_loc: ∅
@@ -2121,7 +2158,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ IntegerNode (location: (138,12)-(138,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ SplatNode (location: (138,15)-(138,16))
│ │ │ ├── operator_loc: (138,15)-(138,16) = "*"
│ │ │ └── expression: ∅
@@ -2130,7 +2168,8 @@
│ │ ├── operator_loc: (138,18)-(138,21) = "&&="
│ │ └── value:
│ │ @ IntegerNode (location: (138,22)-(138,23))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── locals: []
│ ├── def_keyword_loc: (138,0)-(138,3) = "def"
│ ├── operator_loc: ∅
@@ -2248,7 +2287,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 2)
│ │ │ │ ├── @ IntegerNode (location: (142,22)-(142,23))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── @ SplatNode (location: (142,25)-(142,26))
│ │ │ │ ├── operator_loc: (142,25)-(142,26) = "*"
│ │ │ │ └── expression: ∅
diff --git a/test/prism/snapshots/blocks.txt b/test/prism/snapshots/blocks.txt
index 52a7b3990d..0b1ec52e38 100644
--- a/test/prism/snapshots/blocks.txt
+++ b/test/prism/snapshots/blocks.txt
@@ -127,7 +127,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (7,9)-(7,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ ├── closing_loc: (7,10)-(7,11) = ")"
│ └── block:
│ @ BlockNode (location: (7,12)-(7,35))
@@ -345,7 +346,8 @@
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (17,14)-(17,15))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── closing_loc: (17,15)-(17,16) = "]"
│ │ │ │ └── block: ∅
│ │ │ ├── rest: ∅
@@ -520,7 +522,8 @@
│ │ │ │ ├── operator_loc: (33,12)-(33,13) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (33,14)-(33,15))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
@@ -579,7 +582,8 @@
│ ├── name_loc: (37,0)-(37,4) = "fork"
│ ├── value:
│ │ @ IntegerNode (location: (37,7)-(37,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (37,5)-(37,6) = "="
├── @ CallNode (location: (38,0)-(39,3))
│ ├── flags: ignore_visibility
@@ -715,14 +719,16 @@
│ │ │ │ │ │ ├── name_loc: (49,2)-(49,4) = "a:"
│ │ │ │ │ │ └── value:
│ │ │ │ │ │ @ IntegerNode (location: (49,5)-(49,6))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ └── @ OptionalKeywordParameterNode (location: (50,2)-(50,6))
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ ├── name: :b
│ │ │ │ │ ├── name_loc: (50,2)-(50,4) = "b:"
│ │ │ │ │ └── value:
│ │ │ │ │ @ IntegerNode (location: (50,5)-(50,6))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 2
│ │ │ │ ├── keyword_rest: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── locals: (length: 0)
diff --git a/test/prism/snapshots/break.txt b/test/prism/snapshots/break.txt
index b7d891f0d6..984b9f7f22 100644
--- a/test/prism/snapshots/break.txt
+++ b/test/prism/snapshots/break.txt
@@ -16,7 +16,8 @@
│ │ │ │ @ StatementsNode (location: (3,7)-(3,8))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (3,7)-(3,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── opening_loc: (3,6)-(3,7) = "("
│ │ │ └── closing_loc: (3,8)-(3,9) = ")"
│ │ ├── @ ParenthesesNode (location: (3,11)-(3,14))
@@ -24,7 +25,8 @@
│ │ │ │ @ StatementsNode (location: (3,12)-(3,13))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (3,12)-(3,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── opening_loc: (3,11)-(3,12) = "("
│ │ │ └── closing_loc: (3,13)-(3,14) = ")"
│ │ └── @ ParenthesesNode (location: (3,16)-(3,19))
@@ -32,7 +34,8 @@
│ │ │ @ StatementsNode (location: (3,17)-(3,18))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,17)-(3,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: (3,16)-(3,17) = "("
│ │ └── closing_loc: (3,18)-(3,19) = ")"
│ └── keyword_loc: (3,0)-(3,5) = "break"
@@ -42,7 +45,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,6)-(5,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── keyword_loc: (5,0)-(5,5) = "break"
├── @ BreakNode (location: (7,0)-(8,1))
│ ├── arguments:
@@ -50,11 +54,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (7,6)-(7,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (7,9)-(7,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (8,0)-(8,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── keyword_loc: (7,0)-(7,5) = "break"
├── @ BreakNode (location: (10,0)-(10,13))
│ ├── arguments:
@@ -62,11 +69,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (10,6)-(10,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (10,9)-(10,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (10,12)-(10,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── keyword_loc: (10,0)-(10,5) = "break"
├── @ BreakNode (location: (12,0)-(12,15))
│ ├── arguments:
@@ -77,11 +87,14 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 3)
│ │ │ ├── @ IntegerNode (location: (12,7)-(12,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ IntegerNode (location: (12,10)-(12,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (12,13)-(12,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: (12,6)-(12,7) = "["
│ │ └── closing_loc: (12,14)-(12,15) = "]"
│ └── keyword_loc: (12,0)-(12,5) = "break"
@@ -95,9 +108,11 @@
│ │ │ @ StatementsNode (location: (15,2)-(16,3))
│ │ │ └── body: (length: 2)
│ │ │ ├── @ IntegerNode (location: (15,2)-(15,3))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (16,2)-(16,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (14,5)-(14,6) = "("
│ │ └── closing_loc: (17,0)-(17,1) = ")"
│ └── keyword_loc: (14,0)-(14,5) = "break"
@@ -121,7 +136,8 @@
│ │ │ @ StatementsNode (location: (21,6)-(21,7))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (21,6)-(21,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (21,5)-(21,6) = "("
│ │ └── closing_loc: (21,7)-(21,8) = ")"
│ └── keyword_loc: (21,0)-(21,5) = "break"
@@ -150,7 +166,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (23,12)-(23,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── keyword_loc: (23,6)-(23,11) = "break"
│ │ ├── opening_loc: (23,4)-(23,5) = "{"
│ │ └── closing_loc: (23,15)-(23,16) = "}"
@@ -163,7 +180,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (23,20)-(23,22))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── closing_loc: ∅
│ └── block: ∅
└── @ CallNode (location: (25,0)-(25,23))
@@ -215,6 +233,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (25,21)-(25,23))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/case.txt b/test/prism/snapshots/case.txt
index b74ff535e0..a2c6bac0a9 100644
--- a/test/prism/snapshots/case.txt
+++ b/test/prism/snapshots/case.txt
@@ -269,7 +269,8 @@
│ │ ├── keyword_loc: (32,14)-(32,18) = "when"
│ │ ├── conditions: (length: 1)
│ │ │ └── @ IntegerNode (location: (32,19)-(32,20))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── statements: ∅
│ ├── consequent: ∅
│ ├── case_keyword_loc: (32,0)-(32,4) = "case"
@@ -279,17 +280,20 @@
│ │ @ MatchPredicateNode (location: (34,5)-(34,11))
│ │ ├── value:
│ │ │ @ IntegerNode (location: (34,5)-(34,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (34,10)-(34,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (34,7)-(34,9) = "in"
│ ├── conditions: (length: 1)
│ │ └── @ WhenNode (location: (35,0)-(35,6))
│ │ ├── keyword_loc: (35,0)-(35,4) = "when"
│ │ ├── conditions: (length: 1)
│ │ │ └── @ IntegerNode (location: (35,5)-(35,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ └── statements: ∅
│ ├── consequent: ∅
│ ├── case_keyword_loc: (34,0)-(34,4) = "case"
@@ -299,17 +303,20 @@
│ │ @ MatchPredicateNode (location: (38,5)-(38,11))
│ │ ├── value:
│ │ │ @ IntegerNode (location: (38,5)-(38,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (38,10)-(38,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (38,7)-(38,9) = "in"
│ ├── conditions: (length: 1)
│ │ └── @ WhenNode (location: (38,13)-(38,19))
│ │ ├── keyword_loc: (38,13)-(38,17) = "when"
│ │ ├── conditions: (length: 1)
│ │ │ └── @ IntegerNode (location: (38,18)-(38,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ └── statements: ∅
│ ├── consequent: ∅
│ ├── case_keyword_loc: (38,0)-(38,4) = "case"
@@ -319,16 +326,19 @@
│ │ @ MatchPredicateNode (location: (40,5)-(40,11))
│ │ ├── value:
│ │ │ @ IntegerNode (location: (40,5)-(40,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (40,10)-(40,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (40,7)-(40,9) = "in"
│ ├── conditions: (length: 1)
│ │ └── @ InNode (location: (41,0)-(41,4))
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (41,3)-(41,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── statements: ∅
│ │ ├── in_loc: (41,0)-(41,2) = "in"
│ │ └── then_loc: ∅
@@ -340,16 +350,19 @@
│ │ @ MatchPredicateNode (location: (44,5)-(44,11))
│ │ ├── value:
│ │ │ @ IntegerNode (location: (44,5)-(44,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (44,10)-(44,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (44,7)-(44,9) = "in"
│ ├── conditions: (length: 1)
│ │ └── @ InNode (location: (44,13)-(44,17))
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (44,16)-(44,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── statements: ∅
│ │ ├── in_loc: (44,13)-(44,15) = "in"
│ │ └── then_loc: ∅
@@ -429,7 +442,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (51,0)-(51,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: (51,1)-(51,2) = "."
├── name: :then
├── message_loc: (51,2)-(51,6) = "then"
@@ -448,7 +462,8 @@
│ └── @ CaseMatchNode (location: (52,2)-(54,5))
│ ├── predicate:
│ │ @ IntegerNode (location: (52,7)-(52,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── conditions: (length: 1)
│ │ └── @ InNode (location: (53,2)-(53,8))
│ │ ├── pattern:
diff --git a/test/prism/snapshots/classes.txt b/test/prism/snapshots/classes.txt
index a6544d52bc..4a36bd5cdc 100644
--- a/test/prism/snapshots/classes.txt
+++ b/test/prism/snapshots/classes.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,8)-(1,9) = "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,10)-(1,11) = "="
│ ├── end_keyword_loc: (1,14)-(1,17) = "end"
│ └── name: :A
@@ -98,7 +99,8 @@
│ │ ├── name_loc: (8,0)-(8,1) = "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (8,4)-(8,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (8,2)-(8,3) = "="
│ ├── end_keyword_loc: (9,0)-(9,3) = "end"
│ └── name: :A
@@ -287,7 +289,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (29,0)-(29,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :+
│ │ ├── message_loc: (29,2)-(29,3) = "+"
@@ -297,7 +300,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (29,4)-(29,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── end_keyword_loc: (30,0)-(30,3) = "end"
@@ -314,7 +318,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (32,14)-(32,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :+
│ │ ├── message_loc: (32,16)-(32,17) = "+"
@@ -324,7 +329,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (32,18)-(32,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── end_keyword_loc: (32,20)-(32,23) = "end"
@@ -350,7 +356,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (34,12)-(34,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (34,13)-(34,14) = "]"
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/command_method_call.txt b/test/prism/snapshots/command_method_call.txt
index de6093abbd..7fd6341304 100644
--- a/test/prism/snapshots/command_method_call.txt
+++ b/test/prism/snapshots/command_method_call.txt
@@ -15,7 +15,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (3,0)-(3,9))
@@ -41,7 +42,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,8)-(3,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── closing_loc: ∅
@@ -61,7 +63,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (5,13)-(5,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── then_keyword_loc: ∅
@@ -80,7 +83,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (5,4)-(5,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── consequent: ∅
@@ -100,7 +104,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (7,17)-(7,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── then_keyword_loc: ∅
@@ -119,7 +124,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (7,4)-(7,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── consequent: ∅
@@ -141,7 +147,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (9,16)-(9,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── statements:
@@ -159,7 +166,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (9,4)-(9,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ UntilNode (location: (11,0)-(11,17))
@@ -179,7 +187,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (11,16)-(11,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── statements:
@@ -197,7 +206,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (11,4)-(11,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ RescueModifierNode (location: (13,0)-(13,18))
@@ -214,7 +224,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (13,4)-(13,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── keyword_loc: (13,6)-(13,12) = "rescue"
@@ -231,7 +242,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (13,17)-(13,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (15,0)-(15,10))
@@ -267,7 +279,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (15,8)-(15,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── closing_loc: (15,9)-(15,10) = "]"
@@ -286,7 +299,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (17,4)-(17,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── right:
@@ -302,7 +316,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (17,14)-(17,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── operator_loc: (17,6)-(17,9) = "and"
@@ -320,7 +335,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (19,4)-(19,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── right:
@@ -336,7 +352,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (19,13)-(19,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── operator_loc: (19,6)-(19,8) = "or"
@@ -355,7 +372,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (21,8)-(21,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
@@ -387,7 +405,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (23,16)-(23,17))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ └── operator_loc: (23,10)-(23,11) = "="
@@ -412,7 +431,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (25,14)-(25,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
@@ -426,7 +446,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (27,0)-(27,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: (27,1)-(27,2) = "."
│ ├── name: :foo
│ ├── message_loc: (27,2)-(27,5) = "foo"
@@ -436,7 +457,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (27,6)-(27,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (29,0)-(29,11))
@@ -446,7 +468,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (29,0)-(29,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: (29,1)-(29,2) = "."
│ │ ├── name: :foo
│ │ ├── message_loc: (29,2)-(29,5) = "foo"
@@ -463,7 +486,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (29,10)-(29,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (31,0)-(31,14))
@@ -476,7 +500,8 @@
│ │ │ ├── flags: ∅
│ │ │ ├── receiver:
│ │ │ │ @ IntegerNode (location: (31,0)-(31,1))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── call_operator_loc: (31,1)-(31,2) = "."
│ │ │ ├── name: :foo
│ │ │ ├── message_loc: (31,2)-(31,5) = "foo"
@@ -493,7 +518,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (31,6)-(31,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: (31,7)-(31,8) = "]"
│ │ └── block: ∅
│ ├── call_operator_loc: (31,8)-(31,9) = "."
@@ -505,7 +531,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (31,13)-(31,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (33,0)-(33,14))
@@ -515,7 +542,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (33,0)-(33,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: (33,1)-(33,2) = "."
│ │ ├── name: :foo
│ │ ├── message_loc: (33,2)-(33,5) = "foo"
@@ -525,7 +553,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (33,6)-(33,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: (33,7)-(33,8) = ")"
│ │ └── block: ∅
│ ├── call_operator_loc: (33,8)-(33,9) = "."
@@ -537,7 +566,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (33,13)-(33,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (35,0)-(35,15))
@@ -547,7 +577,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (35,0)-(35,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: (35,1)-(35,2) = "."
│ │ ├── name: :foo
│ │ ├── message_loc: (35,2)-(35,5) = "foo"
@@ -558,7 +589,8 @@
│ │ @ BlockArgumentNode (location: (35,6)-(35,8))
│ │ ├── expression:
│ │ │ @ IntegerNode (location: (35,7)-(35,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (35,6)-(35,7) = "&"
│ ├── call_operator_loc: (35,9)-(35,10) = "."
│ ├── name: :bar
@@ -569,7 +601,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (35,14)-(35,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ AndNode (location: (37,0)-(37,17))
@@ -589,7 +622,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (37,5)-(37,6))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── call_operator_loc: ∅
@@ -615,7 +649,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (37,16)-(37,17))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── call_operator_loc: ∅
@@ -643,7 +678,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (39,5)-(39,6))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── call_operator_loc: ∅
@@ -669,7 +705,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (39,15)-(39,16))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── call_operator_loc: ∅
@@ -698,7 +735,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (41,9)-(41,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
diff --git a/test/prism/snapshots/constants.txt b/test/prism/snapshots/constants.txt
index 744a081c06..59e234148a 100644
--- a/test/prism/snapshots/constants.txt
+++ b/test/prism/snapshots/constants.txt
@@ -54,13 +54,15 @@
│ ├── operator_loc: (7,5)-(7,6) = "="
│ └── value:
│ @ IntegerNode (location: (7,7)-(7,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ConstantWriteNode (location: (9,0)-(9,5))
│ ├── name: :A
│ ├── name_loc: (9,0)-(9,1) = "A"
│ ├── value:
│ │ @ IntegerNode (location: (9,4)-(9,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (9,2)-(9,3) = "="
├── @ ConstantReadNode (location: (11,0)-(11,3))
│ └── name: :ABC
@@ -76,7 +78,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (13,4)-(13,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (15,0)-(15,8))
@@ -268,7 +271,8 @@
│ ├── operator_loc: (29,4)-(29,5) = "="
│ └── value:
│ @ IntegerNode (location: (29,6)-(29,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ConstantPathWriteNode (location: (31,0)-(31,10))
│ ├── target:
│ │ @ ConstantPathNode (location: (31,0)-(31,6))
@@ -286,7 +290,8 @@
│ ├── operator_loc: (31,7)-(31,8) = "="
│ └── value:
│ @ IntegerNode (location: (31,9)-(31,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ConstantPathNode (location: (33,0)-(33,6))
│ ├── parent:
│ │ @ ConstantPathNode (location: (33,0)-(33,3))
diff --git a/test/prism/snapshots/dash_heredocs.txt b/test/prism/snapshots/dash_heredocs.txt
index 80f54aefa8..9af3acf9c2 100644
--- a/test/prism/snapshots/dash_heredocs.txt
+++ b/test/prism/snapshots/dash_heredocs.txt
@@ -198,7 +198,8 @@
│ │ │ │ │ @ StatementsNode (location: (53,4)-(53,5))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (53,4)-(53,5))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 2
│ │ │ │ └── closing_loc: (54,2)-(54,3) = "}"
│ │ │ └── @ StringNode (location: (54,3)-(55,0))
│ │ │ ├── flags: ∅
@@ -241,7 +242,8 @@
│ │ │ │ @ StatementsNode (location: (62,2)-(62,3))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (62,2)-(62,3))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── closing_loc: (62,3)-(62,4) = "}"
│ │ └── @ StringNode (location: (62,4)-(63,0))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/defined.txt b/test/prism/snapshots/defined.txt
index 9c84b0b611..53a5081811 100644
--- a/test/prism/snapshots/defined.txt
+++ b/test/prism/snapshots/defined.txt
@@ -9,7 +9,8 @@
│ │ ├── lparen_loc: ∅
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rparen_loc: ∅
│ │ └── keyword_loc: (1,0)-(1,8) = "defined?"
│ ├── right:
@@ -17,7 +18,8 @@
│ │ ├── lparen_loc: ∅
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,24)-(1,25))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── rparen_loc: ∅
│ │ └── keyword_loc: (1,15)-(1,23) = "defined?"
│ └── operator_loc: (1,11)-(1,14) = "and"
@@ -29,7 +31,8 @@
│ │ ├── operator_loc: (3,11)-(3,13) = "%="
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,14)-(3,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── name: :x
│ │ ├── operator: :%
│ │ └── depth: 0
@@ -68,7 +71,8 @@
│ ├── lparen_loc: ∅
│ ├── value:
│ │ @ IntegerNode (location: (7,9)-(7,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── rparen_loc: ∅
│ └── keyword_loc: (7,0)-(7,8) = "defined?"
└── @ DefinedNode (location: (9,0)-(10,1))
diff --git a/test/prism/snapshots/emoji_method_calls.txt b/test/prism/snapshots/emoji_method_calls.txt
index a38d1431da..8f71181ac1 100644
--- a/test/prism/snapshots/emoji_method_calls.txt
+++ b/test/prism/snapshots/emoji_method_calls.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,11)-(1,12))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/endless_methods.txt b/test/prism/snapshots/endless_methods.txt
index 7485160a83..6e20c0deec 100644
--- a/test/prism/snapshots/endless_methods.txt
+++ b/test/prism/snapshots/endless_methods.txt
@@ -12,7 +12,8 @@
│ │ @ StatementsNode (location: (1,10)-(1,11))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── locals: []
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
@@ -69,7 +70,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (5,13)-(5,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :+
│ │ ├── message_loc: (5,15)-(5,16) = "+"
@@ -79,7 +81,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (5,17)-(5,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
@@ -91,7 +94,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,21)-(5,22))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
diff --git a/test/prism/snapshots/endless_range_in_conditional.txt b/test/prism/snapshots/endless_range_in_conditional.txt
index eb5b321c94..1802c4faed 100644
--- a/test/prism/snapshots/endless_range_in_conditional.txt
+++ b/test/prism/snapshots/endless_range_in_conditional.txt
@@ -10,10 +10,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (1,3)-(1,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (1,4)-(1,6) = ".."
│ ├── then_keyword_loc: ∅
│ ├── statements: ∅
@@ -27,7 +29,8 @@
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (2,5)-(2,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (2,3)-(2,5) = ".."
│ ├── then_keyword_loc: ∅
│ ├── statements: ∅
@@ -40,7 +43,8 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (3,3)-(3,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right: ∅
│ └── operator_loc: (3,4)-(3,6) = ".."
├── then_keyword_loc: ∅
diff --git a/test/prism/snapshots/for.txt b/test/prism/snapshots/for.txt
index b2aeb8fccf..cc4bbc1166 100644
--- a/test/prism/snapshots/for.txt
+++ b/test/prism/snapshots/for.txt
@@ -13,10 +13,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 10
│ │ └── operator_loc: (1,10)-(1,12) = ".."
│ ├── statements:
│ │ @ StatementsNode (location: (2,0)-(2,1))
@@ -38,10 +40,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (5,9)-(5,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (5,12)-(5,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 10
│ │ └── operator_loc: (5,10)-(5,12) = ".."
│ ├── statements:
│ │ @ StatementsNode (location: (5,16)-(5,17))
@@ -72,10 +76,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (7,11)-(7,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (7,14)-(7,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 10
│ │ └── operator_loc: (7,12)-(7,14) = ".."
│ ├── statements:
│ │ @ StatementsNode (location: (8,0)-(8,1))
@@ -109,10 +115,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (11,13)-(11,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (11,16)-(11,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 10
│ │ └── operator_loc: (11,14)-(11,16) = ".."
│ ├── statements:
│ │ @ StatementsNode (location: (12,0)-(12,1))
@@ -134,10 +142,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (15,9)-(15,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (15,12)-(15,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 10
│ │ └── operator_loc: (15,10)-(15,12) = ".."
│ ├── statements:
│ │ @ StatementsNode (location: (16,0)-(16,1))
@@ -159,10 +169,12 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (19,9)-(19,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (19,12)-(19,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ └── operator_loc: (19,10)-(19,12) = ".."
├── statements:
│ @ StatementsNode (location: (19,16)-(19,17))
diff --git a/test/prism/snapshots/hashes.txt b/test/prism/snapshots/hashes.txt
index 5fd0636548..7a3ac4b0ea 100644
--- a/test/prism/snapshots/hashes.txt
+++ b/test/prism/snapshots/hashes.txt
@@ -265,7 +265,8 @@
│ ├── name_loc: (22,0)-(22,1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (22,4)-(22,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (22,2)-(22,3) = "="
├── @ CallNode (location: (23,0)-(26,3))
│ ├── flags: ignore_visibility
@@ -289,7 +290,8 @@
│ │ │ ├── name_loc: (24,2)-(24,3) = "b"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (24,6)-(24,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: (24,4)-(24,5) = "="
│ │ └── @ HashNode (location: (25,2)-(25,20))
│ │ ├── opening_loc: (25,2)-(25,3) = "{"
@@ -376,6 +378,7 @@
│ │ └── unescaped: "a"
│ ├── value:
│ │ @ IntegerNode (location: (28,5)-(28,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: -1
│ └── operator_loc: ∅
└── closing_loc: (28,8)-(28,9) = "}"
diff --git a/test/prism/snapshots/heredocs_nested.txt b/test/prism/snapshots/heredocs_nested.txt
index e49e7df97a..1717aadbbc 100644
--- a/test/prism/snapshots/heredocs_nested.txt
+++ b/test/prism/snapshots/heredocs_nested.txt
@@ -62,7 +62,8 @@
│ │ │ │ │ │ │ │ │ @ StatementsNode (location: (17,2)-(17,3))
│ │ │ │ │ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ │ │ │ │ └── @ IntegerNode (location: (17,2)-(17,3))
- │ │ │ │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ │ │ │ └── value: 3
│ │ │ │ │ │ │ │ └── closing_loc: (17,3)-(17,4) = "}"
│ │ │ │ │ │ │ └── @ StringNode (location: (17,4)-(18,0))
│ │ │ │ │ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/if.txt b/test/prism/snapshots/if.txt
index 476088de72..f879ed3885 100644
--- a/test/prism/snapshots/if.txt
+++ b/test/prism/snapshots/if.txt
@@ -12,7 +12,8 @@
│ │ @ StatementsNode (location: (1,9)-(1,10))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,9)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent: ∅
│ └── end_keyword_loc: (1,12)-(1,15) = "end"
├── @ IfNode (location: (3,0)-(4,12))
@@ -24,7 +25,8 @@
│ │ @ StatementsNode (location: (4,0)-(4,1))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (4,0)-(4,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent:
│ │ @ ElseNode (location: (4,2)-(4,12))
│ │ ├── else_keyword_loc: (4,2)-(4,6) = "else"
@@ -32,7 +34,8 @@
│ │ │ @ StatementsNode (location: (4,7)-(4,8))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (4,7)-(4,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── end_keyword_loc: (4,9)-(4,12) = "end"
│ └── end_keyword_loc: (4,9)-(4,12) = "end"
├── @ IfNode (location: (6,0)-(6,73))
@@ -84,7 +87,8 @@
│ │ @ StatementsNode (location: (8,0)-(8,1))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (8,0)-(8,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent: ∅
│ └── end_keyword_loc: ∅
├── @ IfNode (location: (10,0)-(10,13))
@@ -149,7 +153,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (16,24)-(16,26))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ └── keyword_loc: (16,18)-(16,23) = "break"
│ ├── consequent: ∅
│ └── end_keyword_loc: (16,27)-(16,30) = "end"
@@ -299,7 +304,8 @@
│ │ │ └── block: ∅
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (29,11)-(29,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (29,8)-(29,10) = "in"
│ ├── then_keyword_loc: ∅
│ ├── statements: ∅
@@ -332,7 +338,8 @@
├── if_keyword_loc: (33,0)-(33,2) = "if"
├── predicate:
│ @ IntegerNode (location: (33,3)-(33,4))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── then_keyword_loc: ∅
├── statements:
│ @ StatementsNode (location: (34,2)-(35,5))
@@ -374,7 +381,8 @@
│ ├── if_keyword_loc: (36,0)-(36,5) = "elsif"
│ ├── predicate:
│ │ @ IntegerNode (location: (36,6)-(36,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── then_keyword_loc: ∅
│ ├── statements:
│ │ @ StatementsNode (location: (37,2)-(38,5))
diff --git a/test/prism/snapshots/integer_operations.txt b/test/prism/snapshots/integer_operations.txt
index c8b76cacfa..4660928ad2 100644
--- a/test/prism/snapshots/integer_operations.txt
+++ b/test/prism/snapshots/integer_operations.txt
@@ -7,7 +7,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (1,1)-(1,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :!
│ ├── message_loc: (1,0)-(1,1) = "!"
@@ -19,7 +20,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (3,1)-(3,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :~
│ ├── message_loc: (3,0)-(3,1) = "~"
@@ -31,7 +33,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (5,0)-(5,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :!=
│ ├── message_loc: (5,2)-(5,4) = "!="
@@ -41,14 +44,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,5)-(5,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (7,0)-(7,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (7,0)-(7,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :!~
│ ├── message_loc: (7,2)-(7,4) = "!~"
@@ -58,14 +63,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (7,5)-(7,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (9,0)-(9,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (9,0)-(9,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :%
│ ├── message_loc: (9,2)-(9,3) = "%"
@@ -75,14 +82,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (9,4)-(9,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (11,0)-(11,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (11,0)-(11,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :&
│ ├── message_loc: (11,2)-(11,3) = "&"
@@ -92,14 +101,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (11,4)-(11,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (13,0)-(13,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (13,0)-(13,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :*
│ ├── message_loc: (13,2)-(13,3) = "*"
@@ -109,14 +120,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (13,4)-(13,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (15,0)-(15,4))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (15,0)-(15,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :**
│ ├── message_loc: (15,1)-(15,3) = "**"
@@ -126,14 +139,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (15,3)-(15,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (17,0)-(17,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (17,0)-(17,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :+
│ ├── message_loc: (17,2)-(17,3) = "+"
@@ -143,14 +158,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (17,4)-(17,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (19,0)-(19,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (19,0)-(19,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :-
│ ├── message_loc: (19,2)-(19,3) = "-"
@@ -160,14 +177,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (19,4)-(19,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (21,0)-(21,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (21,0)-(21,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :/
│ ├── message_loc: (21,2)-(21,3) = "/"
@@ -177,7 +196,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (21,4)-(21,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (23,0)-(23,5))
@@ -187,7 +207,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (23,0)-(23,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :/
│ │ ├── message_loc: (23,1)-(23,2) = "/"
@@ -197,7 +218,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (23,2)-(23,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
@@ -209,14 +231,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (23,4)-(23,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (25,0)-(25,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (25,0)-(25,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :<
│ ├── message_loc: (25,2)-(25,3) = "<"
@@ -226,14 +250,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (25,4)-(25,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (27,0)-(27,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (27,0)-(27,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :<<
│ ├── message_loc: (27,2)-(27,4) = "<<"
@@ -243,14 +269,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (27,5)-(27,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (29,0)-(29,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (29,0)-(29,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :<=
│ ├── message_loc: (29,2)-(29,4) = "<="
@@ -260,14 +288,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (29,5)-(29,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (31,0)-(31,7))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (31,0)-(31,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :<=>
│ ├── message_loc: (31,2)-(31,5) = "<=>"
@@ -277,14 +307,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (31,6)-(31,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (33,0)-(33,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (33,0)-(33,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :==
│ ├── message_loc: (33,2)-(33,4) = "=="
@@ -294,14 +326,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (33,5)-(33,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (35,0)-(35,7))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (35,0)-(35,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :===
│ ├── message_loc: (35,2)-(35,5) = "==="
@@ -311,14 +345,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (35,6)-(35,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (37,0)-(37,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (37,0)-(37,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :=~
│ ├── message_loc: (37,2)-(37,4) = "=~"
@@ -328,14 +364,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (37,5)-(37,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (39,0)-(39,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (39,0)-(39,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :>
│ ├── message_loc: (39,2)-(39,3) = ">"
@@ -345,14 +383,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (39,4)-(39,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (41,0)-(41,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (41,0)-(41,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :>=
│ ├── message_loc: (41,2)-(41,4) = ">="
@@ -362,14 +402,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (41,5)-(41,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (43,0)-(43,6))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (43,0)-(43,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :>>
│ ├── message_loc: (43,2)-(43,4) = ">>"
@@ -379,14 +421,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (43,5)-(43,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (45,0)-(45,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (45,0)-(45,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :^
│ ├── message_loc: (45,2)-(45,3) = "^"
@@ -396,14 +440,16 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (45,4)-(45,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (47,0)-(47,5))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (47,0)-(47,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :|
│ ├── message_loc: (47,2)-(47,3) = "|"
@@ -413,30 +459,36 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (47,4)-(47,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ AndNode (location: (49,0)-(49,6))
│ ├── left:
│ │ @ IntegerNode (location: (49,0)-(49,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (49,5)-(49,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (49,2)-(49,4) = "&&"
├── @ AndNode (location: (51,0)-(51,7))
│ ├── left:
│ │ @ IntegerNode (location: (51,0)-(51,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (51,6)-(51,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (51,2)-(51,5) = "and"
├── @ CallNode (location: (53,0)-(53,10))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (53,0)-(53,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :*
│ ├── message_loc: (53,2)-(53,3) = "*"
@@ -449,7 +501,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (53,4)-(53,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :**
│ │ ├── message_loc: (53,6)-(53,8) = "**"
@@ -459,7 +512,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (53,9)-(53,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── closing_loc: ∅
@@ -471,7 +525,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (55,0)-(55,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :*
│ │ ├── message_loc: (55,2)-(55,3) = "*"
@@ -481,7 +536,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (55,4)-(55,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
@@ -493,30 +549,36 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (55,8)-(55,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ OrNode (location: (57,0)-(57,6))
│ ├── left:
│ │ @ IntegerNode (location: (57,0)-(57,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (57,5)-(57,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (57,2)-(57,4) = "or"
├── @ OrNode (location: (59,0)-(59,6))
│ ├── left:
│ │ @ IntegerNode (location: (59,0)-(59,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (59,5)-(59,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (59,2)-(59,4) = "||"
├── @ CallNode (location: (61,0)-(61,9))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (61,0)-(61,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :+
│ ├── message_loc: (61,2)-(61,3) = "+"
@@ -529,7 +591,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (61,4)-(61,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :*
│ │ ├── message_loc: (61,6)-(61,7) = "*"
@@ -539,7 +602,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (61,8)-(61,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── closing_loc: ∅
@@ -552,7 +616,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (63,1)-(63,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :+
│ ├── message_loc: (63,3)-(63,4) = "+"
@@ -562,7 +627,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (63,5)-(63,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── opening_loc: (63,0)-(63,1) = "("
diff --git a/test/prism/snapshots/lambda.txt b/test/prism/snapshots/lambda.txt
index 6b50f02af7..f9e82c8811 100644
--- a/test/prism/snapshots/lambda.txt
+++ b/test/prism/snapshots/lambda.txt
@@ -118,7 +118,8 @@
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (7,10)-(7,11))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 3
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── keyword_rest: ∅
diff --git a/test/prism/snapshots/method_calls.txt b/test/prism/snapshots/method_calls.txt
index 0463d04ab1..370686e9ea 100644
--- a/test/prism/snapshots/method_calls.txt
+++ b/test/prism/snapshots/method_calls.txt
@@ -177,11 +177,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (15,3)-(15,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (15,6)-(15,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (15,9)-(15,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── closing_loc: (15,10)-(15,11) = ")"
│ └── block: ∅
├── @ CallNode (location: (17,0)-(17,4))
@@ -259,7 +262,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (21,10)-(21,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (23,0)-(23,2))
@@ -543,9 +547,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (41,19)-(41,20))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (41,22)-(41,23))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ CallNode (location: (43,0)-(43,4))
@@ -850,7 +856,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (62,3)-(62,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 123
│ │ └── @ HashNode (location: (62,8)-(62,49))
│ │ ├── opening_loc: (62,8)-(62,9) = "{"
│ │ ├── elements: (length: 3)
@@ -1335,7 +1342,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (89,10)-(89,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ KeywordHashNode (location: (89,13)-(89,21))
│ │ ├── flags: symbol_keys
│ │ └── elements: (length: 1)
@@ -1349,7 +1357,8 @@
│ │ │ └── unescaped: "kwarg"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (89,20)-(89,21))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -1367,7 +1376,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (91,15)-(91,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ ├── closing_loc: (91,17)-(91,18) = ")"
│ └── block: ∅
├── @ CallNode (location: (93,0)-(93,10))
@@ -1537,7 +1547,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (103,9)-(103,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: -1
│ │ └── operator_loc: ∅
│ ├── closing_loc: (103,11)-(103,12) = ")"
│ └── block: ∅
@@ -1845,7 +1856,8 @@
│ │ │ ├── flags: ∅
│ │ │ ├── receiver:
│ │ │ │ @ IntegerNode (location: (117,8)-(117,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── call_operator_loc: (117,9)-(117,10) = "."
│ │ │ ├── name: :times
│ │ │ ├── message_loc: (117,10)-(117,15) = "times"
@@ -1860,7 +1872,8 @@
│ │ │ │ @ StatementsNode (location: (117,19)-(117,20))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (117,19)-(117,20))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── opening_loc: (117,16)-(117,18) = "do"
│ │ │ └── closing_loc: (117,21)-(117,24) = "end"
│ │ ├── rescue_clause: ∅
@@ -2340,7 +2353,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (151,4)-(151,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ CallNode (location: (151,7)-(151,16))
│ │ ├── flags: ignore_visibility
│ │ ├── receiver: ∅
@@ -2358,7 +2372,8 @@
│ │ │ @ StatementsNode (location: (151,13)-(151,14))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (151,13)-(151,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (151,11)-(151,12) = "{"
│ │ └── closing_loc: (151,15)-(151,16) = "}"
│ ├── closing_loc: ∅
@@ -2369,7 +2384,8 @@
│ ├── name_loc: (153,0)-(153,3) = "foo"
│ ├── value:
│ │ @ IntegerNode (location: (153,6)-(153,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (153,4)-(153,5) = "="
├── @ CallNode (location: (154,0)-(154,6))
│ ├── flags: ignore_visibility
@@ -2433,7 +2449,8 @@
│ │ └── closing_loc: (156,14)-(156,16) = "\":"
│ ├── value:
│ │ @ IntegerNode (location: (156,17)-(156,19))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ └── operator_loc: ∅
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt
index a96abf9203..ac21bbaed1 100644
--- a/test/prism/snapshots/methods.txt
+++ b/test/prism/snapshots/methods.txt
@@ -63,7 +63,8 @@
│ │ │ ├── operator_loc: (4,29)-(4,30) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (4,31)-(4,32))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ MultiTargetNode (location: (4,34)-(4,44))
@@ -370,7 +371,8 @@
│ ├── name_loc: (44,0)-(44,1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (44,4)-(44,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (44,2)-(44,3) = "="
├── @ DefNode (location: (44,7)-(45,3))
│ ├── name: :a
@@ -450,7 +452,8 @@
│ │ │ ├── name_loc: (53,10)-(53,12) = "c:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (53,13)-(53,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body: ∅
@@ -482,7 +485,8 @@
│ │ │ ├── name_loc: (56,10)-(56,12) = "c:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (56,13)-(56,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body: ∅
@@ -510,7 +514,8 @@
│ │ │ │ ├── name_loc: (59,6)-(59,8) = "b:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (60,2)-(60,3))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ RequiredKeywordParameterNode (location: (60,5)-(60,7))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :c
@@ -546,7 +551,8 @@
│ │ │ │ ├── operator_loc: (65,8)-(65,9) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (65,10)-(65,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ OptionalParameterNode (location: (65,13)-(65,18))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :c
@@ -554,7 +560,8 @@
│ │ │ ├── operator_loc: (65,15)-(65,16) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (65,17)-(65,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -599,7 +606,8 @@
│ │ │ ├── operator_loc: (71,11)-(71,12) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (71,13)-(71,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -738,7 +746,8 @@
│ │ ├── name_loc: (86,0)-(86,1) = "b"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (86,4)-(86,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (86,2)-(86,3) = "="
│ ├── locals: [:b]
│ ├── def_keyword_loc: (85,0)-(85,3) = "def"
@@ -840,7 +849,8 @@
│ │ @ StatementsNode (location: (103,10)-(103,11))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (103,10)-(103,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── locals: []
│ ├── def_keyword_loc: (103,0)-(103,3) = "def"
│ ├── operator_loc: ∅
@@ -857,7 +867,8 @@
│ │ @ StatementsNode (location: (104,10)-(104,11))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (104,10)-(104,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── locals: []
│ ├── def_keyword_loc: (104,0)-(104,3) = "def"
│ ├── operator_loc: ∅
@@ -885,7 +896,8 @@
│ │ @ StatementsNode (location: (106,15)-(106,18))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (106,15)-(106,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 123
│ ├── locals: [:bar]
│ ├── def_keyword_loc: (106,0)-(106,3) = "def"
│ ├── operator_loc: ∅
@@ -902,7 +914,8 @@
│ │ @ StatementsNode (location: (108,10)-(108,13))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (108,10)-(108,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 123
│ ├── locals: []
│ ├── def_keyword_loc: (108,0)-(108,3) = "def"
│ ├── operator_loc: ∅
@@ -1021,9 +1034,11 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 3)
│ │ │ ├── @ IntegerNode (location: (114,14)-(114,15))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ IntegerNode (location: (114,17)-(114,18))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ ForwardingArgumentsNode (location: (114,20)-(114,23))
│ │ ├── closing_loc: (114,23)-(114,24) = ")"
│ │ └── block: ∅
@@ -1186,7 +1201,8 @@
│ ├── name_loc: (133,0)-(133,5) = "Const"
│ ├── value:
│ │ @ IntegerNode (location: (133,8)-(133,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (133,6)-(133,7) = "="
├── @ DefNode (location: (133,11)-(134,3))
│ ├── name: :a
@@ -1355,10 +1371,12 @@
│ │ │ │ ├── flags: exclude_end
│ │ │ │ ├── left:
│ │ │ │ │ @ IntegerNode (location: (142,12)-(142,13))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── right:
│ │ │ │ │ @ IntegerNode (location: (142,16)-(142,18))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 10
│ │ │ │ └── operator_loc: (142,13)-(142,16) = "..."
│ │ │ ├── opening_loc: (142,11)-(142,12) = "("
│ │ │ └── closing_loc: (142,18)-(142,19) = ")"
@@ -1397,7 +1415,8 @@
│ │ │ │ ├── left: ∅
│ │ │ │ ├── right:
│ │ │ │ │ @ IntegerNode (location: (145,15)-(145,17))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 10
│ │ │ │ └── operator_loc: (145,12)-(145,15) = "..."
│ │ │ ├── opening_loc: (145,11)-(145,12) = "("
│ │ │ └── closing_loc: (145,17)-(145,18) = ")"
@@ -1435,7 +1454,8 @@
│ │ │ │ ├── flags: exclude_end
│ │ │ │ ├── left:
│ │ │ │ │ @ IntegerNode (location: (148,12)-(148,13))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── right: ∅
│ │ │ │ └── operator_loc: (148,13)-(148,16) = "..."
│ │ │ ├── opening_loc: (148,11)-(148,12) = "("
@@ -1472,10 +1492,12 @@
│ │ │ │ ├── flags: exclude_end
│ │ │ │ ├── left:
│ │ │ │ │ @ IntegerNode (location: (151,13)-(151,14))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── right:
│ │ │ │ │ @ IntegerNode (location: (151,17)-(151,19))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 10
│ │ │ │ └── operator_loc: (151,14)-(151,17) = "..."
│ │ │ ├── opening_loc: (151,12)-(151,13) = "("
│ │ │ └── closing_loc: (151,19)-(151,20) = ")"
@@ -1515,7 +1537,8 @@
│ │ │ │ ├── left: ∅
│ │ │ │ ├── right:
│ │ │ │ │ @ IntegerNode (location: (154,16)-(154,18))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 10
│ │ │ │ └── operator_loc: (154,13)-(154,16) = "..."
│ │ │ ├── opening_loc: (154,12)-(154,13) = "("
│ │ │ └── closing_loc: (154,18)-(154,19) = ")"
@@ -1554,7 +1577,8 @@
│ │ │ │ ├── flags: exclude_end
│ │ │ │ ├── left:
│ │ │ │ │ @ IntegerNode (location: (157,13)-(157,14))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── right: ∅
│ │ │ │ └── operator_loc: (157,14)-(157,17) = "..."
│ │ │ ├── opening_loc: (157,12)-(157,13) = "("
@@ -1643,7 +1667,8 @@
│ ├── name_loc: (164,0)-(164,3) = "foo"
│ ├── value:
│ │ @ IntegerNode (location: (164,6)-(164,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (164,4)-(164,5) = "="
├── @ DefNode (location: (165,0)-(165,16))
│ ├── name: :bar
@@ -1952,7 +1977,8 @@
│ │ │ │ │ ├── equal_loc: (181,28)-(181,29) = "="
│ │ │ │ │ └── end_keyword_loc: ∅
│ │ │ │ └── @ IntegerNode (location: (181,35)-(181,36))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── opening_loc: (181,14)-(181,15) = "("
│ │ │ └── closing_loc: (181,36)-(181,37) = ")"
│ │ ├── rest: ∅
@@ -1964,7 +1990,8 @@
│ │ @ StatementsNode (location: (181,41)-(181,42))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (181,41)-(181,42))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── locals: [:bar]
│ ├── def_keyword_loc: (181,0)-(181,3) = "def"
│ ├── operator_loc: ∅
@@ -2002,7 +2029,8 @@
│ │ ├── operator_loc: (183,29)-(183,30) = "="
│ │ └── value:
│ │ @ IntegerNode (location: (183,31)-(183,32))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 0)
@@ -2012,7 +2040,8 @@
│ @ StatementsNode (location: (183,36)-(183,37))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (183,36)-(183,37))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── locals: [:bar]
├── def_keyword_loc: (183,0)-(183,3) = "def"
├── operator_loc: (183,20)-(183,21) = "."
diff --git a/test/prism/snapshots/modules.txt b/test/prism/snapshots/modules.txt
index 9b77f39b65..aef3875d74 100644
--- a/test/prism/snapshots/modules.txt
+++ b/test/prism/snapshots/modules.txt
@@ -18,7 +18,8 @@
│ │ ├── name_loc: (1,9)-(1,10) = "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,13)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,11)-(1,12) = "="
│ ├── end_keyword_loc: (1,15)-(1,18) = "end"
│ └── name: :A
@@ -95,7 +96,8 @@
│ │ │ ├── name_loc: (9,1)-(9,2) = "x"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (9,5)-(9,6))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: (9,3)-(9,4) = "="
│ │ ├── rescue_clause:
│ │ │ @ RescueNode (location: (9,8)-(9,14))
@@ -168,7 +170,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (17,9)-(17,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (17,10)-(17,11) = "]"
│ │ └── block: ∅
│ ├── child:
diff --git a/test/prism/snapshots/next.txt b/test/prism/snapshots/next.txt
index aa11809246..64ec3ebc91 100644
--- a/test/prism/snapshots/next.txt
+++ b/test/prism/snapshots/next.txt
@@ -16,7 +16,8 @@
│ │ │ │ @ StatementsNode (location: (3,6)-(3,7))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (3,6)-(3,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── opening_loc: (3,5)-(3,6) = "("
│ │ │ └── closing_loc: (3,7)-(3,8) = ")"
│ │ ├── @ ParenthesesNode (location: (3,10)-(3,13))
@@ -24,7 +25,8 @@
│ │ │ │ @ StatementsNode (location: (3,11)-(3,12))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (3,11)-(3,12))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── opening_loc: (3,10)-(3,11) = "("
│ │ │ └── closing_loc: (3,12)-(3,13) = ")"
│ │ └── @ ParenthesesNode (location: (3,15)-(3,18))
@@ -32,7 +34,8 @@
│ │ │ @ StatementsNode (location: (3,16)-(3,17))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,16)-(3,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: (3,15)-(3,16) = "("
│ │ └── closing_loc: (3,17)-(3,18) = ")"
│ └── keyword_loc: (3,0)-(3,4) = "next"
@@ -42,7 +45,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,5)-(5,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── keyword_loc: (5,0)-(5,4) = "next"
├── @ NextNode (location: (7,0)-(8,1))
│ ├── arguments:
@@ -50,11 +54,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (7,5)-(7,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (7,8)-(7,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (8,0)-(8,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── keyword_loc: (7,0)-(7,4) = "next"
├── @ NextNode (location: (10,0)-(10,12))
│ ├── arguments:
@@ -62,11 +69,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (10,5)-(10,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (10,8)-(10,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (10,11)-(10,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── keyword_loc: (10,0)-(10,4) = "next"
├── @ NextNode (location: (12,0)-(12,14))
│ ├── arguments:
@@ -77,11 +87,14 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 3)
│ │ │ ├── @ IntegerNode (location: (12,6)-(12,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ IntegerNode (location: (12,9)-(12,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (12,12)-(12,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: (12,5)-(12,6) = "["
│ │ └── closing_loc: (12,13)-(12,14) = "]"
│ └── keyword_loc: (12,0)-(12,4) = "next"
@@ -95,9 +108,11 @@
│ │ │ @ StatementsNode (location: (15,2)-(16,3))
│ │ │ └── body: (length: 2)
│ │ │ ├── @ IntegerNode (location: (15,2)-(15,3))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (16,2)-(16,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (14,4)-(14,5) = "("
│ │ └── closing_loc: (17,0)-(17,1) = ")"
│ └── keyword_loc: (14,0)-(14,4) = "next"
@@ -105,7 +120,8 @@
│ ├── arguments: ∅
│ └── keyword_loc: (19,0)-(19,4) = "next"
├── @ IntegerNode (location: (20,0)-(20,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ NextNode (location: (22,0)-(22,6))
│ ├── arguments:
│ │ @ ArgumentsNode (location: (22,4)-(22,6))
@@ -126,7 +142,8 @@
│ │ @ StatementsNode (location: (24,5)-(24,6))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (24,5)-(24,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (24,4)-(24,5) = "("
│ └── closing_loc: (24,6)-(24,7) = ")"
└── keyword_loc: (24,0)-(24,4) = "next"
diff --git a/test/prism/snapshots/nils.txt b/test/prism/snapshots/nils.txt
index cbadbcf911..f72745560f 100644
--- a/test/prism/snapshots/nils.txt
+++ b/test/prism/snapshots/nils.txt
@@ -17,7 +17,8 @@
│ │ @ StatementsNode (location: (10,6)-(10,7))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (10,6)-(10,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_loc: (10,0)-(10,3) = "END"
│ ├── opening_loc: (10,4)-(10,5) = "{"
│ └── closing_loc: (10,8)-(10,9) = "}"
@@ -26,7 +27,8 @@
│ @ StatementsNode (location: (12,8)-(12,9))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (12,8)-(12,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── keyword_loc: (12,0)-(12,5) = "BEGIN"
├── opening_loc: (12,6)-(12,7) = "{"
└── closing_loc: (12,10)-(12,11) = "}"
diff --git a/test/prism/snapshots/numbers.txt b/test/prism/snapshots/numbers.txt
index c27f2a6354..abcbf44c5e 100644
--- a/test/prism/snapshots/numbers.txt
+++ b/test/prism/snapshots/numbers.txt
@@ -4,58 +4,80 @@
@ StatementsNode (location: (1,0)-(67,5))
└── body: (length: 34)
├── @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── @ IntegerNode (location: (3,0)-(3,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ FloatNode (location: (5,0)-(5,3))
├── @ IntegerNode (location: (7,0)-(7,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IntegerNode (location: (9,0)-(9,3))
- │ └── flags: binary
+ │ ├── flags: binary
+ │ └── value: 0
├── @ IntegerNode (location: (11,0)-(11,3))
- │ └── flags: binary
+ │ ├── flags: binary
+ │ └── value: 1
├── @ IntegerNode (location: (13,0)-(13,4))
- │ └── flags: binary
+ │ ├── flags: binary
+ │ └── value: 2
├── @ IntegerNode (location: (15,0)-(15,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── @ IntegerNode (location: (17,0)-(17,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IntegerNode (location: (19,0)-(19,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IntegerNode (location: (21,0)-(21,2))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 0
├── @ IntegerNode (location: (23,0)-(23,2))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 1
├── @ IntegerNode (location: (25,0)-(25,2))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 2
├── @ IntegerNode (location: (27,0)-(27,3))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 0
├── @ IntegerNode (location: (29,0)-(29,3))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 1
├── @ IntegerNode (location: (31,0)-(31,3))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 2
├── @ IntegerNode (location: (33,0)-(33,3))
- │ └── flags: hexadecimal
+ │ ├── flags: hexadecimal
+ │ └── value: 0
├── @ IntegerNode (location: (35,0)-(35,3))
- │ └── flags: hexadecimal
+ │ ├── flags: hexadecimal
+ │ └── value: 1
├── @ IntegerNode (location: (37,0)-(37,3))
- │ └── flags: hexadecimal
+ │ ├── flags: hexadecimal
+ │ └── value: 2
├── @ ImaginaryNode (location: (39,0)-(39,2))
│ └── numeric:
│ @ IntegerNode (location: (39,0)-(39,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ RationalNode (location: (41,0)-(41,2))
│ └── numeric:
│ @ IntegerNode (location: (41,0)-(41,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IntegerNode (location: (43,0)-(43,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: -1
├── @ ImaginaryNode (location: (45,0)-(45,3))
│ └── numeric:
│ @ RationalNode (location: (45,0)-(45,2))
│ └── numeric:
│ @ IntegerNode (location: (45,0)-(45,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ RationalNode (location: (47,0)-(47,4))
│ └── numeric:
│ @ FloatNode (location: (47,0)-(47,3))
@@ -69,7 +91,8 @@
│ @ RationalNode (location: (51,0)-(51,3))
│ └── numeric:
│ @ IntegerNode (location: (51,0)-(51,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: -1
├── @ RationalNode (location: (53,0)-(53,5))
│ └── numeric:
│ @ FloatNode (location: (53,0)-(53,4))
@@ -81,28 +104,34 @@
├── @ RationalNode (location: (57,0)-(57,4))
│ └── numeric:
│ @ IntegerNode (location: (57,0)-(57,3))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 1
├── @ ImaginaryNode (location: (59,0)-(59,4))
│ └── numeric:
│ @ IntegerNode (location: (59,0)-(59,3))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 1
├── @ ImaginaryNode (location: (61,0)-(61,5))
│ └── numeric:
│ @ RationalNode (location: (61,0)-(61,4))
│ └── numeric:
│ @ IntegerNode (location: (61,0)-(61,3))
- │ └── flags: octal
+ │ ├── flags: octal
+ │ └── value: 1
├── @ RationalNode (location: (63,0)-(63,4))
│ └── numeric:
│ @ IntegerNode (location: (63,0)-(63,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ImaginaryNode (location: (65,0)-(65,4))
│ └── numeric:
│ @ IntegerNode (location: (65,0)-(65,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ ImaginaryNode (location: (67,0)-(67,5))
└── numeric:
@ RationalNode (location: (67,0)-(67,4))
└── numeric:
@ IntegerNode (location: (67,0)-(67,3))
- └── flags: binary
+ ├── flags: binary
+ └── value: 1
diff --git a/test/prism/snapshots/patterns.txt b/test/prism/snapshots/patterns.txt
index ecb7ceb1cb..7080749a9e 100644
--- a/test/prism/snapshots/patterns.txt
+++ b/test/prism/snapshots/patterns.txt
@@ -34,7 +34,8 @@
│ │ └── block: ∅
│ ├── pattern:
│ │ @ IntegerNode (location: (2,7)-(2,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (2,4)-(2,6) = "=>"
├── @ MatchRequiredNode (location: (3,0)-(3,10))
│ ├── value:
@@ -67,7 +68,8 @@
│ │ @ ImaginaryNode (location: (4,7)-(4,9))
│ │ └── numeric:
│ │ @ IntegerNode (location: (4,7)-(4,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (4,4)-(4,6) = "=>"
├── @ MatchRequiredNode (location: (5,0)-(5,9))
│ ├── value:
@@ -85,7 +87,8 @@
│ │ @ RationalNode (location: (5,7)-(5,9))
│ │ └── numeric:
│ │ @ IntegerNode (location: (5,7)-(5,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (5,4)-(5,6) = "=>"
├── @ MatchRequiredNode (location: (6,0)-(6,11))
│ ├── value:
@@ -516,10 +519,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (28,7)-(28,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (28,12)-(28,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (28,9)-(28,11) = ".."
│ └── operator_loc: (28,4)-(28,6) = "=>"
├── @ MatchRequiredNode (location: (29,0)-(29,17))
@@ -562,12 +567,14 @@
│ │ │ @ ImaginaryNode (location: (30,7)-(30,9))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (30,7)-(30,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ ImaginaryNode (location: (30,13)-(30,15))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (30,13)-(30,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (30,10)-(30,12) = ".."
│ └── operator_loc: (30,4)-(30,6) = "=>"
├── @ MatchRequiredNode (location: (31,0)-(31,15))
@@ -589,12 +596,14 @@
│ │ │ @ RationalNode (location: (31,7)-(31,9))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (31,7)-(31,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right:
│ │ │ @ RationalNode (location: (31,13)-(31,15))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (31,13)-(31,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (31,10)-(31,12) = ".."
│ └── operator_loc: (31,4)-(31,6) = "=>"
├── @ MatchRequiredNode (location: (32,0)-(32,19))
@@ -1238,7 +1247,8 @@
│ ├── name_loc: (54,0)-(54,3) = "bar"
│ ├── value:
│ │ @ IntegerNode (location: (54,6)-(54,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (54,4)-(54,5) = "="
├── @ MatchRequiredNode (location: (54,9)-(54,20))
│ ├── value:
@@ -1333,7 +1343,8 @@
│ │ @ PinnedExpressionNode (location: (59,7)-(59,11))
│ │ ├── expression:
│ │ │ @ IntegerNode (location: (59,9)-(59,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── operator_loc: (59,7)-(59,8) = "^"
│ │ ├── lparen_loc: (59,8)-(59,9) = "("
│ │ └── rparen_loc: (59,10)-(59,11) = ")"
@@ -1540,7 +1551,8 @@
│ │ │ └── name: :Foo
│ │ ├── requireds: (length: 1)
│ │ │ └── @ IntegerNode (location: (69,11)-(69,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── opening_loc: (69,10)-(69,11) = "("
@@ -1565,11 +1577,14 @@
│ │ │ └── name: :Foo
│ │ ├── requireds: (length: 3)
│ │ │ ├── @ IntegerNode (location: (70,11)-(70,12))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ IntegerNode (location: (70,14)-(70,15))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (70,17)-(70,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── opening_loc: (70,10)-(70,11) = "("
@@ -1745,7 +1760,8 @@
│ │ │ └── name: :Foo
│ │ ├── requireds: (length: 1)
│ │ │ └── @ IntegerNode (location: (77,11)-(77,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── opening_loc: (77,10)-(77,11) = "["
@@ -1770,11 +1786,14 @@
│ │ │ └── name: :Foo
│ │ ├── requireds: (length: 3)
│ │ │ ├── @ IntegerNode (location: (78,11)-(78,12))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── @ IntegerNode (location: (78,14)-(78,15))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (78,17)-(78,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── opening_loc: (78,10)-(78,11) = "["
@@ -2390,7 +2409,8 @@
│ │ └── block: ∅
│ ├── pattern:
│ │ @ IntegerNode (location: (105,7)-(105,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (105,4)-(105,6) = "in"
├── @ MatchPredicateNode (location: (106,0)-(106,10))
│ ├── value:
@@ -2423,7 +2443,8 @@
│ │ @ ImaginaryNode (location: (107,7)-(107,9))
│ │ └── numeric:
│ │ @ IntegerNode (location: (107,7)-(107,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (107,4)-(107,6) = "in"
├── @ MatchPredicateNode (location: (108,0)-(108,9))
│ ├── value:
@@ -2441,7 +2462,8 @@
│ │ @ RationalNode (location: (108,7)-(108,9))
│ │ └── numeric:
│ │ @ IntegerNode (location: (108,7)-(108,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (108,4)-(108,6) = "in"
├── @ MatchPredicateNode (location: (109,0)-(109,11))
│ ├── value:
@@ -2920,7 +2942,8 @@
│ │ └── @ InNode (location: (136,10)-(136,19))
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (136,13)-(136,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── statements: ∅
│ │ ├── in_loc: (136,10)-(136,12) = "in"
│ │ └── then_loc: (136,15)-(136,19) = "then"
@@ -2967,7 +2990,8 @@
│ │ │ @ ImaginaryNode (location: (138,13)-(138,15))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (138,13)-(138,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── statements: ∅
│ │ ├── in_loc: (138,10)-(138,12) = "in"
│ │ └── then_loc: (138,16)-(138,20) = "then"
@@ -2992,7 +3016,8 @@
│ │ │ @ RationalNode (location: (139,13)-(139,15))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (139,13)-(139,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── statements: ∅
│ │ ├── in_loc: (139,10)-(139,12) = "in"
│ │ └── then_loc: (139,16)-(139,20) = "then"
@@ -3620,7 +3645,8 @@
│ │ │ │ @ StatementsNode (location: (163,13)-(163,14))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (163,13)-(163,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── consequent: ∅
│ │ │ └── end_keyword_loc: ∅
│ │ ├── statements: ∅
@@ -3691,7 +3717,8 @@
│ │ │ │ └── @ ImaginaryNode (location: (165,13)-(165,15))
│ │ │ │ └── numeric:
│ │ │ │ @ IntegerNode (location: (165,13)-(165,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── consequent: ∅
│ │ │ └── end_keyword_loc: ∅
│ │ ├── statements: ∅
@@ -3728,7 +3755,8 @@
│ │ │ │ └── @ RationalNode (location: (166,13)-(166,15))
│ │ │ │ └── numeric:
│ │ │ │ @ IntegerNode (location: (166,13)-(166,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── consequent: ∅
│ │ │ └── end_keyword_loc: ∅
│ │ ├── statements: ∅
@@ -4722,9 +4750,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (205,16)-(205,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (205,19)-(205,20))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ CallNode (location: (206,0)-(208,3))
@@ -4749,9 +4779,11 @@
│ │ │ ├── flags: ∅
│ │ │ ├── elements: (length: 2)
│ │ │ │ ├── @ IntegerNode (location: (207,3)-(207,4))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── @ IntegerNode (location: (207,6)-(207,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── opening_loc: (207,2)-(207,3) = "["
│ │ │ └── closing_loc: (207,7)-(207,8) = "]"
│ │ ├── pattern:
@@ -4819,7 +4851,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (212,0)-(212,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: (212,1)-(212,2) = "."
│ ├── name: :then
│ ├── message_loc: (212,2)-(212,6) = "then"
@@ -4838,7 +4871,8 @@
│ │ └── @ MatchPredicateNode (location: (212,9)-(212,17))
│ │ ├── value:
│ │ │ @ IntegerNode (location: (212,9)-(212,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── pattern:
│ │ │ @ PinnedVariableNode (location: (212,14)-(212,17))
│ │ │ ├── variable:
diff --git a/test/prism/snapshots/procs.txt b/test/prism/snapshots/procs.txt
index 2cc30618a0..1329ae6a5f 100644
--- a/test/prism/snapshots/procs.txt
+++ b/test/prism/snapshots/procs.txt
@@ -146,7 +146,8 @@
│ │ │ │ ├── operator_loc: (17,8)-(17,9) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (17,10)-(17,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 2)
@@ -195,7 +196,8 @@
│ │ │ │ ├── operator_loc: (19,9)-(19,10) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (19,11)-(19,12))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (19,14)-(19,16))
│ │ │ │ ├── flags: ∅
@@ -254,7 +256,8 @@
│ │ │ │ ├── operator_loc: (21,9)-(21,10) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (21,11)-(21,12))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (21,14)-(21,16))
│ │ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/range_begin_open_exclusive.txt b/test/prism/snapshots/range_begin_open_exclusive.txt
index 0ac4d10bf7..a630b01ef1 100644
--- a/test/prism/snapshots/range_begin_open_exclusive.txt
+++ b/test/prism/snapshots/range_begin_open_exclusive.txt
@@ -8,5 +8,6 @@
├── left: ∅
├── right:
│ @ IntegerNode (location: (1,3)-(1,4))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,0)-(1,3) = "..."
diff --git a/test/prism/snapshots/range_begin_open_inclusive.txt b/test/prism/snapshots/range_begin_open_inclusive.txt
index 1cba894221..dc8ef0d2db 100644
--- a/test/prism/snapshots/range_begin_open_inclusive.txt
+++ b/test/prism/snapshots/range_begin_open_inclusive.txt
@@ -8,5 +8,6 @@
├── left: ∅
├── right:
│ @ IntegerNode (location: (1,2)-(1,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,0)-(1,2) = ".."
diff --git a/test/prism/snapshots/range_end_open_exclusive.txt b/test/prism/snapshots/range_end_open_exclusive.txt
index 76b8eb197e..17a75f8945 100644
--- a/test/prism/snapshots/range_end_open_exclusive.txt
+++ b/test/prism/snapshots/range_end_open_exclusive.txt
@@ -7,6 +7,7 @@
├── flags: exclude_end
├── left:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── right: ∅
└── operator_loc: (1,1)-(1,4) = "..."
diff --git a/test/prism/snapshots/range_end_open_inclusive.txt b/test/prism/snapshots/range_end_open_inclusive.txt
index 576ea40fa5..b49272d8cd 100644
--- a/test/prism/snapshots/range_end_open_inclusive.txt
+++ b/test/prism/snapshots/range_end_open_inclusive.txt
@@ -7,6 +7,7 @@
├── flags: ∅
├── left:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── right: ∅
└── operator_loc: (1,1)-(1,3) = ".."
diff --git a/test/prism/snapshots/ranges.txt b/test/prism/snapshots/ranges.txt
index 906bf2de6b..2fffe80537 100644
--- a/test/prism/snapshots/ranges.txt
+++ b/test/prism/snapshots/ranges.txt
@@ -12,7 +12,8 @@
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (1,1)-(1,4) = "..."
│ ├── opening_loc: (1,0)-(1,1) = "("
│ └── closing_loc: (1,5)-(1,6) = ")"
@@ -25,7 +26,8 @@
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (3,3)-(3,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (3,1)-(3,3) = ".."
│ ├── opening_loc: (3,0)-(3,1) = "("
│ └── closing_loc: (3,4)-(3,5) = ")"
@@ -33,10 +35,12 @@
│ ├── flags: exclude_end
│ ├── left:
│ │ @ IntegerNode (location: (5,0)-(5,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (5,4)-(5,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (5,1)-(5,4) = "..."
├── @ CallNode (location: (7,0)-(7,9))
│ ├── flags: ∅
@@ -64,7 +68,8 @@
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (7,7)-(7,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (7,4)-(7,7) = "..."
│ ├── closing_loc: (7,8)-(7,9) = "]"
│ └── block: ∅
@@ -105,7 +110,8 @@
│ │ ├── flags: exclude_end
│ │ ├── left:
│ │ │ @ IntegerNode (location: (11,1)-(11,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (11,2)-(11,5) = "..."
│ ├── opening_loc: (11,0)-(11,1) = "("
@@ -114,10 +120,12 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (13,0)-(13,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (13,3)-(13,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (13,1)-(13,3) = ".."
├── @ HashNode (location: (15,0)-(15,14))
│ ├── opening_loc: (15,0)-(15,1) = "{"
@@ -156,7 +164,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (17,1)-(17,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (17,2)-(17,4) = ".."
│ ├── opening_loc: (17,0)-(17,1) = "("
@@ -165,14 +174,16 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (19,0)-(19,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ RangeNode (location: (19,5)-(19,8))
│ │ ├── flags: ∅
│ │ ├── left: ∅
│ │ ├── right:
│ │ │ @ IntegerNode (location: (19,7)-(19,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (19,5)-(19,7) = ".."
│ └── operator_loc: (19,2)-(19,4) = ".."
├── @ AndNode (location: (21,0)-(21,8))
@@ -181,12 +192,14 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (21,0)-(21,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (21,1)-(21,3) = ".."
│ ├── right:
│ │ @ IntegerNode (location: (21,7)-(21,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (21,4)-(21,6) = "&&"
├── @ CallNode (location: (23,0)-(23,8))
│ ├── flags: ∅
@@ -195,7 +208,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (23,0)-(23,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (23,1)-(23,3) = ".."
│ ├── call_operator_loc: ∅
@@ -207,7 +221,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (23,7)-(23,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (25,0)-(25,8))
@@ -217,7 +232,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (25,0)-(25,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (25,1)-(25,3) = ".."
│ ├── call_operator_loc: ∅
@@ -229,7 +245,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (25,7)-(25,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (27,0)-(27,9))
@@ -239,7 +256,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (27,0)-(27,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (27,1)-(27,3) = ".."
│ ├── call_operator_loc: ∅
@@ -251,7 +269,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (27,8)-(27,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (29,0)-(29,9))
@@ -261,7 +280,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (29,0)-(29,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (29,1)-(29,3) = ".."
│ ├── call_operator_loc: ∅
@@ -273,7 +293,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (29,8)-(29,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (31,0)-(31,8))
@@ -283,7 +304,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (31,0)-(31,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (31,1)-(31,3) = ".."
│ ├── call_operator_loc: ∅
@@ -295,7 +317,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (31,7)-(31,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (33,0)-(33,8))
@@ -305,7 +328,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (33,0)-(33,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (33,1)-(33,3) = ".."
│ ├── call_operator_loc: ∅
@@ -317,7 +341,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (33,7)-(33,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (35,0)-(35,7))
@@ -327,7 +352,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (35,0)-(35,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (35,1)-(35,3) = ".."
│ ├── call_operator_loc: ∅
@@ -339,7 +365,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (35,6)-(35,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (37,0)-(37,7))
@@ -349,7 +376,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (37,0)-(37,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (37,1)-(37,3) = ".."
│ ├── call_operator_loc: ∅
@@ -361,7 +389,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (37,6)-(37,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (39,0)-(39,8))
@@ -371,7 +400,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (39,0)-(39,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (39,1)-(39,3) = ".."
│ ├── call_operator_loc: ∅
@@ -383,7 +413,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (39,7)-(39,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (41,0)-(41,8))
@@ -393,7 +424,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (41,0)-(41,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (41,1)-(41,3) = ".."
│ ├── call_operator_loc: ∅
@@ -405,7 +437,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (41,7)-(41,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (43,0)-(43,8))
@@ -415,7 +448,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (43,0)-(43,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (43,1)-(43,3) = ".."
│ ├── call_operator_loc: ∅
@@ -427,7 +461,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (43,7)-(43,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (45,0)-(45,8))
@@ -437,7 +472,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (45,0)-(45,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (45,1)-(45,3) = ".."
│ ├── call_operator_loc: ∅
@@ -449,20 +485,23 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (45,7)-(45,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ RangeNode (location: (47,0)-(47,7))
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (47,0)-(47,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ CallNode (location: (47,4)-(47,7))
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (47,6)-(47,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :+@
│ │ ├── message_loc: (47,4)-(47,5) = "+"
@@ -475,13 +514,15 @@
├── flags: ∅
├── left:
│ @ IntegerNode (location: (49,0)-(49,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── right:
│ @ CallNode (location: (49,4)-(49,7))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (49,6)-(49,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── call_operator_loc: ∅
│ ├── name: :-@
│ ├── message_loc: (49,4)-(49,5) = "-"
diff --git a/test/prism/snapshots/regex.txt b/test/prism/snapshots/regex.txt
index 82cb489c4c..8f3e259516 100644
--- a/test/prism/snapshots/regex.txt
+++ b/test/prism/snapshots/regex.txt
@@ -313,7 +313,8 @@
│ ├── name_loc: (39,0)-(39,1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (39,4)-(39,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (39,2)-(39,3) = "="
└── @ CallNode (location: (40,0)-(40,24))
├── flags: ignore_visibility
diff --git a/test/prism/snapshots/repeat_parameters.txt b/test/prism/snapshots/repeat_parameters.txt
index 031a304eb0..fd98294ce6 100644
--- a/test/prism/snapshots/repeat_parameters.txt
+++ b/test/prism/snapshots/repeat_parameters.txt
@@ -294,7 +294,8 @@
│ │ │ │ ├── operator_loc: (22,11)-(22,12) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (22,13)-(22,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ OptionalParameterNode (location: (22,16)-(22,22))
│ │ │ ├── flags: repeated_parameter
│ │ │ ├── name: :_a
@@ -302,7 +303,8 @@
│ │ │ ├── operator_loc: (22,19)-(22,20) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (22,21)-(22,22))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -362,14 +364,16 @@
│ │ │ │ ├── name_loc: (28,8)-(28,11) = "_a:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (28,12)-(28,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ OptionalKeywordParameterNode (location: (28,15)-(28,20))
│ │ │ ├── flags: repeated_parameter
│ │ │ ├── name: :_a
│ │ │ ├── name_loc: (28,15)-(28,18) = "_a:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (28,19)-(28,20))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body: ∅
diff --git a/test/prism/snapshots/rescue.txt b/test/prism/snapshots/rescue.txt
index fab9a8f70d..d987c49617 100644
--- a/test/prism/snapshots/rescue.txt
+++ b/test/prism/snapshots/rescue.txt
@@ -76,7 +76,8 @@
│ │ @ NilNode (location: (12,11)-(12,14))
│ ├── right:
│ │ @ IntegerNode (location: (12,18)-(12,19))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (12,15)-(12,17) = "||"
├── @ RescueModifierNode (location: (14,0)-(14,22))
│ ├── expression:
@@ -101,7 +102,8 @@
│ │ @ StatementsNode (location: (14,17)-(14,18))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (14,17)-(14,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent:
│ │ @ ElseNode (location: (14,19)-(14,22))
│ │ ├── else_keyword_loc: (14,19)-(14,20) = ":"
@@ -109,7 +111,8 @@
│ │ │ @ StatementsNode (location: (14,21)-(14,22))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (14,21)-(14,22))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── end_keyword_loc: ∅
│ └── end_keyword_loc: ∅
├── @ BeginNode (location: (16,0)-(16,24))
@@ -306,7 +309,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (26,31)-(26,33))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ ├── keyword_loc: (26,34)-(26,40) = "rescue"
diff --git a/test/prism/snapshots/return.txt b/test/prism/snapshots/return.txt
index 647ae1af9d..9a33076193 100644
--- a/test/prism/snapshots/return.txt
+++ b/test/prism/snapshots/return.txt
@@ -17,7 +17,8 @@
│ │ │ @ StatementsNode (location: (3,8)-(3,9))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,8)-(3,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (3,7)-(3,8) = "("
│ │ └── closing_loc: (3,9)-(3,10) = ")"
│ ├── @ ParenthesesNode (location: (3,12)-(3,15))
@@ -25,7 +26,8 @@
│ │ │ @ StatementsNode (location: (3,13)-(3,14))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,13)-(3,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (3,12)-(3,13) = "("
│ │ └── closing_loc: (3,14)-(3,15) = ")"
│ └── @ ParenthesesNode (location: (3,17)-(3,20))
@@ -33,7 +35,8 @@
│ │ @ StatementsNode (location: (3,18)-(3,19))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (3,18)-(3,19))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── opening_loc: (3,17)-(3,18) = "("
│ └── closing_loc: (3,19)-(3,20) = ")"
├── @ ReturnNode (location: (5,0)-(5,9))
@@ -46,7 +49,8 @@
│ ├── operator_loc: (5,7)-(5,8) = "*"
│ └── expression:
│ @ IntegerNode (location: (5,8)-(5,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ReturnNode (location: (7,0)-(7,8))
│ ├── keyword_loc: (7,0)-(7,6) = "return"
│ └── arguments:
@@ -54,7 +58,8 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (7,7)-(7,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ReturnNode (location: (9,0)-(10,1))
│ ├── keyword_loc: (9,0)-(9,6) = "return"
│ └── arguments:
@@ -62,11 +67,14 @@
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (9,7)-(9,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (9,10)-(9,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (10,0)-(10,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── @ ReturnNode (location: (12,0)-(12,14))
│ ├── keyword_loc: (12,0)-(12,6) = "return"
│ └── arguments:
@@ -74,11 +82,14 @@
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (12,7)-(12,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (12,10)-(12,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (12,13)-(12,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── @ ReturnNode (location: (14,0)-(14,16))
│ ├── keyword_loc: (14,0)-(14,6) = "return"
│ └── arguments:
@@ -89,11 +100,14 @@
│ ├── flags: ∅
│ ├── elements: (length: 3)
│ │ ├── @ IntegerNode (location: (14,8)-(14,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (14,11)-(14,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (14,14)-(14,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── opening_loc: (14,7)-(14,8) = "["
│ └── closing_loc: (14,15)-(14,16) = "]"
├── @ ReturnNode (location: (16,0)-(19,1))
@@ -107,9 +121,11 @@
│ │ @ StatementsNode (location: (17,2)-(18,3))
│ │ └── body: (length: 2)
│ │ ├── @ IntegerNode (location: (17,2)-(17,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (18,2)-(18,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (16,6)-(16,7) = "("
│ └── closing_loc: (19,0)-(19,1) = ")"
├── @ ReturnNode (location: (21,0)-(21,8))
@@ -133,6 +149,7 @@
│ @ StatementsNode (location: (23,7)-(23,8))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (23,7)-(23,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── opening_loc: (23,6)-(23,7) = "("
└── closing_loc: (23,8)-(23,9) = ")"
diff --git a/test/prism/snapshots/seattlerb/BEGIN.txt b/test/prism/snapshots/seattlerb/BEGIN.txt
index 3595e2a05c..246f39cbba 100644
--- a/test/prism/snapshots/seattlerb/BEGIN.txt
+++ b/test/prism/snapshots/seattlerb/BEGIN.txt
@@ -8,7 +8,8 @@
│ @ StatementsNode (location: (1,8)-(1,10))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,8)-(1,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── keyword_loc: (1,0)-(1,5) = "BEGIN"
├── opening_loc: (1,6)-(1,7) = "{"
└── closing_loc: (1,11)-(1,12) = "}"
diff --git a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt
index f90f073d72..4a2a48b794 100644
--- a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt
+++ b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt
@@ -203,7 +203,8 @@
│ │ │ ├── name_loc: (61,4)-(61,5) = "Z"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (61,8)-(61,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── operator_loc: (61,6)-(61,7) = "="
│ │ ├── end_keyword_loc: (62,2)-(62,5) = "end"
│ │ └── name: :Y
@@ -326,7 +327,8 @@
│ │ │ ├── name_loc: (84,4)-(84,5) = "Z"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (84,8)-(84,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── operator_loc: (84,6)-(84,7) = "="
│ │ ├── end_keyword_loc: (85,2)-(85,5) = "end"
│ │ └── name: :Y
diff --git a/test/prism/snapshots/seattlerb/aref_args_assocs.txt b/test/prism/snapshots/seattlerb/aref_args_assocs.txt
index 398a014248..b729186dc5 100644
--- a/test/prism/snapshots/seattlerb/aref_args_assocs.txt
+++ b/test/prism/snapshots/seattlerb/aref_args_assocs.txt
@@ -12,10 +12,12 @@
│ └── @ AssocNode (location: (1,1)-(1,7))
│ ├── key:
│ │ @ IntegerNode (location: (1,1)-(1,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── value:
│ │ @ IntegerNode (location: (1,6)-(1,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (1,3)-(1,5) = "=>"
├── opening_loc: (1,0)-(1,1) = "["
└── closing_loc: (1,7)-(1,8) = "]"
diff --git a/test/prism/snapshots/seattlerb/aref_args_lit_assocs.txt b/test/prism/snapshots/seattlerb/aref_args_lit_assocs.txt
index 7a63842f36..0e9454d780 100644
--- a/test/prism/snapshots/seattlerb/aref_args_lit_assocs.txt
+++ b/test/prism/snapshots/seattlerb/aref_args_lit_assocs.txt
@@ -7,17 +7,20 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (1,1)-(1,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (1,4)-(1,10))
│ ├── flags: ∅
│ └── elements: (length: 1)
│ └── @ AssocNode (location: (1,4)-(1,10))
│ ├── key:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── value:
│ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (1,6)-(1,8) = "=>"
├── opening_loc: (1,0)-(1,1) = "["
└── closing_loc: (1,10)-(1,11) = "]"
diff --git a/test/prism/snapshots/seattlerb/args_kw_block.txt b/test/prism/snapshots/seattlerb/args_kw_block.txt
index b0f8fa8fd7..1ad933c74e 100644
--- a/test/prism/snapshots/seattlerb/args_kw_block.txt
+++ b/test/prism/snapshots/seattlerb/args_kw_block.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,6)-(1,8) = "a:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest: ∅
│ └── block:
│ @ BlockParameterNode (location: (1,12)-(1,14))
diff --git a/test/prism/snapshots/seattlerb/array_line_breaks.txt b/test/prism/snapshots/seattlerb/array_line_breaks.txt
index a08ee03052..880fedf933 100644
--- a/test/prism/snapshots/seattlerb/array_line_breaks.txt
+++ b/test/prism/snapshots/seattlerb/array_line_breaks.txt
@@ -21,4 +21,5 @@
│ ├── opening_loc: (1,0)-(1,1) = "["
│ └── closing_loc: (3,3)-(3,4) = "]"
└── @ IntegerNode (location: (4,0)-(4,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/assoc_label.txt b/test/prism/snapshots/seattlerb/assoc_label.txt
index 725a74f911..923f5450f4 100644
--- a/test/prism/snapshots/seattlerb/assoc_label.txt
+++ b/test/prism/snapshots/seattlerb/assoc_label.txt
@@ -27,7 +27,8 @@
│ │ └── unescaped: "b"
│ ├── value:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: ∅
├── closing_loc: (1,5)-(1,6) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt b/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt
index c869af4607..589433eda8 100644
--- a/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt
+++ b/test/prism/snapshots/seattlerb/attr_asgn_colon_id.txt
@@ -17,6 +17,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt b/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt
index 2c14d9566c..9b04ae9656 100644
--- a/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt
+++ b/test/prism/snapshots/seattlerb/attrasgn_array_arg.txt
@@ -28,12 +28,15 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (1,3)-(1,4))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (1,2)-(1,3) = "["
│ │ └── closing_loc: (1,7)-(1,8) = "]"
│ └── @ IntegerNode (location: (1,12)-(1,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── closing_loc: (1,8)-(1,9) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt b/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt
index 2d8f509a50..39544e98da 100644
--- a/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt
+++ b/test/prism/snapshots/seattlerb/attrasgn_array_lhs.txt
@@ -10,13 +10,17 @@
│ ├── flags: ∅
│ ├── elements: (length: 4)
│ │ ├── @ IntegerNode (location: (1,1)-(1,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── @ IntegerNode (location: (1,7)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 4
│ ├── opening_loc: (1,0)-(1,1) = "["
│ └── closing_loc: (1,11)-(1,12) = "]"
├── call_operator_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt b/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt
index 5aec9c5c6f..d4c4fe1070 100644
--- a/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt
+++ b/test/prism/snapshots/seattlerb/attrasgn_primary_dot_constant.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/bang_eq.txt b/test/prism/snapshots/seattlerb/bang_eq.txt
index 553362030e..ec3dd888b2 100644
--- a/test/prism/snapshots/seattlerb/bang_eq.txt
+++ b/test/prism/snapshots/seattlerb/bang_eq.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :!=
├── message_loc: (1,2)-(1,4) = "!="
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/bdot2.txt b/test/prism/snapshots/seattlerb/bdot2.txt
index 6bb76603c3..d4fb86fbe6 100644
--- a/test/prism/snapshots/seattlerb/bdot2.txt
+++ b/test/prism/snapshots/seattlerb/bdot2.txt
@@ -8,7 +8,8 @@
│ ├── left: ∅
│ ├── right:
│ │ @ IntegerNode (location: (1,2)-(1,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ └── operator_loc: (1,0)-(1,2) = ".."
├── @ RangeNode (location: (2,2)-(2,5))
│ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/bdot3.txt b/test/prism/snapshots/seattlerb/bdot3.txt
index 27b87b1867..0c960f0458 100644
--- a/test/prism/snapshots/seattlerb/bdot3.txt
+++ b/test/prism/snapshots/seattlerb/bdot3.txt
@@ -8,7 +8,8 @@
│ ├── left: ∅
│ ├── right:
│ │ @ IntegerNode (location: (1,3)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ └── operator_loc: (1,0)-(1,3) = "..."
├── @ RangeNode (location: (2,2)-(2,6))
│ ├── flags: exclude_end
diff --git a/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt b/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt
index 686fa100f1..6603e5c894 100644
--- a/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt
+++ b/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt
@@ -9,7 +9,8 @@
│ @ StatementsNode (location: (2,2)-(2,3))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (2,2)-(2,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── rescue_clause:
│ @ RescueNode (location: (3,0)-(4,3))
│ ├── keyword_loc: (3,0)-(3,6) = "rescue"
@@ -20,7 +21,8 @@
│ │ @ StatementsNode (location: (4,2)-(4,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (4,2)-(4,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── consequent: ∅
├── else_clause:
│ @ ElseNode (location: (5,0)-(7,6))
@@ -29,7 +31,8 @@
│ │ @ StatementsNode (location: (6,2)-(6,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (6,2)-(6,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── end_keyword_loc: (7,0)-(7,6) = "ensure"
├── ensure_clause:
│ @ EnsureNode (location: (7,0)-(9,3))
@@ -38,6 +41,7 @@
│ │ @ StatementsNode (location: (8,2)-(8,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (8,2)-(8,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 4
│ └── end_keyword_loc: (9,0)-(9,3) = "end"
└── end_keyword_loc: (9,0)-(9,3) = "end"
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 8916d7b9d1..ee9644d59d 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,9)-(1,10) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (1,13)-(1,14))
diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
index 3167d249bd..799bd21057 100644
--- a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,15)-(1,17))
│ │ │ ├── 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 b82f363dc2..b5df136a62 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
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,9)-(1,10) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,13)-(1,15))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/block_arg_optional.txt b/test/prism/snapshots/seattlerb/block_arg_optional.txt
index fe5c06ab7d..8a850e9a21 100644
--- a/test/prism/snapshots/seattlerb/block_arg_optional.txt
+++ b/test/prism/snapshots/seattlerb/block_arg_optional.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/block_args_opt1.txt b/test/prism/snapshots/seattlerb/block_args_opt1.txt
index 4c06f82954..1f21c0a477 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt1.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt1.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/block_args_opt2.txt b/test/prism/snapshots/seattlerb/block_args_opt2.txt
index a7fb2d50a6..a8d736dde7 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt2.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt2.txt
@@ -28,7 +28,8 @@
│ │ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ OptionalParameterNode (location: (1,11)-(1,14))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :c
@@ -36,7 +37,8 @@
│ │ │ ├── operator_loc: (1,12)-(1,13) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,13)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
index 26cfc32887..0403851ed7 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt
@@ -31,7 +31,8 @@
│ │ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── @ OptionalParameterNode (location: (1,16)-(1,22))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :c
@@ -39,7 +40,8 @@
│ │ │ ├── operator_loc: (1,18)-(1,19) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,20)-(1,22))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 24
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/block_args_opt3.txt b/test/prism/snapshots/seattlerb/block_args_opt3.txt
index 2eb98c3c90..ff4495019c 100644
--- a/test/prism/snapshots/seattlerb/block_args_opt3.txt
+++ b/test/prism/snapshots/seattlerb/block_args_opt3.txt
@@ -31,7 +31,8 @@
│ │ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── @ OptionalParameterNode (location: (1,16)-(1,22))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :c
@@ -39,7 +40,8 @@
│ │ │ ├── operator_loc: (1,18)-(1,19) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,20)-(1,22))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 24
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/block_kw.txt b/test/prism/snapshots/seattlerb/block_kw.txt
index 36db338271..f022637dae 100644
--- a/test/prism/snapshots/seattlerb/block_kw.txt
+++ b/test/prism/snapshots/seattlerb/block_kw.txt
@@ -30,7 +30,8 @@
│ │ │ ├── name_loc: (1,8)-(1,10) = "k:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,10)-(1,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── locals: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/block_opt_arg.txt b/test/prism/snapshots/seattlerb/block_opt_arg.txt
index 2e53540491..64dc928f14 100644
--- a/test/prism/snapshots/seattlerb/block_opt_arg.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_arg.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,6)-(1,7) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (1,10)-(1,11))
diff --git a/test/prism/snapshots/seattlerb/block_opt_splat.txt b/test/prism/snapshots/seattlerb/block_opt_splat.txt
index c15380150c..c18df9c27d 100644
--- a/test/prism/snapshots/seattlerb/block_opt_splat.txt
+++ b/test/prism/snapshots/seattlerb/block_opt_splat.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,12)-(1,14))
│ │ │ ├── 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 da383a3c88..3806809d2b 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
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,6)-(1,7) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,10)-(1,12))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/bug202.txt b/test/prism/snapshots/seattlerb/bug202.txt
index 3faff193dc..377b53727e 100644
--- a/test/prism/snapshots/seattlerb/bug202.txt
+++ b/test/prism/snapshots/seattlerb/bug202.txt
@@ -8,7 +8,8 @@
│ ├── name_loc: (1,0)-(1,7) = "$测试"
│ ├── value:
│ │ @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,8)-(1,9) = "="
└── @ LocalVariableWriteNode (location: (2,0)-(2,10))
├── name: :测试
@@ -16,5 +17,6 @@
├── name_loc: (2,0)-(2,6) = "测试"
├── value:
│ @ IntegerNode (location: (2,9)-(2,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── operator_loc: (2,7)-(2,8) = "="
diff --git a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt
index 8c64721870..53d6f9220b 100644
--- a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt
+++ b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt
@@ -27,11 +27,13 @@
│ │ │ │ │ @ StatementsNode (location: (2,12)-(2,13))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (2,12)-(2,13))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── opening_loc: (2,10)-(2,11) = "("
│ │ │ │ └── closing_loc: (2,13)-(2,14) = ")"
│ │ │ └── @ IntegerNode (location: (2,16)-(2,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
@@ -65,11 +67,13 @@
│ │ │ │ │ @ StatementsNode (location: (7,11)-(7,12))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (7,11)-(7,12))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── opening_loc: (7,10)-(7,11) = "("
│ │ │ │ └── closing_loc: (7,12)-(7,13) = ")"
│ │ │ └── @ IntegerNode (location: (7,15)-(7,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: []
@@ -95,10 +99,12 @@
│ │ │ @ StatementsNode (location: (11,4)-(11,5))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (11,4)-(11,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (11,2)-(11,3) = "("
│ │ └── closing_loc: (11,5)-(11,6) = ")"
│ └── @ IntegerNode (location: (11,8)-(11,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_and.txt b/test/prism/snapshots/seattlerb/call_and.txt
index 8c6bf2f2e3..d3e88b3f9e 100644
--- a/test/prism/snapshots/seattlerb/call_and.txt
+++ b/test/prism/snapshots/seattlerb/call_and.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :&
├── message_loc: (1,2)-(1,3) = "&"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_arg_assoc.txt b/test/prism/snapshots/seattlerb/call_arg_assoc.txt
index f547c2183e..27c19fd339 100644
--- a/test/prism/snapshots/seattlerb/call_arg_assoc.txt
+++ b/test/prism/snapshots/seattlerb/call_arg_assoc.txt
@@ -15,17 +15,20 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (1,5)-(1,9))
│ ├── flags: ∅
│ └── elements: (length: 1)
│ └── @ AssocNode (location: (1,5)-(1,9))
│ ├── key:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── value:
│ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (1,6)-(1,8) = "=>"
├── closing_loc: (1,9)-(1,10) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt b/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
index a16c652ae4..0193eb1dfc 100644
--- a/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
@@ -15,7 +15,8 @@
│ ├── flags: contains_keyword_splat
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (1,5)-(1,15))
│ ├── flags: ∅
│ └── elements: (length: 2)
@@ -29,12 +30,14 @@
│ │ │ └── unescaped: "kw"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ └── @ AssocSplatNode (location: (1,12)-(1,15))
│ ├── value:
│ │ @ IntegerNode (location: (1,14)-(1,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (1,12)-(1,14) = "**"
├── closing_loc: (1,15)-(1,16) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt
index ecb8157723..91c7725525 100644
--- a/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt
@@ -30,7 +30,8 @@
│ └── @ AssocSplatNode (location: (1,5)-(1,8))
│ ├── value:
│ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,5)-(1,7) = "**"
├── closing_loc: (1,8)-(1,9) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt b/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt
index cb048dba8f..2d6f81c818 100644
--- a/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt
+++ b/test/prism/snapshots/seattlerb/call_args_assoc_quoted.txt
@@ -41,7 +41,8 @@
│ │ │ └── closing_loc: (1,7)-(1,9) = "\":"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -69,7 +70,8 @@
│ │ │ └── unescaped: "k"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,6)-(3,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -97,7 +99,8 @@
│ │ └── unescaped: "k"
│ ├── value:
│ │ @ IntegerNode (location: (5,6)-(5,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ └── operator_loc: ∅
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt b/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt
index 0cd275ee71..312a1981a0 100644
--- a/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt
+++ b/test/prism/snapshots/seattlerb/call_args_assoc_trailing_comma.txt
@@ -15,17 +15,20 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (1,5)-(1,9))
│ ├── flags: ∅
│ └── elements: (length: 1)
│ └── @ AssocNode (location: (1,5)-(1,9))
│ ├── key:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── value:
│ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (1,6)-(1,8) = "=>"
├── closing_loc: (1,10)-(1,11) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_args_command.txt b/test/prism/snapshots/seattlerb/call_args_command.txt
index a8ef0c14db..f4a55ff58c 100644
--- a/test/prism/snapshots/seattlerb/call_args_command.txt
+++ b/test/prism/snapshots/seattlerb/call_args_command.txt
@@ -46,7 +46,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,8)-(1,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── closing_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/call_array_arg.txt b/test/prism/snapshots/seattlerb/call_array_arg.txt
index 3558ad0f0b..95d2f4859d 100644
--- a/test/prism/snapshots/seattlerb/call_array_arg.txt
+++ b/test/prism/snapshots/seattlerb/call_array_arg.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :==
├── message_loc: (1,2)-(1,4) = "=="
diff --git a/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt b/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt
index e1bd056fd4..091e21c00a 100644
--- a/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt
+++ b/test/prism/snapshots/seattlerb/call_array_lit_inline_hash.txt
@@ -36,7 +36,8 @@
│ │ │ └── unescaped: "c"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,13)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,10)-(1,12) = "=>"
│ ├── opening_loc: (1,2)-(1,3) = "["
│ └── closing_loc: (1,14)-(1,15) = "]"
diff --git a/test/prism/snapshots/seattlerb/call_assoc.txt b/test/prism/snapshots/seattlerb/call_assoc.txt
index 58ef23e7ec..438c256553 100644
--- a/test/prism/snapshots/seattlerb/call_assoc.txt
+++ b/test/prism/snapshots/seattlerb/call_assoc.txt
@@ -20,10 +20,12 @@
│ └── @ AssocNode (location: (1,2)-(1,6))
│ ├── key:
│ │ @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── value:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (1,3)-(1,5) = "=>"
├── closing_loc: (1,6)-(1,7) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_assoc_new.txt b/test/prism/snapshots/seattlerb/call_assoc_new.txt
index bd31becaca..b4d7e0bf83 100644
--- a/test/prism/snapshots/seattlerb/call_assoc_new.txt
+++ b/test/prism/snapshots/seattlerb/call_assoc_new.txt
@@ -27,7 +27,8 @@
│ │ └── unescaped: "a"
│ ├── value:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: ∅
├── closing_loc: (1,5)-(1,6) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt b/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt
index 6f2b1fa876..9587e2e074 100644
--- a/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt
+++ b/test/prism/snapshots/seattlerb/call_assoc_new_if_multiline.txt
@@ -40,7 +40,8 @@
│ │ │ @ StatementsNode (location: (2,0)-(2,1))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (2,0)-(2,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── consequent:
│ │ │ @ ElseNode (location: (3,0)-(5,3))
│ │ │ ├── else_keyword_loc: (3,0)-(3,4) = "else"
@@ -48,7 +49,8 @@
│ │ │ │ @ StatementsNode (location: (4,0)-(4,1))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (4,0)-(4,1))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
│ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
│ └── operator_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt b/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt
index dbc5d9095a..8d0b285172 100644
--- a/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt
+++ b/test/prism/snapshots/seattlerb/call_assoc_trailing_comma.txt
@@ -20,10 +20,12 @@
│ └── @ AssocNode (location: (1,2)-(1,6))
│ ├── key:
│ │ @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── value:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (1,3)-(1,5) = "=>"
├── closing_loc: (1,7)-(1,8) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_bang_command_call.txt b/test/prism/snapshots/seattlerb/call_bang_command_call.txt
index 2dca64ab31..5e4e10d953 100644
--- a/test/prism/snapshots/seattlerb/call_bang_command_call.txt
+++ b/test/prism/snapshots/seattlerb/call_bang_command_call.txt
@@ -28,7 +28,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,6)-(1,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── call_operator_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/call_bang_squiggle.txt b/test/prism/snapshots/seattlerb/call_bang_squiggle.txt
index ba7dcfa262..bf11bc0136 100644
--- a/test/prism/snapshots/seattlerb/call_bang_squiggle.txt
+++ b/test/prism/snapshots/seattlerb/call_bang_squiggle.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :!~
├── message_loc: (1,2)-(1,4) = "!~"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_carat.txt b/test/prism/snapshots/seattlerb/call_carat.txt
index 7c0fdbc7bc..856e9a7847 100644
--- a/test/prism/snapshots/seattlerb/call_carat.txt
+++ b/test/prism/snapshots/seattlerb/call_carat.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :^
├── message_loc: (1,2)-(1,3) = "^"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_colon_parens.txt b/test/prism/snapshots/seattlerb/call_colon_parens.txt
index 5522d7b39d..6d10171a2b 100644
--- a/test/prism/snapshots/seattlerb/call_colon_parens.txt
+++ b/test/prism/snapshots/seattlerb/call_colon_parens.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: (1,1)-(1,3) = "::"
├── name: :call
├── message_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/call_div.txt b/test/prism/snapshots/seattlerb/call_div.txt
index bc4e4c94cf..ba62fb87bd 100644
--- a/test/prism/snapshots/seattlerb/call_div.txt
+++ b/test/prism/snapshots/seattlerb/call_div.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :/
├── message_loc: (1,2)-(1,3) = "/"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_dot_parens.txt b/test/prism/snapshots/seattlerb/call_dot_parens.txt
index 8c0989c7bc..c9b7084699 100644
--- a/test/prism/snapshots/seattlerb/call_dot_parens.txt
+++ b/test/prism/snapshots/seattlerb/call_dot_parens.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: (1,1)-(1,2) = "."
├── name: :call
├── message_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/call_eq3.txt b/test/prism/snapshots/seattlerb/call_eq3.txt
index 4a31d62679..e636e15725 100644
--- a/test/prism/snapshots/seattlerb/call_eq3.txt
+++ b/test/prism/snapshots/seattlerb/call_eq3.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :===
├── message_loc: (1,2)-(1,5) = "==="
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_gt.txt b/test/prism/snapshots/seattlerb/call_gt.txt
index 5d766435da..a6f19e5adf 100644
--- a/test/prism/snapshots/seattlerb/call_gt.txt
+++ b/test/prism/snapshots/seattlerb/call_gt.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :>
├── message_loc: (1,2)-(1,3) = ">"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_kwsplat.txt b/test/prism/snapshots/seattlerb/call_kwsplat.txt
index f3570bbe13..4199e97a44 100644
--- a/test/prism/snapshots/seattlerb/call_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/call_kwsplat.txt
@@ -20,7 +20,8 @@
│ └── @ AssocSplatNode (location: (1,2)-(1,5))
│ ├── value:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,2)-(1,4) = "**"
├── closing_loc: (1,5)-(1,6) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_lt.txt b/test/prism/snapshots/seattlerb/call_lt.txt
index 11308d4664..14f50585d9 100644
--- a/test/prism/snapshots/seattlerb/call_lt.txt
+++ b/test/prism/snapshots/seattlerb/call_lt.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :<
├── message_loc: (1,2)-(1,3) = "<"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_lte.txt b/test/prism/snapshots/seattlerb/call_lte.txt
index 3bf6cfd433..665a99d60a 100644
--- a/test/prism/snapshots/seattlerb/call_lte.txt
+++ b/test/prism/snapshots/seattlerb/call_lte.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :<=
├── message_loc: (1,2)-(1,4) = "<="
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_not.txt b/test/prism/snapshots/seattlerb/call_not.txt
index a370633ed3..86c6892303 100644
--- a/test/prism/snapshots/seattlerb/call_not.txt
+++ b/test/prism/snapshots/seattlerb/call_not.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,4)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── call_operator_loc: ∅
├── name: :!
├── message_loc: (1,0)-(1,3) = "not"
diff --git a/test/prism/snapshots/seattlerb/call_pipe.txt b/test/prism/snapshots/seattlerb/call_pipe.txt
index 2300d68c77..855e986ef6 100644
--- a/test/prism/snapshots/seattlerb/call_pipe.txt
+++ b/test/prism/snapshots/seattlerb/call_pipe.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :|
├── message_loc: (1,2)-(1,3) = "|"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_rshift.txt b/test/prism/snapshots/seattlerb/call_rshift.txt
index 53fcc9cbbe..26e593db18 100644
--- a/test/prism/snapshots/seattlerb/call_rshift.txt
+++ b/test/prism/snapshots/seattlerb/call_rshift.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :>>
├── message_loc: (1,2)-(1,4) = ">>"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_self_brackets.txt b/test/prism/snapshots/seattlerb/call_self_brackets.txt
index 0e03b3dfdf..16ca69b5c2 100644
--- a/test/prism/snapshots/seattlerb/call_self_brackets.txt
+++ b/test/prism/snapshots/seattlerb/call_self_brackets.txt
@@ -16,6 +16,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (1,6)-(1,7) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_spaceship.txt b/test/prism/snapshots/seattlerb/call_spaceship.txt
index 450a45b749..8d43c3f971 100644
--- a/test/prism/snapshots/seattlerb/call_spaceship.txt
+++ b/test/prism/snapshots/seattlerb/call_spaceship.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :<=>
├── message_loc: (1,2)-(1,5) = "<=>"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
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 295a68dcba..242db9e9cb 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
@@ -24,7 +24,8 @@
│ @ StatementsNode (location: (1,8)-(1,9))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,8)-(1,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block:
@ BlockNode (location: (1,14)-(1,22))
@@ -34,6 +35,7 @@
│ @ StatementsNode (location: (1,17)-(1,18))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,17)-(1,18))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: (1,14)-(1,16) = "do"
└── closing_loc: (1,19)-(1,22) = "end"
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 ee2a20aabd..7c3ab8dad8 100644
--- a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
+++ b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt
@@ -24,7 +24,8 @@
│ @ StatementsNode (location: (1,7)-(1,8))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block:
@ BlockNode (location: (1,11)-(1,19))
@@ -34,6 +35,7 @@
│ @ StatementsNode (location: (1,14)-(1,15))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,14)-(1,15))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: (1,11)-(1,13) = "do"
└── closing_loc: (1,16)-(1,19) = "end"
diff --git a/test/prism/snapshots/seattlerb/call_star.txt b/test/prism/snapshots/seattlerb/call_star.txt
index ba3099a0c6..49aee1672c 100644
--- a/test/prism/snapshots/seattlerb/call_star.txt
+++ b/test/prism/snapshots/seattlerb/call_star.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :*
├── message_loc: (1,2)-(1,3) = "*"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_star2.txt b/test/prism/snapshots/seattlerb/call_star2.txt
index d6f112fc2c..cc2532cc7c 100644
--- a/test/prism/snapshots/seattlerb/call_star2.txt
+++ b/test/prism/snapshots/seattlerb/call_star2.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :**
├── message_loc: (1,2)-(1,4) = "**"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_trailing_comma.txt b/test/prism/snapshots/seattlerb/call_trailing_comma.txt
index 84c34d2e9e..fe28a3ad3e 100644
--- a/test/prism/snapshots/seattlerb/call_trailing_comma.txt
+++ b/test/prism/snapshots/seattlerb/call_trailing_comma.txt
@@ -15,6 +15,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,2)-(1,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (1,4)-(1,5) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/call_unary_bang.txt b/test/prism/snapshots/seattlerb/call_unary_bang.txt
index 03b295254a..782cc83b10 100644
--- a/test/prism/snapshots/seattlerb/call_unary_bang.txt
+++ b/test/prism/snapshots/seattlerb/call_unary_bang.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,1)-(1,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :!
├── message_loc: (1,0)-(1,1) = "!"
diff --git a/test/prism/snapshots/seattlerb/case_in.txt b/test/prism/snapshots/seattlerb/case_in.txt
index 496909e4df..6a1cc56da6 100644
--- a/test/prism/snapshots/seattlerb/case_in.txt
+++ b/test/prism/snapshots/seattlerb/case_in.txt
@@ -193,7 +193,8 @@
│ │ │ ├── left: ∅
│ │ │ ├── right:
│ │ │ │ @ IntegerNode (location: (22,7)-(22,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 10
│ │ │ └── operator_loc: (22,4)-(22,7) = "..."
│ │ ├── statements: ∅
│ │ ├── in_loc: (22,0)-(22,2) = "in"
@@ -217,7 +218,8 @@
│ │ │ ├── left: ∅
│ │ │ ├── right:
│ │ │ │ @ IntegerNode (location: (26,6)-(26,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 10
│ │ │ └── operator_loc: (26,4)-(26,6) = ".."
│ │ ├── statements: ∅
│ │ ├── in_loc: (26,0)-(26,2) = "in"
@@ -240,7 +242,8 @@
│ │ │ ├── flags: exclude_end
│ │ │ ├── left:
│ │ │ │ @ IntegerNode (location: (30,4)-(30,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── right: ∅
│ │ │ └── operator_loc: (30,5)-(30,8) = "..."
│ │ ├── statements: ∅
@@ -264,10 +267,12 @@
│ │ │ ├── flags: exclude_end
│ │ │ ├── left:
│ │ │ │ @ IntegerNode (location: (34,4)-(34,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── right:
│ │ │ │ @ IntegerNode (location: (34,8)-(34,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 3
│ │ │ └── operator_loc: (34,5)-(34,8) = "..."
│ │ ├── statements: ∅
│ │ ├── in_loc: (34,0)-(34,2) = "in"
@@ -287,7 +292,8 @@
│ │ └── @ InNode (location: (38,0)-(38,6))
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (38,4)-(38,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── statements: ∅
│ │ ├── in_loc: (38,0)-(38,2) = "in"
│ │ └── then_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/case_in_67.txt b/test/prism/snapshots/seattlerb/case_in_67.txt
index 72c7f56763..4bab417d57 100644
--- a/test/prism/snapshots/seattlerb/case_in_67.txt
+++ b/test/prism/snapshots/seattlerb/case_in_67.txt
@@ -18,7 +18,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (2,3)-(2,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (2,4)-(2,6) = ".."
│ ├── statements:
diff --git a/test/prism/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt b/test/prism/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt
index 052468bcc4..4c8cfd0e54 100644
--- a/test/prism/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt
+++ b/test/prism/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt
@@ -29,7 +29,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (2,8)-(2,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── operator_loc: ∅
│ │ ├── rest: ∅
│ │ ├── opening_loc: (2,4)-(2,5) = "("
diff --git a/test/prism/snapshots/seattlerb/cond_unary_minus.txt b/test/prism/snapshots/seattlerb/cond_unary_minus.txt
index 0d112d7203..b6e12dfb15 100644
--- a/test/prism/snapshots/seattlerb/cond_unary_minus.txt
+++ b/test/prism/snapshots/seattlerb/cond_unary_minus.txt
@@ -7,7 +7,8 @@
├── if_keyword_loc: (1,0)-(1,2) = "if"
├── predicate:
│ @ IntegerNode (location: (1,3)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: -1
├── then_keyword_loc: ∅
├── statements: ∅
├── consequent: ∅
diff --git a/test/prism/snapshots/seattlerb/const_2_op_asgn_or2.txt b/test/prism/snapshots/seattlerb/const_2_op_asgn_or2.txt
index 332c7ff302..b018ac48d4 100644
--- a/test/prism/snapshots/seattlerb/const_2_op_asgn_or2.txt
+++ b/test/prism/snapshots/seattlerb/const_2_op_asgn_or2.txt
@@ -20,4 +20,5 @@
├── operator_loc: (1,7)-(1,10) = "||="
└── value:
@ IntegerNode (location: (1,11)-(1,12))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/const_3_op_asgn_or.txt b/test/prism/snapshots/seattlerb/const_3_op_asgn_or.txt
index e7130cc1b3..8d9d94931b 100644
--- a/test/prism/snapshots/seattlerb/const_3_op_asgn_or.txt
+++ b/test/prism/snapshots/seattlerb/const_3_op_asgn_or.txt
@@ -14,4 +14,5 @@
├── operator_loc: (1,4)-(1,7) = "||="
└── value:
@ IntegerNode (location: (1,8)-(1,9))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/const_op_asgn_and1.txt b/test/prism/snapshots/seattlerb/const_op_asgn_and1.txt
index c4c5534f92..b1d61b3752 100644
--- a/test/prism/snapshots/seattlerb/const_op_asgn_and1.txt
+++ b/test/prism/snapshots/seattlerb/const_op_asgn_and1.txt
@@ -14,5 +14,6 @@
├── operator_loc: (1,4)-(1,6) = "&="
├── value:
│ @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── operator: :&
diff --git a/test/prism/snapshots/seattlerb/const_op_asgn_and2.txt b/test/prism/snapshots/seattlerb/const_op_asgn_and2.txt
index ef9ee358b9..22f6682534 100644
--- a/test/prism/snapshots/seattlerb/const_op_asgn_and2.txt
+++ b/test/prism/snapshots/seattlerb/const_op_asgn_and2.txt
@@ -14,4 +14,5 @@
├── operator_loc: (1,4)-(1,7) = "&&="
└── value:
@ IntegerNode (location: (1,8)-(1,9))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/const_op_asgn_or.txt b/test/prism/snapshots/seattlerb/const_op_asgn_or.txt
index 7afc8882e9..067e0fbb93 100644
--- a/test/prism/snapshots/seattlerb/const_op_asgn_or.txt
+++ b/test/prism/snapshots/seattlerb/const_op_asgn_or.txt
@@ -16,4 +16,5 @@
├── operator_loc: (1,5)-(1,8) = "||="
└── value:
@ IntegerNode (location: (1,9)-(1,10))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/defined_eh_parens.txt b/test/prism/snapshots/seattlerb/defined_eh_parens.txt
index b03666c7e4..49b577fcd1 100644
--- a/test/prism/snapshots/seattlerb/defined_eh_parens.txt
+++ b/test/prism/snapshots/seattlerb/defined_eh_parens.txt
@@ -7,6 +7,7 @@
├── lparen_loc: (1,8)-(1,9) = "("
├── value:
│ @ IntegerNode (location: (1,9)-(1,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── rparen_loc: (1,11)-(1,12) = ")"
└── keyword_loc: (1,0)-(1,8) = "defined?"
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command.txt b/test/prism/snapshots/seattlerb/defn_endless_command.txt
index b75ef779bb..c3ea59282a 100644
--- a/test/prism/snapshots/seattlerb/defn_endless_command.txt
+++ b/test/prism/snapshots/seattlerb/defn_endless_command.txt
@@ -23,7 +23,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,31)-(1,33))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt
index 487be865ea..dfd1d01ba8 100644
--- a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt
@@ -25,13 +25,15 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,31)-(1,33))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── keyword_loc: (1,34)-(1,40) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (1,41)-(1,43))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 24
├── locals: []
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt
index d0f2cbada6..8a5022ff37 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt
@@ -23,14 +23,16 @@
│ │ │ ├── name_loc: (1,9)-(1,11) = "b:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ OptionalKeywordParameterNode (location: (1,15)-(1,19))
│ │ ├── flags: ∅
│ │ ├── name: :c
│ │ ├── name_loc: (1,15)-(1,17) = "c:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,18)-(1,19))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt
index d6e867d77d..4c980bc27f 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,6)-(1,8) = "b:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest:
│ │ @ KeywordRestParameterNode (location: (1,12)-(1,15))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
index f5fb41836a..40afacc2a7 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,6)-(1,8) = "b:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest:
│ │ @ KeywordRestParameterNode (location: (1,12)-(1,14))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt b/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt
index 67d120e13b..bc5747ad02 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,6)-(1,8) = "a:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_val.txt b/test/prism/snapshots/seattlerb/defn_kwarg_val.txt
index 2b52aff2ca..82527f7875 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_val.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_val.txt
@@ -23,7 +23,8 @@
│ │ ├── name_loc: (1,9)-(1,11) = "b:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,11)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt b/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt
index be3dd8cb99..2708351ede 100644
--- a/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt
+++ b/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt
@@ -34,7 +34,8 @@
│ │ @ StatementsNode (location: (2,14)-(2,16))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (2,14)-(2,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── locals: [:o]
│ ├── def_keyword_loc: (2,2)-(2,5) = "def"
│ ├── operator_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt b/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt
index ba394bbf1a..3019e9b73e 100644
--- a/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt
+++ b/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt
@@ -18,7 +18,8 @@
│ │ ├── operator_loc: (1,9)-(1,10) = "="
│ │ └── value:
│ │ @ IntegerNode (location: (1,11)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── rest:
│ │ @ RestParameterNode (location: (1,14)-(1,16))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command.txt b/test/prism/snapshots/seattlerb/defs_endless_command.txt
index 70471e97ad..f3c4e79417 100644
--- a/test/prism/snapshots/seattlerb/defs_endless_command.txt
+++ b/test/prism/snapshots/seattlerb/defs_endless_command.txt
@@ -33,7 +33,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,33)-(1,35))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: []
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
index 1848d4233e..b0cd34a9c8 100644
--- a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
@@ -35,13 +35,15 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,33)-(1,35))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── keyword_loc: (1,36)-(1,42) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (1,43)-(1,45))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 24
├── locals: []
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: (1,5)-(1,6) = "."
diff --git a/test/prism/snapshots/seattlerb/defs_kwarg.txt b/test/prism/snapshots/seattlerb/defs_kwarg.txt
index 4a481ffe87..53235c9bb8 100644
--- a/test/prism/snapshots/seattlerb/defs_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/defs_kwarg.txt
@@ -21,7 +21,8 @@
│ │ ├── name_loc: (1,11)-(1,13) = "b:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,14)-(1,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt b/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt
index 15843bb1f8..fcc5c63cf0 100644
--- a/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt
+++ b/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt
@@ -35,7 +35,8 @@
│ │ @ StatementsNode (location: (2,19)-(2,21))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (2,19)-(2,21))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── locals: [:o]
│ ├── def_keyword_loc: (2,2)-(2,5) = "def"
│ ├── operator_loc: (2,10)-(2,11) = "."
diff --git a/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt b/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt
index 134993db01..da2306312c 100644
--- a/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt
+++ b/test/prism/snapshots/seattlerb/difficult1_line_numbers.txt
@@ -23,7 +23,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (2,4)-(2,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── @ CallNode (location: (3,2)-(3,7))
@@ -48,7 +49,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,6)-(3,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── @ CallNode (location: (4,2)-(4,10))
@@ -73,9 +75,11 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ IntegerNode (location: (4,6)-(4,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 3
│ │ │ └── @ IntegerNode (location: (4,9)-(4,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 4
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── @ CallNode (location: (5,2)-(5,7))
@@ -100,7 +104,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (5,6)-(5,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 5
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── @ CallNode (location: (6,2)-(6,10))
@@ -125,9 +130,11 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ IntegerNode (location: (6,6)-(6,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 6
│ │ │ └── @ IntegerNode (location: (6,9)-(6,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 7
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── @ CallNode (location: (7,2)-(7,6))
@@ -142,7 +149,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (7,4)-(7,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (7,5)-(7,6) = ")"
│ │ └── block: ∅
│ ├── @ CallNode (location: (8,2)-(8,8))
@@ -167,7 +175,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (8,6)-(8,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: (8,7)-(8,8) = ")"
│ │ └── block: ∅
│ ├── @ CallNode (location: (9,2)-(9,11))
@@ -192,9 +201,11 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ IntegerNode (location: (9,6)-(9,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 3
│ │ │ └── @ IntegerNode (location: (9,9)-(9,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 4
│ │ ├── closing_loc: (9,10)-(9,11) = ")"
│ │ └── block: ∅
│ ├── @ CallNode (location: (10,2)-(10,8))
@@ -219,7 +230,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (10,6)-(10,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 5
│ │ ├── closing_loc: (10,7)-(10,8) = ")"
│ │ └── block: ∅
│ └── @ CallNode (location: (11,2)-(11,11))
@@ -244,9 +256,11 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (11,6)-(11,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 6
│ │ └── @ IntegerNode (location: (11,9)-(11,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 7
│ ├── closing_loc: (11,10)-(11,11) = ")"
│ └── block: ∅
├── consequent: ∅
diff --git a/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt b/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt
index 014b688127..f586634c59 100644
--- a/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt
+++ b/test/prism/snapshots/seattlerb/difficult1_line_numbers2.txt
@@ -36,7 +36,8 @@
│ │ │ ├── name_loc: (3,2)-(3,3) = "b"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (3,6)-(3,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: (3,4)-(3,5) = "="
│ │ ├── @ CallNode (location: (4,2)-(4,5))
│ │ │ ├── flags: ignore_visibility
@@ -60,7 +61,8 @@
│ │ ├── name_loc: (5,2)-(5,3) = "c"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (5,5)-(5,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (5,4)-(5,5) = "="
│ ├── consequent: ∅
│ └── end_keyword_loc: (6,0)-(6,3) = "end"
diff --git a/test/prism/snapshots/seattlerb/difficult2_.txt b/test/prism/snapshots/seattlerb/difficult2_.txt
index 6680a28d6c..a9b3736fe3 100644
--- a/test/prism/snapshots/seattlerb/difficult2_.txt
+++ b/test/prism/snapshots/seattlerb/difficult2_.txt
@@ -7,7 +7,8 @@
│ ├── if_keyword_loc: ∅
│ ├── predicate:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── then_keyword_loc: (1,2)-(1,3) = "?"
│ ├── statements:
│ │ @ StatementsNode (location: (1,4)-(1,9))
@@ -38,7 +39,8 @@
│ │ │ @ StatementsNode (location: (1,12)-(1,13))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── end_keyword_loc: ∅
│ └── end_keyword_loc: ∅
└── @ CallNode (location: (2,0)-(2,6))
@@ -65,7 +67,8 @@
│ │ └── unescaped: "d"
│ ├── value:
│ │ @ IntegerNode (location: (2,5)-(2,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: ∅
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/difficult4__leading_dots2.txt b/test/prism/snapshots/seattlerb/difficult4__leading_dots2.txt
index c5868e193c..ee4370c0f0 100644
--- a/test/prism/snapshots/seattlerb/difficult4__leading_dots2.txt
+++ b/test/prism/snapshots/seattlerb/difficult4__leading_dots2.txt
@@ -4,11 +4,13 @@
@ StatementsNode (location: (1,0)-(2,3))
└── body: (length: 2)
├── @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ RangeNode (location: (2,0)-(2,3))
├── flags: ∅
├── left: ∅
├── right:
│ @ IntegerNode (location: (2,2)-(2,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
└── operator_loc: (2,0)-(2,2) = ".."
diff --git a/test/prism/snapshots/seattlerb/difficult6__7.txt b/test/prism/snapshots/seattlerb/difficult6__7.txt
index a135b3b41b..7fe70c7033 100644
--- a/test/prism/snapshots/seattlerb/difficult6__7.txt
+++ b/test/prism/snapshots/seattlerb/difficult6__7.txt
@@ -29,7 +29,8 @@
│ │ @ StatementsNode (location: (1,5)-(1,6))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (1,4)-(1,5) = "("
│ └── closing_loc: (1,6)-(1,7) = ")"
├── closing_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/difficult6__8.txt b/test/prism/snapshots/seattlerb/difficult6__8.txt
index a19057e44b..7f915e283c 100644
--- a/test/prism/snapshots/seattlerb/difficult6__8.txt
+++ b/test/prism/snapshots/seattlerb/difficult6__8.txt
@@ -29,7 +29,8 @@
│ │ @ StatementsNode (location: (1,6)-(1,7))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,6)-(1,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (1,5)-(1,6) = "("
│ └── closing_loc: (1,7)-(1,8) = ")"
├── closing_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/do_bug.txt b/test/prism/snapshots/seattlerb/do_bug.txt
index fa13e431d5..5877b18d68 100644
--- a/test/prism/snapshots/seattlerb/do_bug.txt
+++ b/test/prism/snapshots/seattlerb/do_bug.txt
@@ -15,7 +15,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
└── @ CallNode (location: (2,0)-(4,3))
diff --git a/test/prism/snapshots/seattlerb/eq_begin_line_numbers.txt b/test/prism/snapshots/seattlerb/eq_begin_line_numbers.txt
index 1fd43f6166..a5fc3951d6 100644
--- a/test/prism/snapshots/seattlerb/eq_begin_line_numbers.txt
+++ b/test/prism/snapshots/seattlerb/eq_begin_line_numbers.txt
@@ -4,6 +4,8 @@
@ StatementsNode (location: (1,0)-(6,1))
└── body: (length: 2)
├── @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ IntegerNode (location: (6,0)-(6,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 2
diff --git a/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt b/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt
index 6c28ff4ebe..2103bde8cb 100644
--- a/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt
+++ b/test/prism/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt
@@ -40,7 +40,8 @@
│ │ @ StatementsNode (location: (2,7)-(2,9))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (2,7)-(2,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── rescue_clause: ∅
│ ├── else_clause: ∅
│ ├── ensure_clause: ∅
diff --git a/test/prism/snapshots/seattlerb/f_kw.txt b/test/prism/snapshots/seattlerb/f_kw.txt
index dfb79f98c9..4226137925 100644
--- a/test/prism/snapshots/seattlerb/f_kw.txt
+++ b/test/prism/snapshots/seattlerb/f_kw.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,6)-(1,8) = "k:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,8)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/seattlerb/heredoc_lineno.txt b/test/prism/snapshots/seattlerb/heredoc_lineno.txt
index eb632218a4..a51ce71afe 100644
--- a/test/prism/snapshots/seattlerb/heredoc_lineno.txt
+++ b/test/prism/snapshots/seattlerb/heredoc_lineno.txt
@@ -21,5 +21,6 @@
├── name_loc: (7,0)-(7,1) = "d"
├── value:
│ @ IntegerNode (location: (7,4)-(7,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
└── operator_loc: (7,2)-(7,3) = "="
diff --git a/test/prism/snapshots/seattlerb/heredoc_nested.txt b/test/prism/snapshots/seattlerb/heredoc_nested.txt
index fde81dd586..4734068ba0 100644
--- a/test/prism/snapshots/seattlerb/heredoc_nested.txt
+++ b/test/prism/snapshots/seattlerb/heredoc_nested.txt
@@ -35,6 +35,7 @@
│ │ │ └── unescaped: "a\n"
│ │ └── closing_loc: (6,0)-(7,0) = "A\n"
│ └── @ IntegerNode (location: (7,0)-(7,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── opening_loc: (1,0)-(1,1) = "["
└── closing_loc: (7,1)-(7,2) = "]"
diff --git a/test/prism/snapshots/seattlerb/heredoc_squiggly_interp.txt b/test/prism/snapshots/seattlerb/heredoc_squiggly_interp.txt
index 8602ed3731..31360286c4 100644
--- a/test/prism/snapshots/seattlerb/heredoc_squiggly_interp.txt
+++ b/test/prism/snapshots/seattlerb/heredoc_squiggly_interp.txt
@@ -29,7 +29,8 @@
│ │ │ │ @ StatementsNode (location: (3,5)-(3,7))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (3,5)-(3,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 42
│ │ │ └── closing_loc: (3,7)-(3,8) = "}"
│ │ ├── @ StringNode (location: (3,8)-(4,0))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/if_elsif.txt b/test/prism/snapshots/seattlerb/if_elsif.txt
index 8ce1864e76..034850158c 100644
--- a/test/prism/snapshots/seattlerb/if_elsif.txt
+++ b/test/prism/snapshots/seattlerb/if_elsif.txt
@@ -7,7 +7,8 @@
├── if_keyword_loc: (1,0)-(1,2) = "if"
├── predicate:
│ @ IntegerNode (location: (1,3)-(1,4))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── then_keyword_loc: ∅
├── statements: ∅
├── consequent:
@@ -15,7 +16,8 @@
│ ├── if_keyword_loc: (1,6)-(1,11) = "elsif"
│ ├── predicate:
│ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── then_keyword_loc: ∅
│ ├── statements: ∅
│ ├── consequent: ∅
diff --git a/test/prism/snapshots/seattlerb/integer_with_if_modifier.txt b/test/prism/snapshots/seattlerb/integer_with_if_modifier.txt
index 7e0c8a2365..2108c1f0a0 100644
--- a/test/prism/snapshots/seattlerb/integer_with_if_modifier.txt
+++ b/test/prism/snapshots/seattlerb/integer_with_if_modifier.txt
@@ -12,6 +12,7 @@
│ @ StatementsNode (location: (1,0)-(1,5))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,0)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1234
├── consequent: ∅
└── end_keyword_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt b/test/prism/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt
index 955cd21033..ab231cf539 100644
--- a/test/prism/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt
+++ b/test/prism/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt
@@ -21,4 +21,5 @@
│ ├── opening_loc: (1,0)-(1,3) = "%I("
│ └── closing_loc: (4,0)-(4,1) = ")"
└── @ IntegerNode (location: (5,0)-(5,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/interpolated_word_array_line_breaks.txt b/test/prism/snapshots/seattlerb/interpolated_word_array_line_breaks.txt
index bc28bf8574..933e5de627 100644
--- a/test/prism/snapshots/seattlerb/interpolated_word_array_line_breaks.txt
+++ b/test/prism/snapshots/seattlerb/interpolated_word_array_line_breaks.txt
@@ -21,4 +21,5 @@
│ ├── opening_loc: (1,0)-(1,3) = "%W("
│ └── closing_loc: (4,0)-(4,1) = ")"
└── @ IntegerNode (location: (5,0)-(5,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/iter_args_10_1.txt b/test/prism/snapshots/seattlerb/iter_args_10_1.txt
index 14dbdc3c03..b8aaae800a 100644
--- a/test/prism/snapshots/seattlerb/iter_args_10_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_10_1.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,16)-(1,18))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_10_2.txt b/test/prism/snapshots/seattlerb/iter_args_10_2.txt
index c0bc6d4362..833f6429dc 100644
--- a/test/prism/snapshots/seattlerb/iter_args_10_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_10_2.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,16)-(1,18))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_11_1.txt b/test/prism/snapshots/seattlerb/iter_args_11_1.txt
index c7f86d414d..e4d2f79474 100644
--- a/test/prism/snapshots/seattlerb/iter_args_11_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_11_1.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,16)-(1,18))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_11_2.txt b/test/prism/snapshots/seattlerb/iter_args_11_2.txt
index 545f279008..07a0e5ed9d 100644
--- a/test/prism/snapshots/seattlerb/iter_args_11_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_11_2.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,16)-(1,18))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_6.txt b/test/prism/snapshots/seattlerb/iter_args_6.txt
index 768a5df47d..df3a405dff 100644
--- a/test/prism/snapshots/seattlerb/iter_args_6.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_6.txt
@@ -31,7 +31,8 @@
│ │ │ ├── operator_loc: (1,9)-(1,10) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,10)-(1,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (1,14)-(1,15))
diff --git a/test/prism/snapshots/seattlerb/iter_args_7_1.txt b/test/prism/snapshots/seattlerb/iter_args_7_1.txt
index 738c5f71ff..3f65fb8dc0 100644
--- a/test/prism/snapshots/seattlerb/iter_args_7_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_7_1.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,13)-(1,15))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_7_2.txt b/test/prism/snapshots/seattlerb/iter_args_7_2.txt
index da9cf45c0f..112a5a1b6b 100644
--- a/test/prism/snapshots/seattlerb/iter_args_7_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_7_2.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,13)-(1,15))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_8_1.txt b/test/prism/snapshots/seattlerb/iter_args_8_1.txt
index 4811772657..5591fcfc69 100644
--- a/test/prism/snapshots/seattlerb/iter_args_8_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_8_1.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,13)-(1,15))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_8_2.txt b/test/prism/snapshots/seattlerb/iter_args_8_2.txt
index a2019fce1b..8cb061d5a7 100644
--- a/test/prism/snapshots/seattlerb/iter_args_8_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_8_2.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,13)-(1,15))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/iter_args_9_1.txt b/test/prism/snapshots/seattlerb/iter_args_9_1.txt
index 5655080be4..70b2a6cb19 100644
--- a/test/prism/snapshots/seattlerb/iter_args_9_1.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_9_1.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (1,13)-(1,14))
diff --git a/test/prism/snapshots/seattlerb/iter_args_9_2.txt b/test/prism/snapshots/seattlerb/iter_args_9_2.txt
index ba21658660..cad8b47e7f 100644
--- a/test/prism/snapshots/seattlerb/iter_args_9_2.txt
+++ b/test/prism/snapshots/seattlerb/iter_args_9_2.txt
@@ -28,7 +28,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (1,13)-(1,14))
diff --git a/test/prism/snapshots/seattlerb/iter_kwarg.txt b/test/prism/snapshots/seattlerb/iter_kwarg.txt
index f5968e3340..13b9027661 100644
--- a/test/prism/snapshots/seattlerb/iter_kwarg.txt
+++ b/test/prism/snapshots/seattlerb/iter_kwarg.txt
@@ -30,7 +30,8 @@
│ │ │ ├── name_loc: (1,5)-(1,7) = "b:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── locals: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
index 14276baf88..321e15cb2b 100644
--- a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt
@@ -30,7 +30,8 @@
│ │ │ ├── name_loc: (1,5)-(1,7) = "b:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_rest:
│ │ │ @ KeywordRestParameterNode (location: (1,11)-(1,14))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/lasgn_arg_rescue_arg.txt b/test/prism/snapshots/seattlerb/lasgn_arg_rescue_arg.txt
index b1c234bff2..7bbef7055a 100644
--- a/test/prism/snapshots/seattlerb/lasgn_arg_rescue_arg.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_arg_rescue_arg.txt
@@ -11,9 +11,11 @@
│ @ RescueModifierNode (location: (1,4)-(1,14))
│ ├── expression:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_loc: (1,6)-(1,12) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (1,13)-(1,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,2)-(1,3) = "="
diff --git a/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt b/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt
index 9d19aea652..521fceaf1b 100644
--- a/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt
@@ -22,11 +22,13 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (1,7)-(1,8) = ")"
│ │ └── block: ∅
│ ├── keyword_loc: (1,9)-(1,15) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (1,16)-(1,17))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,2)-(1,3) = "="
diff --git a/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt b/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt
index ded4704a59..d730fb51cb 100644
--- a/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt
@@ -22,11 +22,13 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── keyword_loc: (1,8)-(1,14) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (1,15)-(1,16))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,2)-(1,3) = "="
diff --git a/test/prism/snapshots/seattlerb/lasgn_command.txt b/test/prism/snapshots/seattlerb/lasgn_command.txt
index 4b2409069c..d6ed787b26 100644
--- a/test/prism/snapshots/seattlerb/lasgn_command.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_command.txt
@@ -30,7 +30,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,8)-(1,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
└── operator_loc: (1,2)-(1,3) = "="
diff --git a/test/prism/snapshots/seattlerb/lasgn_env.txt b/test/prism/snapshots/seattlerb/lasgn_env.txt
index 33539a6918..a0ada99a9b 100644
--- a/test/prism/snapshots/seattlerb/lasgn_env.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_env.txt
@@ -9,5 +9,6 @@
├── name_loc: (1,0)-(1,1) = "a"
├── value:
│ @ IntegerNode (location: (1,4)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
└── operator_loc: (1,2)-(1,3) = "="
diff --git a/test/prism/snapshots/seattlerb/lasgn_ivar_env.txt b/test/prism/snapshots/seattlerb/lasgn_ivar_env.txt
index e37a331d51..5675730477 100644
--- a/test/prism/snapshots/seattlerb/lasgn_ivar_env.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_ivar_env.txt
@@ -8,5 +8,6 @@
├── name_loc: (1,0)-(1,2) = "@a"
├── value:
│ @ IntegerNode (location: (1,5)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
└── operator_loc: (1,3)-(1,4) = "="
diff --git a/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt b/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt
index c11ae14e19..bb4b64e88c 100644
--- a/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt
+++ b/test/prism/snapshots/seattlerb/lasgn_lasgn_command_call.txt
@@ -25,7 +25,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── operator_loc: (1,6)-(1,7) = "="
diff --git a/test/prism/snapshots/seattlerb/masgn_colon2.txt b/test/prism/snapshots/seattlerb/masgn_colon2.txt
index eb445420d3..73ce8a71da 100644
--- a/test/prism/snapshots/seattlerb/masgn_colon2.txt
+++ b/test/prism/snapshots/seattlerb/masgn_colon2.txt
@@ -34,8 +34,10 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,13)-(1,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: ∅
└── closing_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/masgn_colon3.txt b/test/prism/snapshots/seattlerb/masgn_colon3.txt
index f2880a4426..0cf4f8626d 100644
--- a/test/prism/snapshots/seattlerb/masgn_colon3.txt
+++ b/test/prism/snapshots/seattlerb/masgn_colon3.txt
@@ -27,8 +27,10 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (1,11)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,14)-(1,15))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: ∅
└── closing_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/masgn_command_call.txt b/test/prism/snapshots/seattlerb/masgn_command_call.txt
index aa0d17e436..687ea38243 100644
--- a/test/prism/snapshots/seattlerb/masgn_command_call.txt
+++ b/test/prism/snapshots/seattlerb/masgn_command_call.txt
@@ -37,6 +37,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,9)-(1,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/masgn_lhs_splat.txt b/test/prism/snapshots/seattlerb/masgn_lhs_splat.txt
index 7615d7d02b..771dd7c040 100644
--- a/test/prism/snapshots/seattlerb/masgn_lhs_splat.txt
+++ b/test/prism/snapshots/seattlerb/masgn_lhs_splat.txt
@@ -21,10 +21,13 @@
├── flags: ∅
├── elements: (length: 3)
│ ├── @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (1,8)-(1,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (1,11)-(1,12))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── opening_loc: ∅
└── closing_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/masgn_star.txt b/test/prism/snapshots/seattlerb/masgn_star.txt
index 22783c909d..3e01eef8a7 100644
--- a/test/prism/snapshots/seattlerb/masgn_star.txt
+++ b/test/prism/snapshots/seattlerb/masgn_star.txt
@@ -15,4 +15,5 @@
├── operator_loc: (1,2)-(1,3) = "="
└── value:
@ IntegerNode (location: (1,4)-(1,5))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt b/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt
index 6947ec4187..da10a474c3 100644
--- a/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt
+++ b/test/prism/snapshots/seattlerb/method_call_assoc_trailing_comma.txt
@@ -30,10 +30,12 @@
│ └── @ AssocNode (location: (1,4)-(1,8))
│ ├── key:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── value:
│ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (1,5)-(1,7) = "=>"
├── closing_loc: (1,9)-(1,10) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt b/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt
index 9fee71b503..edf79062cf 100644
--- a/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt
+++ b/test/prism/snapshots/seattlerb/method_call_trailing_comma.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (1,6)-(1,7) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/mlhs_rescue.txt b/test/prism/snapshots/seattlerb/mlhs_rescue.txt
index 3fe7f92d84..bd983cd3f9 100644
--- a/test/prism/snapshots/seattlerb/mlhs_rescue.txt
+++ b/test/prism/snapshots/seattlerb/mlhs_rescue.txt
@@ -32,4 +32,5 @@
├── keyword_loc: (1,9)-(1,15) = "rescue"
└── rescue_expression:
@ IntegerNode (location: (1,16)-(1,18))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 42
diff --git a/test/prism/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt b/test/prism/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt
index a39a6c1255..cbf4ec4a08 100644
--- a/test/prism/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt
+++ b/test/prism/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt
@@ -21,4 +21,5 @@
│ ├── opening_loc: (1,0)-(1,3) = "%i("
│ └── closing_loc: (4,0)-(4,1) = ")"
└── @ IntegerNode (location: (5,0)-(5,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt b/test/prism/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt
index 705ab476d6..e82f250098 100644
--- a/test/prism/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt
+++ b/test/prism/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt
@@ -21,4 +21,5 @@
│ ├── opening_loc: (1,0)-(1,3) = "%w("
│ └── closing_loc: (4,0)-(4,1) = ")"
└── @ IntegerNode (location: (5,0)-(5,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/op_asgn_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_command_call.txt
index cd97d440d3..54aa06214f 100644
--- a/test/prism/snapshots/seattlerb/op_asgn_command_call.txt
+++ b/test/prism/snapshots/seattlerb/op_asgn_command_call.txt
@@ -29,7 +29,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: ∅
│ └── block: ∅
├── name: :a
diff --git a/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt
index edf54a0c29..324c042b00 100644
--- a/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt
+++ b/test/prism/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt
@@ -26,6 +26,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,10)-(1,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt
index 9221c717c7..ddee4cde49 100644
--- a/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt
+++ b/test/prism/snapshots/seattlerb/op_asgn_index_command_call.txt
@@ -44,8 +44,10 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,12)-(1,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,15)-(1,16))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt
index 0416e0fa71..0daadcf6ff 100644
--- a/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt
+++ b/test/prism/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt
@@ -16,4 +16,5 @@
├── operator_loc: (1,5)-(1,7) = "+="
└── value:
@ IntegerNode (location: (1,8)-(1,9))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt b/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt
index 1fcad3e307..b3b5709193 100644
--- a/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt
+++ b/test/prism/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt
@@ -34,6 +34,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,10)-(1,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_line_block.txt b/test/prism/snapshots/seattlerb/parse_line_block.txt
index d5f5ee084b..623c08d50e 100644
--- a/test/prism/snapshots/seattlerb/parse_line_block.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_block.txt
@@ -9,7 +9,8 @@
│ ├── name_loc: (1,0)-(1,1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (1,4)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ └── operator_loc: (1,2)-(1,3) = "="
└── @ CallNode (location: (2,0)-(2,3))
├── flags: ignore_visibility
diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt
index 9a437d367c..50ccb762be 100644
--- a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt
@@ -43,7 +43,8 @@
│ │ ├── operator_loc: (3,4)-(3,6) = "*="
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,7)-(3,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── name: :y
│ │ ├── operator: :*
│ │ └── depth: 0
diff --git a/test/prism/snapshots/seattlerb/parse_line_dot2.txt b/test/prism/snapshots/seattlerb/parse_line_dot2.txt
index 4b01940a5f..9ccf5bdc99 100644
--- a/test/prism/snapshots/seattlerb/parse_line_dot2.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_dot2.txt
@@ -7,10 +7,12 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ ├── right:
│ │ @ IntegerNode (location: (2,0)-(2,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 4
│ └── operator_loc: (1,1)-(1,3) = ".."
├── @ RangeNode (location: (3,0)-(4,1))
│ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt b/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt
index b787120772..f85fdd6d4b 100644
--- a/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_dot2_open.txt
@@ -7,7 +7,8 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ ├── right: ∅
│ └── operator_loc: (1,1)-(1,3) = ".."
├── @ RangeNode (location: (2,2)-(2,5))
diff --git a/test/prism/snapshots/seattlerb/parse_line_dot3.txt b/test/prism/snapshots/seattlerb/parse_line_dot3.txt
index 0b2b90f860..6364c1f136 100644
--- a/test/prism/snapshots/seattlerb/parse_line_dot3.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_dot3.txt
@@ -7,10 +7,12 @@
│ ├── flags: exclude_end
│ ├── left:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ ├── right:
│ │ @ IntegerNode (location: (2,0)-(2,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 4
│ └── operator_loc: (1,1)-(1,4) = "..."
├── @ RangeNode (location: (3,0)-(4,1))
│ ├── flags: exclude_end
diff --git a/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt b/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt
index d2349ddb2b..35759d12e3 100644
--- a/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_dot3_open.txt
@@ -7,7 +7,8 @@
│ ├── flags: exclude_end
│ ├── left:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ ├── right: ∅
│ └── operator_loc: (1,1)-(1,4) = "..."
├── @ RangeNode (location: (2,2)-(2,6))
diff --git a/test/prism/snapshots/seattlerb/parse_line_hash_lit.txt b/test/prism/snapshots/seattlerb/parse_line_hash_lit.txt
index 410a54b7e3..0f95a607aa 100644
--- a/test/prism/snapshots/seattlerb/parse_line_hash_lit.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_hash_lit.txt
@@ -16,6 +16,7 @@
│ │ └── unescaped: "s1"
│ ├── value:
│ │ @ IntegerNode (location: (2,7)-(2,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (2,4)-(2,6) = "=>"
└── closing_loc: (3,0)-(3,1) = "}"
diff --git a/test/prism/snapshots/seattlerb/parse_line_multiline_str.txt b/test/prism/snapshots/seattlerb/parse_line_multiline_str.txt
index fa8c491047..8d4578eaec 100644
--- a/test/prism/snapshots/seattlerb/parse_line_multiline_str.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_multiline_str.txt
@@ -10,4 +10,5 @@
│ ├── closing_loc: (2,1)-(2,2) = "\""
│ └── unescaped: "a\nb"
└── @ IntegerNode (location: (3,0)-(3,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt b/test/prism/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt
index c72b516baa..49d31f5b1b 100644
--- a/test/prism/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt
@@ -10,4 +10,5 @@
│ ├── closing_loc: (1,5)-(1,6) = "\""
│ └── unescaped: "a\nb"
└── @ IntegerNode (location: (2,0)-(2,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/parse_line_return.txt b/test/prism/snapshots/seattlerb/parse_line_return.txt
index 9c4a5a1768..9194ae13ee 100644
--- a/test/prism/snapshots/seattlerb/parse_line_return.txt
+++ b/test/prism/snapshots/seattlerb/parse_line_return.txt
@@ -26,7 +26,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (3,17)-(3,19))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── consequent: ∅
│ └── end_keyword_loc: (4,8)-(4,11) = "end"
├── locals: []
diff --git a/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt b/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt
index 310507d26a..b767a5c17e 100644
--- a/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt
+++ b/test/prism/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :[]
├── message_loc: (1,1)-(1,8) = "[2=>3,]"
@@ -22,10 +23,12 @@
│ └── @ AssocNode (location: (1,2)-(1,6))
│ ├── key:
│ │ @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── value:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (1,3)-(1,5) = "=>"
├── closing_loc: (1,7)-(1,8) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt b/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt
index c1d086d5f3..d1d3d9335f 100644
--- a/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt
+++ b/test/prism/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt
@@ -7,7 +7,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: ∅
├── name: :[]
├── message_loc: (1,1)-(1,5) = "[2,]"
@@ -17,6 +18,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,2)-(1,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: (1,4)-(1,5) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_019.txt b/test/prism/snapshots/seattlerb/parse_pattern_019.txt
index 2ba406f186..9e2500fbde 100644
--- a/test/prism/snapshots/seattlerb/parse_pattern_019.txt
+++ b/test/prism/snapshots/seattlerb/parse_pattern_019.txt
@@ -6,7 +6,8 @@
└── @ CaseMatchNode (location: (1,0)-(4,3))
├── predicate:
│ @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── conditions: (length: 1)
│ └── @ InNode (location: (2,0)-(3,6))
│ ├── pattern:
@@ -14,10 +15,12 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (2,3)-(2,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: -1
│ │ ├── right:
│ │ │ @ IntegerNode (location: (2,7)-(2,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (2,5)-(2,7) = ".."
│ ├── statements:
│ │ @ StatementsNode (location: (3,2)-(3,6))
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_051.txt b/test/prism/snapshots/seattlerb/parse_pattern_051.txt
index 6ae0944d10..6c366e559f 100644
--- a/test/prism/snapshots/seattlerb/parse_pattern_051.txt
+++ b/test/prism/snapshots/seattlerb/parse_pattern_051.txt
@@ -9,11 +9,14 @@
│ ├── flags: ∅
│ ├── elements: (length: 3)
│ │ ├── @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 0
│ │ ├── @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (1,12)-(1,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (1,5)-(1,6) = "["
│ └── closing_loc: (1,13)-(1,14) = "]"
├── conditions: (length: 1)
@@ -23,9 +26,11 @@
│ │ ├── constant: ∅
│ │ ├── requireds: (length: 2)
│ │ │ ├── @ IntegerNode (location: (2,4)-(2,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ └── @ IntegerNode (location: (2,7)-(2,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ ImplicitRestNode (location: (2,8)-(2,9))
│ │ ├── posts: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_058.txt b/test/prism/snapshots/seattlerb/parse_pattern_058.txt
index f3ff72c35f..8a4f8f8a68 100644
--- a/test/prism/snapshots/seattlerb/parse_pattern_058.txt
+++ b/test/prism/snapshots/seattlerb/parse_pattern_058.txt
@@ -18,7 +18,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 0
│ │ └── operator_loc: ∅
│ └── closing_loc: (1,10)-(1,11) = "}"
├── conditions: (length: 1)
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt b/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt
index 383b4d5f2f..3507d0f2cf 100644
--- a/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt
+++ b/test/prism/snapshots/seattlerb/parse_pattern_058_2.txt
@@ -18,7 +18,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 0
│ │ └── operator_loc: ∅
│ └── closing_loc: (1,10)-(1,11) = "}"
├── conditions: (length: 1)
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_069.txt b/test/prism/snapshots/seattlerb/parse_pattern_069.txt
index e76c6d3f14..09ac7653c6 100644
--- a/test/prism/snapshots/seattlerb/parse_pattern_069.txt
+++ b/test/prism/snapshots/seattlerb/parse_pattern_069.txt
@@ -29,7 +29,8 @@
│ │ │ │ └── unescaped: "b"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (2,13)-(2,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ ├── rest: ∅
│ │ ├── opening_loc: (2,9)-(2,10) = "["
@@ -38,7 +39,8 @@
│ │ @ StatementsNode (location: (3,2)-(3,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (3,2)-(3,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── in_loc: (2,0)-(2,2) = "in"
│ └── then_loc: ∅
├── consequent: ∅
diff --git a/test/prism/snapshots/seattlerb/parse_pattern_076.txt b/test/prism/snapshots/seattlerb/parse_pattern_076.txt
index 8ae4b68547..60e71cd6fe 100644
--- a/test/prism/snapshots/seattlerb/parse_pattern_076.txt
+++ b/test/prism/snapshots/seattlerb/parse_pattern_076.txt
@@ -18,7 +18,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: ∅
│ └── closing_loc: (1,10)-(1,11) = "}"
├── conditions: (length: 1)
@@ -37,7 +38,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (2,7)-(2,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ ├── rest:
│ │ │ @ NoKeywordsParameterNode (location: (2,10)-(2,15))
diff --git a/test/prism/snapshots/seattlerb/qsymbols_interp.txt b/test/prism/snapshots/seattlerb/qsymbols_interp.txt
index ca300721cc..23c3930247 100644
--- a/test/prism/snapshots/seattlerb/qsymbols_interp.txt
+++ b/test/prism/snapshots/seattlerb/qsymbols_interp.txt
@@ -30,7 +30,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ ├── receiver:
│ │ │ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── name: :+
│ │ │ │ ├── message_loc: (1,9)-(1,10) = "+"
@@ -40,7 +41,8 @@
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── block: ∅
│ │ │ └── closing_loc: (1,11)-(1,12) = "}"
diff --git a/test/prism/snapshots/seattlerb/return_call_assocs.txt b/test/prism/snapshots/seattlerb/return_call_assocs.txt
index 3acf371744..69aae7b205 100644
--- a/test/prism/snapshots/seattlerb/return_call_assocs.txt
+++ b/test/prism/snapshots/seattlerb/return_call_assocs.txt
@@ -10,7 +10,8 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (1,10)-(1,17))
│ ├── flags: symbol_keys
│ └── elements: (length: 1)
@@ -24,7 +25,8 @@
│ │ └── unescaped: "z"
│ ├── value:
│ │ @ IntegerNode (location: (1,16)-(1,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,13)-(1,15) = "=>"
├── @ ReturnNode (location: (3,0)-(3,26))
│ ├── keyword_loc: (3,0)-(3,6) = "return"
@@ -33,7 +35,8 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (3,7)-(3,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (3,10)-(3,26))
│ ├── flags: symbol_keys
│ └── elements: (length: 2)
@@ -47,7 +50,8 @@
│ │ │ └── unescaped: "z"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,16)-(3,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (3,13)-(3,15) = "=>"
│ └── @ AssocNode (location: (3,19)-(3,26))
│ ├── key:
@@ -59,7 +63,8 @@
│ │ └── unescaped: "w"
│ ├── value:
│ │ @ IntegerNode (location: (3,25)-(3,26))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (3,22)-(3,24) = "=>"
├── @ ReturnNode (location: (5,0)-(5,14))
│ ├── keyword_loc: (5,0)-(5,6) = "return"
@@ -91,7 +96,8 @@
│ │ │ └── unescaped: "z"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (5,13)-(5,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (5,11)-(5,13) = "=>"
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -125,7 +131,8 @@
│ │ │ └── unescaped: "z"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (7,11)-(7,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -159,7 +166,8 @@
│ │ │ └── unescaped: "z"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (9,11)-(9,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: ∅
│ ├── closing_loc: (9,12)-(9,13) = ")"
│ └── block: ∅
@@ -197,7 +205,8 @@
│ │ └── block: ∅
│ ├── value:
│ │ @ IntegerNode (location: (11,12)-(11,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (11,10)-(11,12) = "=>"
├── closing_loc: (11,13)-(11,14) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/rhs_asgn.txt b/test/prism/snapshots/seattlerb/rhs_asgn.txt
index 61ed05f4e1..9ee187218b 100644
--- a/test/prism/snapshots/seattlerb/rhs_asgn.txt
+++ b/test/prism/snapshots/seattlerb/rhs_asgn.txt
@@ -6,7 +6,8 @@
└── @ MatchRequiredNode (location: (1,0)-(1,7))
├── value:
│ @ IntegerNode (location: (1,0)-(1,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── pattern:
│ @ LocalVariableTargetNode (location: (1,6)-(1,7))
│ ├── name: :n
diff --git a/test/prism/snapshots/seattlerb/ruby21_numbers.txt b/test/prism/snapshots/seattlerb/ruby21_numbers.txt
index e1ad6b924c..34a3452d1b 100644
--- a/test/prism/snapshots/seattlerb/ruby21_numbers.txt
+++ b/test/prism/snapshots/seattlerb/ruby21_numbers.txt
@@ -9,16 +9,19 @@
│ ├── @ ImaginaryNode (location: (1,1)-(1,3))
│ │ └── numeric:
│ │ @ IntegerNode (location: (1,1)-(1,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ RationalNode (location: (1,5)-(1,7))
│ │ └── numeric:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ ImaginaryNode (location: (1,9)-(1,12))
│ └── numeric:
│ @ RationalNode (location: (1,9)-(1,11))
│ └── numeric:
│ @ IntegerNode (location: (1,9)-(1,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── opening_loc: (1,0)-(1,1) = "["
└── closing_loc: (1,12)-(1,13) = "]"
diff --git a/test/prism/snapshots/seattlerb/safe_attrasgn.txt b/test/prism/snapshots/seattlerb/safe_attrasgn.txt
index 191fc53785..3cec95ae7c 100644
--- a/test/prism/snapshots/seattlerb/safe_attrasgn.txt
+++ b/test/prism/snapshots/seattlerb/safe_attrasgn.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt b/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt
index 10a5cc9495..baea063186 100644
--- a/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt
+++ b/test/prism/snapshots/seattlerb/safe_attrasgn_constant.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/safe_call_operator.txt b/test/prism/snapshots/seattlerb/safe_call_operator.txt
index a84a348f6e..d1f9b1ea9e 100644
--- a/test/prism/snapshots/seattlerb/safe_call_operator.txt
+++ b/test/prism/snapshots/seattlerb/safe_call_operator.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/safe_calls.txt b/test/prism/snapshots/seattlerb/safe_calls.txt
index 3b17d28026..54e591d9c0 100644
--- a/test/prism/snapshots/seattlerb/safe_calls.txt
+++ b/test/prism/snapshots/seattlerb/safe_calls.txt
@@ -35,6 +35,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,8)-(1,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (1,9)-(1,10) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/safe_op_asgn.txt b/test/prism/snapshots/seattlerb/safe_op_asgn.txt
index 1e00005bd0..7a9fd2b7f7 100644
--- a/test/prism/snapshots/seattlerb/safe_op_asgn.txt
+++ b/test/prism/snapshots/seattlerb/safe_op_asgn.txt
@@ -35,6 +35,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,10)-(1,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
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 c3d70b6a76..0b0000ef33 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
@@ -24,7 +24,8 @@
│ │ │ ├── operator_loc: (1,7)-(1,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (1,11)-(1,13))
│ │ │ ├── flags: ∅
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 9489b13a95..d7a268a5d5 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
@@ -40,7 +40,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (2,2)-(2,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (2,3)-(2,4) = ")"
│ └── block:
│ @ BlockNode (location: (2,5)-(3,3))
diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw.txt b/test/prism/snapshots/seattlerb/stabby_block_kw.txt
index fd6bab809c..7addbb8b28 100644
--- a/test/prism/snapshots/seattlerb/stabby_block_kw.txt
+++ b/test/prism/snapshots/seattlerb/stabby_block_kw.txt
@@ -23,7 +23,8 @@
│ │ │ ├── name_loc: (1,4)-(1,6) = "k:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,6)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── locals: (length: 0)
diff --git a/test/prism/snapshots/seattlerb/str_newline_hash_line_number.txt b/test/prism/snapshots/seattlerb/str_newline_hash_line_number.txt
index 89f20da7b5..d55d965068 100644
--- a/test/prism/snapshots/seattlerb/str_newline_hash_line_number.txt
+++ b/test/prism/snapshots/seattlerb/str_newline_hash_line_number.txt
@@ -10,4 +10,5 @@
│ ├── closing_loc: (1,10)-(1,11) = "\""
│ └── unescaped: "\n\n\n\n#"
└── @ IntegerNode (location: (2,0)-(2,1))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/seattlerb/str_pct_nested_nested.txt b/test/prism/snapshots/seattlerb/str_pct_nested_nested.txt
index 85ad89bc60..b9c39c9a93 100644
--- a/test/prism/snapshots/seattlerb/str_pct_nested_nested.txt
+++ b/test/prism/snapshots/seattlerb/str_pct_nested_nested.txt
@@ -26,7 +26,8 @@
│ │ │ │ │ @ StatementsNode (location: (1,11)-(1,12))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (1,11)-(1,12))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── closing_loc: (1,12)-(1,13) = "}"
│ │ │ └── closing_loc: (1,13)-(1,14) = "\""
│ │ └── closing_loc: (1,15)-(1,16) = "}"
diff --git a/test/prism/snapshots/seattlerb/super_arg.txt b/test/prism/snapshots/seattlerb/super_arg.txt
index a7f13a4adf..61b5f0b631 100644
--- a/test/prism/snapshots/seattlerb/super_arg.txt
+++ b/test/prism/snapshots/seattlerb/super_arg.txt
@@ -11,6 +11,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── rparen_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/thingy.txt b/test/prism/snapshots/seattlerb/thingy.txt
index 6fe6882062..4dd2ac44a6 100644
--- a/test/prism/snapshots/seattlerb/thingy.txt
+++ b/test/prism/snapshots/seattlerb/thingy.txt
@@ -25,7 +25,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,3)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── closing_loc: (1,5)-(1,6) = ")"
│ └── block: ∅
└── @ CallNode (location: (3,0)-(3,7))
@@ -50,6 +51,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (3,4)-(3,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── closing_loc: (3,6)-(3,7) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/utf8_bom.txt b/test/prism/snapshots/seattlerb/utf8_bom.txt
index 05fa1af463..9f0eb83b05 100644
--- a/test/prism/snapshots/seattlerb/utf8_bom.txt
+++ b/test/prism/snapshots/seattlerb/utf8_bom.txt
@@ -15,6 +15,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (2,2)-(2,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/seattlerb/words_interp.txt b/test/prism/snapshots/seattlerb/words_interp.txt
index 864f826dcb..dfead7d353 100644
--- a/test/prism/snapshots/seattlerb/words_interp.txt
+++ b/test/prism/snapshots/seattlerb/words_interp.txt
@@ -15,7 +15,8 @@
│ │ │ │ @ StatementsNode (location: (1,5)-(1,6))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (1,6)-(1,7) = "}"
│ │ └── @ StringNode (location: (1,7)-(1,8))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/yield_arg.txt b/test/prism/snapshots/seattlerb/yield_arg.txt
index d297e5acdb..22e0c14f83 100644
--- a/test/prism/snapshots/seattlerb/yield_arg.txt
+++ b/test/prism/snapshots/seattlerb/yield_arg.txt
@@ -11,5 +11,6 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
└── rparen_loc: ∅
diff --git a/test/prism/snapshots/seattlerb/yield_call_assocs.txt b/test/prism/snapshots/seattlerb/yield_call_assocs.txt
index 28ac198b70..c04273f5aa 100644
--- a/test/prism/snapshots/seattlerb/yield_call_assocs.txt
+++ b/test/prism/snapshots/seattlerb/yield_call_assocs.txt
@@ -11,7 +11,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ KeywordHashNode (location: (1,9)-(1,16))
│ │ ├── flags: symbol_keys
│ │ └── elements: (length: 1)
@@ -25,7 +26,8 @@
│ │ │ └── unescaped: "z"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,15)-(1,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,12)-(1,14) = "=>"
│ └── rparen_loc: ∅
├── @ YieldNode (location: (3,0)-(3,25))
@@ -36,7 +38,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (3,6)-(3,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ KeywordHashNode (location: (3,9)-(3,25))
│ │ ├── flags: symbol_keys
│ │ └── elements: (length: 2)
@@ -50,7 +53,8 @@
│ │ │ │ └── unescaped: "z"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (3,15)-(3,16))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: (3,12)-(3,14) = "=>"
│ │ └── @ AssocNode (location: (3,18)-(3,25))
│ │ ├── key:
@@ -62,7 +66,8 @@
│ │ │ └── unescaped: "w"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,24)-(3,25))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (3,21)-(3,23) = "=>"
│ └── rparen_loc: ∅
├── @ YieldNode (location: (5,0)-(5,13))
@@ -96,7 +101,8 @@
│ │ │ │ └── unescaped: "z"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (5,12)-(5,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: (5,10)-(5,12) = "=>"
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
@@ -132,7 +138,8 @@
│ │ │ │ └── unescaped: "z"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (7,10)-(7,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
@@ -168,7 +175,8 @@
│ │ │ │ └── unescaped: "z"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (9,10)-(9,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ ├── closing_loc: (9,11)-(9,12) = ")"
│ │ └── block: ∅
@@ -208,7 +216,8 @@
│ │ │ └── block: ∅
│ │ ├── value:
│ │ │ @ IntegerNode (location: (11,11)-(11,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (11,9)-(11,11) = "=>"
│ ├── closing_loc: (11,12)-(11,13) = ")"
│ └── block: ∅
diff --git a/test/prism/snapshots/super.txt b/test/prism/snapshots/super.txt
index 068e407e9d..79f9a5d5a5 100644
--- a/test/prism/snapshots/super.txt
+++ b/test/prism/snapshots/super.txt
@@ -19,7 +19,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,6)-(5,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── rparen_loc: (5,7)-(5,8) = ")"
│ └── block: ∅
├── @ SuperNode (location: (7,0)-(7,14))
@@ -30,11 +31,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (7,6)-(7,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (7,9)-(7,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (7,12)-(7,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── rparen_loc: (7,13)-(7,14) = ")"
│ └── block: ∅
├── @ SuperNode (location: (9,0)-(9,11))
@@ -83,11 +87,14 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ IntegerNode (location: (15,6)-(15,7))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ IntegerNode (location: (15,9)-(15,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── @ IntegerNode (location: (15,12)-(15,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── rparen_loc: (15,13)-(15,14) = ")"
│ └── block:
│ @ BlockNode (location: (15,15)-(15,17))
@@ -104,11 +111,14 @@
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (17,6)-(17,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (17,9)-(17,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (17,12)-(17,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── rparen_loc: (17,20)-(17,21) = ")"
└── block:
@ BlockArgumentNode (location: (17,15)-(17,20))
diff --git a/test/prism/snapshots/symbols.txt b/test/prism/snapshots/symbols.txt
index 54a385e346..4fbb277c6e 100644
--- a/test/prism/snapshots/symbols.txt
+++ b/test/prism/snapshots/symbols.txt
@@ -44,7 +44,8 @@
│ │ │ @ StatementsNode (location: (5,7)-(5,8))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (5,7)-(5,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── closing_loc: (5,8)-(5,9) = "}"
│ └── closing_loc: (5,9)-(5,10) = "\""
├── @ ArrayNode (location: (7,0)-(7,20))
@@ -140,16 +141,19 @@
│ ├── flags: ∅
│ ├── elements: (length: 4)
│ │ ├── @ IntegerNode (location: (29,1)-(29,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ FloatNode (location: (29,4)-(29,7))
│ │ ├── @ RationalNode (location: (29,9)-(29,11))
│ │ │ └── numeric:
│ │ │ @ IntegerNode (location: (29,9)-(29,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ ImaginaryNode (location: (29,13)-(29,15))
│ │ └── numeric:
│ │ @ IntegerNode (location: (29,13)-(29,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (29,0)-(29,1) = "["
│ └── closing_loc: (29,15)-(29,16) = "]"
├── @ SymbolNode (location: (31,0)-(31,2))
@@ -240,7 +244,8 @@
│ │ │ │ │ @ StatementsNode (location: (39,8)-(39,9))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (39,8)-(39,9))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── closing_loc: (39,9)-(39,10) = "}"
│ │ │ └── closing_loc: ∅
│ │ ├── @ InterpolatedSymbolNode (location: (39,11)-(39,16))
@@ -252,7 +257,8 @@
│ │ │ │ │ │ @ StatementsNode (location: (39,13)-(39,14))
│ │ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ │ └── @ IntegerNode (location: (39,13)-(39,14))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 2
│ │ │ │ │ └── closing_loc: (39,14)-(39,15) = "}"
│ │ │ │ └── @ StringNode (location: (39,15)-(39,16))
│ │ │ │ ├── flags: ∅
@@ -276,7 +282,8 @@
│ │ │ │ │ @ StatementsNode (location: (39,20)-(39,21))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (39,20)-(39,21))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 3
│ │ │ │ └── closing_loc: (39,21)-(39,22) = "}"
│ │ │ └── @ StringNode (location: (39,22)-(39,23))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/ternary_operator.txt b/test/prism/snapshots/ternary_operator.txt
index f1d72f810b..0277ac88f0 100644
--- a/test/prism/snapshots/ternary_operator.txt
+++ b/test/prism/snapshots/ternary_operator.txt
@@ -279,7 +279,8 @@
│ ├── name_loc: (15,5)-(15,7) = "_a"
│ ├── value:
│ │ @ IntegerNode (location: (15,9)-(15,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (15,8)-(15,9) = "="
├── consequent:
│ @ ElseNode (location: (15,10)-(15,12))
@@ -288,6 +289,7 @@
│ │ @ StatementsNode (location: (15,11)-(15,12))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (15,11)-(15,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── end_keyword_loc: ∅
└── end_keyword_loc: ∅
diff --git a/test/prism/snapshots/tilde_heredocs.txt b/test/prism/snapshots/tilde_heredocs.txt
index fb09e075e1..fd369a64b2 100644
--- a/test/prism/snapshots/tilde_heredocs.txt
+++ b/test/prism/snapshots/tilde_heredocs.txt
@@ -18,7 +18,8 @@
│ │ │ │ @ StatementsNode (location: (3,2)-(3,3))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (3,2)-(3,3))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (3,3)-(3,4) = "}"
│ │ ├── @ StringNode (location: (3,4)-(4,0))
│ │ │ ├── flags: ∅
@@ -70,7 +71,8 @@
│ │ │ │ @ StatementsNode (location: (18,4)-(18,5))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (18,4)-(18,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (18,5)-(18,6) = "}"
│ │ └── @ StringNode (location: (18,6)-(19,0))
│ │ ├── flags: ∅
@@ -94,7 +96,8 @@
│ │ │ │ @ StatementsNode (location: (22,6)-(22,7))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (22,6)-(22,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (22,7)-(22,8) = "}"
│ │ └── @ StringNode (location: (22,8)-(23,0))
│ │ ├── flags: ∅
@@ -118,7 +121,8 @@
│ │ │ │ @ StatementsNode (location: (27,3)-(27,4))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (27,3)-(27,4))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (27,4)-(27,5) = "}"
│ │ └── @ StringNode (location: (27,5)-(28,0))
│ │ ├── flags: ∅
@@ -142,7 +146,8 @@
│ │ │ │ @ StatementsNode (location: (32,4)-(32,5))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (32,4)-(32,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (32,5)-(32,6) = "}"
│ │ └── @ StringNode (location: (32,6)-(33,0))
│ │ ├── flags: ∅
@@ -346,7 +351,8 @@
│ │ │ │ @ StatementsNode (location: (91,4)-(91,5))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (91,4)-(91,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (91,5)-(91,6) = "}"
│ │ └── @ StringNode (location: (91,6)-(92,0))
│ │ ├── flags: ∅
@@ -364,7 +370,8 @@
│ │ │ @ StatementsNode (location: (95,4)-(95,5))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (95,4)-(95,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── closing_loc: (95,5)-(95,6) = "}"
│ ├── @ StringNode (location: (95,6)-(96,0))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/undef.txt b/test/prism/snapshots/undef.txt
index 3430ef5059..6031119ad1 100644
--- a/test/prism/snapshots/undef.txt
+++ b/test/prism/snapshots/undef.txt
@@ -101,7 +101,8 @@
│ │ │ │ @ StatementsNode (location: (15,13)-(15,14))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (15,13)-(15,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (15,14)-(15,15) = "}"
│ │ └── closing_loc: (15,15)-(15,16) = "\""
│ └── keyword_loc: (15,0)-(15,5) = "undef"
diff --git a/test/prism/snapshots/unless.txt b/test/prism/snapshots/unless.txt
index 0439e12d37..df16f90fd8 100644
--- a/test/prism/snapshots/unless.txt
+++ b/test/prism/snapshots/unless.txt
@@ -12,7 +12,8 @@
│ │ @ StatementsNode (location: (1,13)-(1,14))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,13)-(1,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent: ∅
│ └── end_keyword_loc: (1,16)-(1,19) = "end"
├── @ UnlessNode (location: (3,0)-(4,12))
@@ -24,7 +25,8 @@
│ │ @ StatementsNode (location: (4,0)-(4,1))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (4,0)-(4,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent:
│ │ @ ElseNode (location: (4,2)-(4,12))
│ │ ├── else_keyword_loc: (4,2)-(4,6) = "else"
@@ -32,7 +34,8 @@
│ │ │ @ StatementsNode (location: (4,7)-(4,8))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (4,7)-(4,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── end_keyword_loc: (4,9)-(4,12) = "end"
│ └── end_keyword_loc: (4,9)-(4,12) = "end"
├── @ UnlessNode (location: (6,0)-(6,13))
@@ -44,7 +47,8 @@
│ │ @ StatementsNode (location: (6,0)-(6,1))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (6,0)-(6,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent: ∅
│ └── end_keyword_loc: ∅
├── @ UnlessNode (location: (8,0)-(8,17))
diff --git a/test/prism/snapshots/unparser/corpus/literal/assignment.txt b/test/prism/snapshots/unparser/corpus/literal/assignment.txt
index 281a7ea515..3a458b83e8 100644
--- a/test/prism/snapshots/unparser/corpus/literal/assignment.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/assignment.txt
@@ -8,7 +8,8 @@
│ ├── name_loc: (1,0)-(1,2) = "$a"
│ ├── value:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,3)-(1,4) = "="
├── @ MultiWriteNode (location: (2,0)-(2,17))
│ ├── lefts: (length: 2)
@@ -26,9 +27,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (2,12)-(2,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (2,15)-(2,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (2,11)-(2,12) = "["
│ └── closing_loc: (2,16)-(2,17) = "]"
├── @ MultiWriteNode (location: (3,0)-(3,13))
@@ -53,7 +56,8 @@
│ ├── operator_loc: (3,10)-(3,11) = "="
│ └── value:
│ @ IntegerNode (location: (3,12)-(3,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ MultiWriteNode (location: (4,0)-(4,9))
│ ├── lefts: (length: 0)
│ ├── rest:
@@ -91,9 +95,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (5,10)-(5,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (5,13)-(5,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (5,9)-(5,10) = "["
│ └── closing_loc: (5,14)-(5,15) = "]"
├── @ MultiWriteNode (location: (6,0)-(6,19))
@@ -112,9 +118,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (6,14)-(6,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (6,17)-(6,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (6,13)-(6,14) = "["
│ └── closing_loc: (6,18)-(6,19) = "]"
├── @ MultiWriteNode (location: (7,0)-(7,17))
@@ -133,9 +141,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (7,12)-(7,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (7,15)-(7,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (7,11)-(7,12) = "["
│ └── closing_loc: (7,16)-(7,17) = "]"
├── @ MultiWriteNode (location: (8,0)-(8,25))
@@ -165,14 +175,17 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (8,15)-(8,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ ArrayNode (location: (8,18)-(8,24))
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (8,19)-(8,20))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (8,22)-(8,23))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: (8,18)-(8,19) = "["
│ │ └── closing_loc: (8,23)-(8,24) = "]"
│ ├── opening_loc: (8,14)-(8,15) = "["
@@ -195,9 +208,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (9,10)-(9,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (9,13)-(9,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (9,9)-(9,10) = "["
│ └── closing_loc: (9,14)-(9,15) = "]"
├── @ MultiWriteNode (location: (10,0)-(10,18))
@@ -221,9 +236,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (10,13)-(10,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (10,16)-(10,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (10,12)-(10,13) = "["
│ └── closing_loc: (10,17)-(10,18) = "]"
├── @ MultiWriteNode (location: (11,0)-(11,15))
@@ -244,9 +261,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (11,10)-(11,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (11,13)-(11,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (11,9)-(11,10) = "["
│ └── closing_loc: (11,14)-(11,15) = "]"
├── @ MultiWriteNode (location: (12,0)-(12,12))
@@ -311,9 +330,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (14,18)-(14,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (14,21)-(14,22))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (14,17)-(14,18) = "["
│ └── closing_loc: (14,22)-(14,23) = "]"
├── @ MultiWriteNode (location: (15,0)-(15,24))
@@ -349,7 +370,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (15,12)-(15,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (15,13)-(15,14) = "]"
│ │ └── block: ∅
│ ├── rest: ∅
@@ -362,9 +384,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (15,19)-(15,20))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (15,22)-(15,23))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (15,18)-(15,19) = "["
│ └── closing_loc: (15,23)-(15,24) = "]"
├── @ MultiWriteNode (location: (16,0)-(16,21))
@@ -381,7 +405,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (16,3)-(16,4))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ ├── closing_loc: (16,4)-(16,5) = "]"
│ │ │ └── block: ∅
│ │ └── @ IndexTargetNode (location: (16,7)-(16,11))
@@ -396,7 +421,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (16,9)-(16,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: (16,10)-(16,11) = "]"
│ │ └── block: ∅
│ ├── rest: ∅
@@ -409,9 +435,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (16,16)-(16,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (16,19)-(16,20))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (16,15)-(16,16) = "["
│ └── closing_loc: (16,20)-(16,21) = "]"
├── @ MultiWriteNode (location: (17,0)-(17,12))
@@ -435,7 +463,8 @@
│ ├── operator_loc: (17,9)-(17,10) = "="
│ └── value:
│ @ IntegerNode (location: (17,11)-(17,12))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ConstantPathWriteNode (location: (18,0)-(18,13))
│ ├── target:
│ │ @ ConstantPathNode (location: (18,0)-(18,5))
@@ -457,21 +486,24 @@
│ ├── name_loc: (19,0)-(19,3) = "@@a"
│ ├── value:
│ │ @ IntegerNode (location: (19,6)-(19,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (19,4)-(19,5) = "="
├── @ InstanceVariableWriteNode (location: (20,0)-(20,6))
│ ├── name: :@a
│ ├── name_loc: (20,0)-(20,2) = "@a"
│ ├── value:
│ │ @ IntegerNode (location: (20,5)-(20,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (20,3)-(20,4) = "="
├── @ ConstantWriteNode (location: (21,0)-(21,9))
│ ├── name: :CONST
│ ├── name_loc: (21,0)-(21,5) = "CONST"
│ ├── value:
│ │ @ IntegerNode (location: (21,8)-(21,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (21,6)-(21,7) = "="
├── @ ConstantPathWriteNode (location: (22,0)-(22,23))
│ ├── target:
@@ -492,7 +524,8 @@
│ ├── operator_loc: (22,20)-(22,21) = "="
│ └── value:
│ @ IntegerNode (location: (22,22)-(22,23))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ LocalVariableWriteNode (location: (23,0)-(23,16))
│ ├── name: :a
│ ├── depth: 0
@@ -517,7 +550,8 @@
│ │ │ ├── operator_loc: (23,12)-(23,13) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (23,14)-(23,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (23,4)-(23,5) = "("
│ │ └── closing_loc: (23,15)-(23,16) = ")"
│ └── operator_loc: (23,2)-(23,3) = "="
@@ -527,7 +561,8 @@
│ ├── name_loc: (24,0)-(24,1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (24,4)-(24,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (24,2)-(24,3) = "="
├── @ LocalVariableWriteNode (location: (25,0)-(25,11))
│ ├── name: :foo
@@ -573,9 +608,11 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (27,8)-(27,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (27,11)-(27,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: (27,12)-(27,13) = ")"
│ └── block: ∅
├── @ CallNode (location: (28,0)-(28,11))
@@ -652,10 +689,12 @@
│ │ │ ├── flags: ∅
│ │ │ ├── left:
│ │ │ │ @ IntegerNode (location: (30,4)-(30,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── right:
│ │ │ │ @ IntegerNode (location: (30,7)-(30,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── operator_loc: (30,5)-(30,7) = ".."
│ │ └── @ CallNode (location: (30,12)-(30,17))
│ │ ├── flags: variable_call, ignore_visibility
@@ -684,7 +723,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (31,8)-(31,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (31,4)-(31,5) = "]"
│ └── block: ∅
├── @ CallNode (location: (32,0)-(32,17))
diff --git a/test/prism/snapshots/unparser/corpus/literal/block.txt b/test/prism/snapshots/unparser/corpus/literal/block.txt
index b7c571158f..b4c86d0b04 100644
--- a/test/prism/snapshots/unparser/corpus/literal/block.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/block.txt
@@ -167,7 +167,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (11,4)-(11,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (11,5)-(11,6) = ")"
│ └── block:
│ @ BlockNode (location: (11,7)-(13,1))
diff --git a/test/prism/snapshots/unparser/corpus/literal/case.txt b/test/prism/snapshots/unparser/corpus/literal/case.txt
index d9990e5923..84339d9f76 100644
--- a/test/prism/snapshots/unparser/corpus/literal/case.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/case.txt
@@ -425,7 +425,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (36,14)-(36,15))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ └── statements: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/control.txt b/test/prism/snapshots/unparser/corpus/literal/control.txt
index 3f667bd431..9bb303fed4 100644
--- a/test/prism/snapshots/unparser/corpus/literal/control.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/control.txt
@@ -21,7 +21,8 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (6,7)-(6,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ReturnNode (location: (7,0)-(7,11))
│ ├── keyword_loc: (7,0)-(7,6) = "return"
│ └── arguments:
@@ -29,9 +30,11 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (7,7)-(7,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (7,10)-(7,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ ReturnNode (location: (8,0)-(8,19))
│ ├── keyword_loc: (8,0)-(8,6) = "return"
│ └── arguments:
@@ -47,7 +50,8 @@
│ │ @ StatementsNode (location: (8,14)-(8,15))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (8,14)-(8,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent:
│ │ @ ElseNode (location: (8,16)-(8,19))
│ │ ├── else_keyword_loc: (8,16)-(8,17) = ":"
@@ -55,7 +59,8 @@
│ │ │ @ StatementsNode (location: (8,18)-(8,19))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (8,18)-(8,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── end_keyword_loc: ∅
│ └── end_keyword_loc: ∅
├── @ BreakNode (location: (9,0)-(9,18))
@@ -72,7 +77,8 @@
│ │ │ @ StatementsNode (location: (9,13)-(9,14))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (9,13)-(9,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── consequent:
│ │ │ @ ElseNode (location: (9,15)-(9,18))
│ │ │ ├── else_keyword_loc: (9,15)-(9,16) = ":"
@@ -80,7 +86,8 @@
│ │ │ │ @ StatementsNode (location: (9,17)-(9,18))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (9,17)-(9,18))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── end_keyword_loc: ∅
│ │ └── end_keyword_loc: ∅
│ └── keyword_loc: (9,0)-(9,5) = "break"
@@ -98,7 +105,8 @@
│ │ │ @ StatementsNode (location: (10,12)-(10,13))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (10,12)-(10,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── consequent:
│ │ │ @ ElseNode (location: (10,14)-(10,17))
│ │ │ ├── else_keyword_loc: (10,14)-(10,15) = ":"
@@ -106,7 +114,8 @@
│ │ │ │ @ StatementsNode (location: (10,16)-(10,17))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (10,16)-(10,17))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── end_keyword_loc: ∅
│ │ └── end_keyword_loc: ∅
│ └── keyword_loc: (10,0)-(10,4) = "next"
@@ -126,7 +135,8 @@
│ @ StatementsNode (location: (12,2)-(12,3))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (12,2)-(12,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── consequent:
│ @ ElseNode (location: (13,0)-(15,3))
│ ├── else_keyword_loc: (13,0)-(13,4) = "else"
@@ -134,6 +144,7 @@
│ │ @ StatementsNode (location: (14,2)-(14,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (14,2)-(14,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── end_keyword_loc: (15,0)-(15,3) = "end"
└── end_keyword_loc: (15,0)-(15,3) = "end"
diff --git a/test/prism/snapshots/unparser/corpus/literal/def.txt b/test/prism/snapshots/unparser/corpus/literal/def.txt
index c8c571a1a7..da285d894b 100644
--- a/test/prism/snapshots/unparser/corpus/literal/def.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/def.txt
@@ -643,7 +643,8 @@
│ │ │ ├── name_loc: (74,8)-(74,12) = "bar:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (74,13)-(74,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/defined.txt b/test/prism/snapshots/unparser/corpus/literal/defined.txt
index f2a19370e5..89145ddcda 100644
--- a/test/prism/snapshots/unparser/corpus/literal/defined.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/defined.txt
@@ -42,9 +42,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (3,20)-(3,21))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (3,23)-(3,24))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (3,19)-(3,20) = "["
│ │ └── closing_loc: (3,24)-(3,25) = "]"
│ ├── opening_loc: (3,9)-(3,10) = "("
diff --git a/test/prism/snapshots/unparser/corpus/literal/defs.txt b/test/prism/snapshots/unparser/corpus/literal/defs.txt
index c3c9acbbca..431843cc19 100644
--- a/test/prism/snapshots/unparser/corpus/literal/defs.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/defs.txt
@@ -185,7 +185,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (22,9)-(22,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── closing_loc: (22,10)-(22,11) = ")"
│ │ │ └── block: ∅
│ │ ├── opening_loc: (22,4)-(22,5) = "("
diff --git a/test/prism/snapshots/unparser/corpus/literal/dstr.txt b/test/prism/snapshots/unparser/corpus/literal/dstr.txt
index cc3bfa4b31..2f8e5da65a 100644
--- a/test/prism/snapshots/unparser/corpus/literal/dstr.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/dstr.txt
@@ -215,7 +215,8 @@
│ │ │ │ │ @ StatementsNode (location: (28,6)-(28,8))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (28,6)-(28,8))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 42
│ │ │ │ └── closing_loc: (28,8)-(28,9) = "}"
│ │ │ └── @ StringNode (location: (28,9)-(29,0))
│ │ │ ├── flags: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/flipflop.txt b/test/prism/snapshots/unparser/corpus/literal/flipflop.txt
index 5e61e64da1..2794e0534f 100644
--- a/test/prism/snapshots/unparser/corpus/literal/flipflop.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/flipflop.txt
@@ -39,7 +39,8 @@
│ │ │ │ │ │ ├── flags: ∅
│ │ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 4
│ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ └── block: ∅
│ │ │ │ ├── opening_loc: (1,4)-(1,5) = "("
@@ -71,7 +72,8 @@
│ │ │ │ │ │ ├── flags: ∅
│ │ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ │ └── @ IntegerNode (location: (1,20)-(1,21))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 4
│ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ └── block: ∅
│ │ │ │ ├── opening_loc: (1,14)-(1,15) = "("
@@ -131,7 +133,8 @@
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (4,10)-(4,11))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 4
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── opening_loc: (4,4)-(4,5) = "("
@@ -163,7 +166,8 @@
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (4,21)-(4,22))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 4
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── opening_loc: (4,15)-(4,16) = "("
diff --git a/test/prism/snapshots/unparser/corpus/literal/if.txt b/test/prism/snapshots/unparser/corpus/literal/if.txt
index fbbda9b930..6a78779dc9 100644
--- a/test/prism/snapshots/unparser/corpus/literal/if.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/if.txt
@@ -32,26 +32,30 @@
│ ├── if_keyword_loc: (4,0)-(4,2) = "if"
│ ├── predicate:
│ │ @ IntegerNode (location: (4,3)-(4,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── then_keyword_loc: ∅
│ ├── statements:
│ │ @ StatementsNode (location: (5,2)-(5,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (5,2)-(5,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 9
│ ├── consequent: ∅
│ └── end_keyword_loc: (6,0)-(6,3) = "end"
├── @ IfNode (location: (7,0)-(11,3))
│ ├── if_keyword_loc: (7,0)-(7,2) = "if"
│ ├── predicate:
│ │ @ IntegerNode (location: (7,3)-(7,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 4
│ ├── then_keyword_loc: ∅
│ ├── statements:
│ │ @ StatementsNode (location: (8,2)-(8,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (8,2)-(8,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 5
│ ├── consequent:
│ │ @ ElseNode (location: (9,0)-(11,3))
│ │ ├── else_keyword_loc: (9,0)-(9,4) = "else"
@@ -59,14 +63,16 @@
│ │ │ @ StatementsNode (location: (10,2)-(10,3))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (10,2)-(10,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 6
│ │ └── end_keyword_loc: (11,0)-(11,3) = "end"
│ └── end_keyword_loc: (11,0)-(11,3) = "end"
├── @ UnlessNode (location: (12,0)-(14,3))
│ ├── keyword_loc: (12,0)-(12,6) = "unless"
│ ├── predicate:
│ │ @ IntegerNode (location: (12,7)-(12,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── then_keyword_loc: ∅
│ ├── statements:
│ │ @ StatementsNode (location: (13,2)-(13,5))
@@ -78,13 +84,15 @@
│ ├── keyword_loc: (15,0)-(15,6) = "unless"
│ ├── predicate:
│ │ @ IntegerNode (location: (15,7)-(15,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── then_keyword_loc: ∅
│ ├── statements:
│ │ @ StatementsNode (location: (16,2)-(16,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (16,2)-(16,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 9
│ ├── consequent: ∅
│ └── end_keyword_loc: (17,0)-(17,3) = "end"
├── @ IfNode (location: (18,0)-(19,3))
diff --git a/test/prism/snapshots/unparser/corpus/literal/literal.txt b/test/prism/snapshots/unparser/corpus/literal/literal.txt
index e4545d1688..6a3d817a6e 100644
--- a/test/prism/snapshots/unparser/corpus/literal/literal.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/literal.txt
@@ -290,12 +290,14 @@
│ │ └── name: :$a
│ └── closing_loc: (14,13)-(14,14) = "\""
├── @ IntegerNode (location: (15,0)-(15,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── @ CallNode (location: (16,0)-(16,3))
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (16,1)-(16,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :+@
│ ├── message_loc: (16,0)-(16,1) = "+"
@@ -304,13 +306,16 @@
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ IntegerNode (location: (17,0)-(17,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ IntegerNode (location: (18,0)-(18,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ RationalNode (location: (19,0)-(19,2))
│ └── numeric:
│ @ IntegerNode (location: (19,0)-(19,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ RationalNode (location: (20,0)-(20,4))
│ └── numeric:
│ @ FloatNode (location: (20,0)-(20,3))
@@ -320,11 +325,13 @@
├── @ ImaginaryNode (location: (22,0)-(22,2))
│ └── numeric:
│ @ IntegerNode (location: (22,0)-(22,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 5
├── @ ImaginaryNode (location: (23,0)-(23,3))
│ └── numeric:
│ @ IntegerNode (location: (23,0)-(23,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: -5
├── @ ImaginaryNode (location: (24,0)-(24,4))
│ └── numeric:
│ @ FloatNode (location: (24,0)-(24,3))
@@ -334,13 +341,15 @@
├── @ ImaginaryNode (location: (26,0)-(26,32))
│ └── numeric:
│ @ IntegerNode (location: (26,0)-(26,31))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1000000000000000000000000000000
├── @ ImaginaryNode (location: (27,0)-(27,3))
│ └── numeric:
│ @ RationalNode (location: (27,0)-(27,2))
│ └── numeric:
│ @ IntegerNode (location: (27,0)-(27,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ InterpolatedStringNode (location: (28,0)-(28,11))
│ ├── opening_loc: ∅
│ ├── parts: (length: 2)
@@ -398,7 +407,8 @@
│ │ │ │ @ StatementsNode (location: (30,6)-(30,7))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (30,6)-(30,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (30,7)-(30,8) = "}"
│ │ └── @ StringNode (location: (30,8)-(30,11))
│ │ ├── flags: ∅
@@ -716,13 +726,15 @@
│ │ └── closing_loc: (60,10)-(60,11) = ")"
│ ├── right:
│ │ @ IntegerNode (location: (60,13)-(60,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (60,11)-(60,13) = ".."
├── @ RangeNode (location: (61,0)-(61,14))
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (61,0)-(61,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ ParenthesesNode (location: (61,3)-(61,14))
│ │ ├── body:
@@ -772,7 +784,8 @@
│ │ └── closing_loc: (62,10)-(62,11) = ")"
│ ├── right:
│ │ @ IntegerNode (location: (62,13)-(62,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 100
│ └── operator_loc: (62,11)-(62,13) = ".."
├── @ FloatNode (location: (63,0)-(63,4))
├── @ FloatNode (location: (64,0)-(64,3))
@@ -780,16 +793,19 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (65,1)-(65,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (65,4)-(65,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (65,0)-(65,1) = "["
│ └── closing_loc: (65,5)-(65,6) = "]"
├── @ ArrayNode (location: (66,0)-(66,11))
│ ├── flags: ∅
│ ├── elements: (length: 3)
│ │ ├── @ IntegerNode (location: (66,1)-(66,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ ParenthesesNode (location: (66,4)-(66,6))
│ │ │ ├── body: ∅
│ │ │ ├── opening_loc: (66,4)-(66,5) = "("
@@ -810,7 +826,8 @@
│ ├── flags: ∅
│ ├── elements: (length: 1)
│ │ └── @ IntegerNode (location: (67,1)-(67,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (67,0)-(67,1) = "["
│ └── closing_loc: (67,2)-(67,3) = "]"
├── @ ArrayNode (location: (68,0)-(68,2))
@@ -822,7 +839,8 @@
│ ├── flags: contains_splat
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (69,1)-(69,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ SplatNode (location: (69,4)-(69,9))
│ │ ├── operator_loc: (69,4)-(69,5) = "*"
│ │ └── expression:
@@ -839,7 +857,8 @@
│ │ │ @ InstanceVariableReadNode (location: (70,2)-(70,6))
│ │ │ └── name: :@foo
│ │ └── @ IntegerNode (location: (70,8)-(70,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (70,0)-(70,1) = "["
│ └── closing_loc: (70,9)-(70,10) = "]"
├── @ ArrayNode (location: (71,0)-(71,14))
@@ -883,10 +902,12 @@
│ │ └── @ AssocNode (location: (74,2)-(74,8))
│ │ ├── key:
│ │ │ @ IntegerNode (location: (74,2)-(74,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── value:
│ │ │ @ IntegerNode (location: (74,7)-(74,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (74,4)-(74,6) = "=>"
│ └── closing_loc: (74,9)-(74,10) = "}"
├── @ HashNode (location: (75,0)-(75,18))
@@ -895,18 +916,22 @@
│ │ ├── @ AssocNode (location: (75,2)-(75,8))
│ │ │ ├── key:
│ │ │ │ @ IntegerNode (location: (75,2)-(75,3))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (75,7)-(75,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── operator_loc: (75,4)-(75,6) = "=>"
│ │ └── @ AssocNode (location: (75,10)-(75,16))
│ │ ├── key:
│ │ │ @ IntegerNode (location: (75,10)-(75,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── value:
│ │ │ @ IntegerNode (location: (75,15)-(75,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 4
│ │ └── operator_loc: (75,12)-(75,14) = "=>"
│ └── closing_loc: (75,17)-(75,18) = "}"
├── @ HashNode (location: (76,0)-(76,27))
@@ -928,7 +953,8 @@
│ │ │ │ │ └── @ RescueModifierNode (location: (76,6)-(76,18))
│ │ │ │ │ ├── expression:
│ │ │ │ │ │ @ IntegerNode (location: (76,6)-(76,7))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ ├── keyword_loc: (76,8)-(76,14) = "rescue"
│ │ │ │ │ └── rescue_expression:
│ │ │ │ │ @ CallNode (location: (76,15)-(76,18))
@@ -954,7 +980,8 @@
│ │ │ └── unescaped: "b"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (76,24)-(76,25))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ └── closing_loc: (76,26)-(76,27) = "}"
├── @ HashNode (location: (77,0)-(77,14))
@@ -970,7 +997,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (77,5)-(77,6))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ └── @ AssocNode (location: (77,8)-(77,12))
│ │ ├── key:
@@ -982,7 +1010,8 @@
│ │ │ └── unescaped: "b"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (77,11)-(77,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ └── closing_loc: (77,13)-(77,14) = "}"
├── @ HashNode (location: (78,0)-(78,9))
@@ -1018,7 +1047,8 @@
│ │ │ └── unescaped: "a b"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (79,12)-(79,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (79,9)-(79,11) = "=>"
│ └── closing_loc: (79,14)-(79,15) = "}"
├── @ HashNode (location: (80,0)-(80,12))
@@ -1034,7 +1064,8 @@
│ │ │ └── unescaped: "-@"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (80,9)-(80,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (80,6)-(80,8) = "=>"
│ └── closing_loc: (80,11)-(80,12) = "}"
├── @ InterpolatedStringNode (location: (81,0)-(82,7))
diff --git a/test/prism/snapshots/unparser/corpus/literal/opasgn.txt b/test/prism/snapshots/unparser/corpus/literal/opasgn.txt
index d4efe8de6b..8dc0849638 100644
--- a/test/prism/snapshots/unparser/corpus/literal/opasgn.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/opasgn.txt
@@ -8,7 +8,8 @@
│ ├── operator_loc: (1,2)-(1,4) = "+="
│ ├── value:
│ │ @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── name: :a
│ ├── operator: :+
│ └── depth: 0
@@ -17,7 +18,8 @@
│ ├── operator_loc: (2,2)-(2,4) = "-="
│ ├── value:
│ │ @ IntegerNode (location: (2,5)-(2,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── name: :a
│ ├── operator: :-
│ └── depth: 0
@@ -26,7 +28,8 @@
│ ├── operator_loc: (3,2)-(3,5) = "**="
│ ├── value:
│ │ @ IntegerNode (location: (3,6)-(3,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── name: :a
│ ├── operator: :**
│ └── depth: 0
@@ -35,7 +38,8 @@
│ ├── operator_loc: (4,2)-(4,4) = "*="
│ ├── value:
│ │ @ IntegerNode (location: (4,5)-(4,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── name: :a
│ ├── operator: :*
│ └── depth: 0
@@ -44,7 +48,8 @@
│ ├── operator_loc: (5,2)-(5,4) = "/="
│ ├── value:
│ │ @ IntegerNode (location: (5,5)-(5,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── name: :a
│ ├── operator: :/
│ └── depth: 0
@@ -69,7 +74,8 @@
│ ├── operator_loc: (7,2)-(7,5) = "||="
│ ├── value:
│ │ @ IntegerNode (location: (7,6)-(7,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── name: :a
│ └── depth: 0
├── @ CallNode (location: (8,0)-(8,13))
@@ -84,7 +90,8 @@
│ │ │ ├── operator_loc: (8,3)-(8,6) = "||="
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (8,7)-(8,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── name: :a
│ │ │ └── depth: 0
│ │ ├── opening_loc: (8,0)-(8,1) = "("
@@ -159,7 +166,8 @@
│ ├── operator_loc: (10,4)-(10,6) = "+="
│ └── value:
│ @ IntegerNode (location: (10,7)-(10,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ CallOperatorWriteNode (location: (11,0)-(11,8))
│ ├── flags: ∅
│ ├── receiver:
@@ -174,7 +182,8 @@
│ ├── operator_loc: (11,4)-(11,6) = "-="
│ └── value:
│ @ IntegerNode (location: (11,7)-(11,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ CallOperatorWriteNode (location: (12,0)-(12,9))
│ ├── flags: ∅
│ ├── receiver:
@@ -189,7 +198,8 @@
│ ├── operator_loc: (12,4)-(12,7) = "**="
│ └── value:
│ @ IntegerNode (location: (12,8)-(12,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ CallOperatorWriteNode (location: (13,0)-(13,8))
│ ├── flags: ∅
│ ├── receiver:
@@ -204,7 +214,8 @@
│ ├── operator_loc: (13,4)-(13,6) = "*="
│ └── value:
│ @ IntegerNode (location: (13,7)-(13,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ CallOperatorWriteNode (location: (14,0)-(14,8))
│ ├── flags: ∅
│ ├── receiver:
@@ -219,7 +230,8 @@
│ ├── operator_loc: (14,4)-(14,6) = "/="
│ └── value:
│ @ IntegerNode (location: (14,7)-(14,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ CallAndWriteNode (location: (15,0)-(15,9))
│ ├── flags: ∅
│ ├── receiver:
@@ -255,7 +267,8 @@
│ ├── operator_loc: (16,4)-(16,7) = "||="
│ └── value:
│ @ IntegerNode (location: (16,8)-(16,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IndexOperatorWriteNode (location: (17,0)-(17,9))
│ ├── flags: ∅
│ ├── receiver:
@@ -284,7 +297,8 @@
│ ├── operator_loc: (17,5)-(17,7) = "+="
│ └── value:
│ @ IntegerNode (location: (17,8)-(17,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IndexOperatorWriteNode (location: (18,0)-(18,9))
│ ├── flags: ∅
│ ├── receiver:
@@ -313,7 +327,8 @@
│ ├── operator_loc: (18,5)-(18,7) = "-="
│ └── value:
│ @ IntegerNode (location: (18,8)-(18,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IndexOperatorWriteNode (location: (19,0)-(19,10))
│ ├── flags: ∅
│ ├── receiver:
@@ -342,7 +357,8 @@
│ ├── operator_loc: (19,5)-(19,8) = "**="
│ └── value:
│ @ IntegerNode (location: (19,9)-(19,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IndexOperatorWriteNode (location: (20,0)-(20,9))
│ ├── flags: ∅
│ ├── receiver:
@@ -371,7 +387,8 @@
│ ├── operator_loc: (20,5)-(20,7) = "*="
│ └── value:
│ @ IntegerNode (location: (20,8)-(20,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IndexOperatorWriteNode (location: (21,0)-(21,9))
│ ├── flags: ∅
│ ├── receiver:
@@ -400,7 +417,8 @@
│ ├── operator_loc: (21,5)-(21,7) = "/="
│ └── value:
│ @ IntegerNode (location: (21,8)-(21,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── @ IndexAndWriteNode (location: (22,0)-(22,10))
│ ├── flags: ∅
│ ├── receiver:
@@ -464,7 +482,8 @@
│ ├── operator_loc: (23,5)-(23,8) = "||="
│ └── value:
│ @ IntegerNode (location: (23,9)-(23,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── @ CallOperatorWriteNode (location: (24,0)-(24,10))
├── flags: ∅
├── receiver:
@@ -486,4 +505,5 @@
├── operator_loc: (24,6)-(24,8) = "+="
└── value:
@ IntegerNode (location: (24,9)-(24,10))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/unparser/corpus/literal/pattern.txt b/test/prism/snapshots/unparser/corpus/literal/pattern.txt
index d89ef39c90..5a0b4bb733 100644
--- a/test/prism/snapshots/unparser/corpus/literal/pattern.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/pattern.txt
@@ -24,9 +24,11 @@
│ │ │ │ │ └── name: :A
│ │ │ │ ├── requireds: (length: 2)
│ │ │ │ │ ├── @ IntegerNode (location: (2,5)-(2,6))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ └── @ IntegerNode (location: (2,8)-(2,9))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 2
│ │ │ │ ├── rest:
│ │ │ │ │ @ SplatNode (location: (2,11)-(2,13))
│ │ │ │ │ ├── operator_loc: (2,11)-(2,12) = "*"
@@ -36,7 +38,8 @@
│ │ │ │ │ └── depth: 0
│ │ │ │ ├── posts: (length: 1)
│ │ │ │ │ └── @ IntegerNode (location: (2,15)-(2,16))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 3
│ │ │ │ ├── opening_loc: (2,4)-(2,5) = "["
│ │ │ │ └── closing_loc: (2,16)-(2,17) = "]"
│ │ │ ├── statements:
@@ -51,9 +54,11 @@
│ │ │ │ ├── constant: ∅
│ │ │ │ ├── requireds: (length: 2)
│ │ │ │ │ ├── @ IntegerNode (location: (4,4)-(4,5))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ └── @ IntegerNode (location: (4,7)-(4,8))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 2
│ │ │ │ ├── rest:
│ │ │ │ │ @ ImplicitRestNode (location: (4,8)-(4,9))
│ │ │ │ ├── posts: (length: 0)
@@ -188,7 +193,8 @@
│ │ │ │ │ │ │ └── unescaped: "a"
│ │ │ │ │ │ ├── value:
│ │ │ │ │ │ │ @ IntegerNode (location: (14,7)-(14,8))
- │ │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ │ └── operator_loc: ∅
│ │ │ │ │ └── @ AssocNode (location: (14,10)-(14,15))
│ │ │ │ │ ├── key:
@@ -200,7 +206,8 @@
│ │ │ │ │ │ └── unescaped: "aa"
│ │ │ │ │ ├── value:
│ │ │ │ │ │ @ IntegerNode (location: (14,14)-(14,15))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 2
│ │ │ │ │ └── operator_loc: ∅
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── opening_loc: (14,3)-(14,4) = "{"
@@ -257,7 +264,8 @@
│ │ │ │ │ │ └── unescaped: "a"
│ │ │ │ │ ├── value:
│ │ │ │ │ │ @ IntegerNode (location: (20,9)-(20,10))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ └── operator_loc: ∅
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── opening_loc: (20,3)-(20,4) = "{"
@@ -273,10 +281,12 @@
│ │ │ │ @ AlternationPatternNode (location: (22,3)-(22,8))
│ │ │ │ ├── left:
│ │ │ │ │ @ IntegerNode (location: (22,3)-(22,4))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── right:
│ │ │ │ │ @ IntegerNode (location: (22,7)-(22,8))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 2
│ │ │ │ └── operator_loc: (22,5)-(22,6) = "|"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (23,2)-(23,6))
@@ -289,7 +299,8 @@
│ │ │ │ @ CapturePatternNode (location: (24,3)-(24,9))
│ │ │ │ ├── value:
│ │ │ │ │ @ IntegerNode (location: (24,3)-(24,4))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── target:
│ │ │ │ │ @ LocalVariableTargetNode (location: (24,8)-(24,9))
│ │ │ │ │ ├── name: :a
@@ -318,14 +329,16 @@
│ │ ├── @ InNode (location: (28,0)-(28,4))
│ │ │ ├── pattern:
│ │ │ │ @ IntegerNode (location: (28,3)-(28,4))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── statements: ∅
│ │ │ ├── in_loc: (28,0)-(28,2) = "in"
│ │ │ └── then_loc: ∅
│ │ └── @ InNode (location: (29,0)-(30,6))
│ │ ├── pattern:
│ │ │ @ IntegerNode (location: (29,3)-(29,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (30,2)-(30,6))
│ │ │ └── body: (length: 1)
@@ -363,9 +376,11 @@
│ │ │ │ └── name: :A
│ │ │ ├── requireds: (length: 2)
│ │ │ │ ├── @ IntegerNode (location: (35,5)-(35,6))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── @ IntegerNode (location: (35,8)-(35,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── rest:
│ │ │ │ @ SplatNode (location: (35,11)-(35,13))
│ │ │ │ ├── operator_loc: (35,11)-(35,12) = "*"
@@ -375,7 +390,8 @@
│ │ │ │ └── depth: 0
│ │ │ ├── posts: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (35,15)-(35,16))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 3
│ │ │ ├── opening_loc: (35,4)-(35,5) = "["
│ │ │ └── closing_loc: (35,16)-(35,17) = "]"
│ │ ├── statements: ∅
@@ -414,7 +430,8 @@
└── @ MatchPredicateNode (location: (41,0)-(41,8))
├── value:
│ @ IntegerNode (location: (41,0)-(41,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── pattern:
│ @ ArrayPatternNode (location: (41,5)-(41,8))
│ ├── constant: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/range.txt b/test/prism/snapshots/unparser/corpus/literal/range.txt
index 5bf208d962..ab015d04fc 100644
--- a/test/prism/snapshots/unparser/corpus/literal/range.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/range.txt
@@ -11,7 +11,8 @@
│ │ ├── flags: ∅
│ │ ├── left:
│ │ │ @ IntegerNode (location: (1,1)-(1,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (1,2)-(1,4) = ".."
│ ├── opening_loc: (1,0)-(1,1) = "("
@@ -20,10 +21,12 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (2,0)-(2,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ IntegerNode (location: (2,3)-(2,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: (2,1)-(2,3) = ".."
├── @ ParenthesesNode (location: (3,0)-(3,6))
│ ├── body:
@@ -33,7 +36,8 @@
│ │ ├── flags: exclude_end
│ │ ├── left:
│ │ │ @ IntegerNode (location: (3,1)-(3,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── right: ∅
│ │ └── operator_loc: (3,2)-(3,5) = "..."
│ ├── opening_loc: (3,0)-(3,1) = "("
@@ -42,8 +46,10 @@
├── flags: exclude_end
├── left:
│ @ IntegerNode (location: (4,0)-(4,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── right:
│ @ IntegerNode (location: (4,4)-(4,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (4,1)-(4,4) = "..."
diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt
index 18608ca005..25de1f4865 100644
--- a/test/prism/snapshots/unparser/corpus/literal/send.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/send.txt
@@ -65,7 +65,8 @@
│ │ │ ├── name_loc: (6,2)-(6,7) = "local"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (6,10)-(6,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: (6,8)-(6,9) = "="
│ │ └── @ CallNode (location: (7,2)-(7,11))
│ │ ├── flags: ∅
@@ -463,10 +464,12 @@
│ │ │ ├── flags: ∅
│ │ │ ├── left:
│ │ │ │ @ IntegerNode (location: (38,1)-(38,2))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── right:
│ │ │ │ @ IntegerNode (location: (38,4)-(38,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── operator_loc: (38,2)-(38,4) = ".."
│ │ ├── opening_loc: (38,0)-(38,1) = "("
│ │ └── closing_loc: (38,5)-(38,6) = ")"
@@ -580,13 +583,15 @@
│ ├── flags: ∅
│ ├── left:
│ │ @ IntegerNode (location: (42,0)-(42,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── right:
│ │ @ CallNode (location: (42,3)-(42,8))
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (42,3)-(42,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── call_operator_loc: (42,4)-(42,5) = "."
│ │ ├── name: :max
│ │ ├── message_loc: (42,5)-(42,8) = "max"
@@ -901,9 +906,11 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (54,4)-(54,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (54,7)-(54,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: (54,8)-(54,9) = ")"
│ └── block: ∅
├── @ CallNode (location: (55,0)-(55,8))
@@ -1732,9 +1739,11 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 2)
│ │ ├── @ IntegerNode (location: (74,4)-(74,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (74,7)-(74,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── closing_loc: (74,8)-(74,9) = "]"
│ └── block: ∅
├── @ CallNode (location: (75,0)-(75,5))
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/27.txt b/test/prism/snapshots/unparser/corpus/literal/since/27.txt
index 64f3fd88b3..60edc18604 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/27.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/27.txt
@@ -42,7 +42,8 @@
│ ├── left: ∅
│ ├── right:
│ │ @ IntegerNode (location: (4,3)-(4,4))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (4,1)-(4,3) = ".."
├── opening_loc: (4,0)-(4,1) = "("
└── closing_loc: (4,4)-(4,5) = ")"
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/30.txt b/test/prism/snapshots/unparser/corpus/literal/since/30.txt
index f595ebb780..300dd869f5 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/30.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/30.txt
@@ -6,7 +6,8 @@
├── @ MatchRequiredNode (location: (1,0)-(1,8))
│ ├── value:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── pattern:
│ │ @ ArrayPatternNode (location: (1,5)-(1,8))
│ │ ├── constant: ∅
@@ -22,7 +23,8 @@
├── @ MatchRequiredNode (location: (2,0)-(2,8))
│ ├── value:
│ │ @ IntegerNode (location: (2,0)-(2,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── pattern:
│ │ @ ArrayPatternNode (location: (2,5)-(2,8))
│ │ ├── constant: ∅
@@ -38,7 +40,8 @@
├── @ MatchPredicateNode (location: (3,0)-(3,15))
│ ├── value:
│ │ @ IntegerNode (location: (3,0)-(3,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── pattern:
│ │ @ FindPatternNode (location: (3,5)-(3,15))
│ │ ├── constant: ∅
@@ -48,7 +51,8 @@
│ │ │ └── expression: ∅
│ │ ├── requireds: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,9)-(3,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── right:
│ │ │ @ SplatNode (location: (3,13)-(3,14))
│ │ │ ├── operator_loc: (3,13)-(3,14) = "*"
@@ -59,7 +63,8 @@
└── @ MatchPredicateNode (location: (4,0)-(4,17))
├── value:
│ @ IntegerNode (location: (4,0)-(4,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── pattern:
│ @ FindPatternNode (location: (4,5)-(4,17))
│ ├── constant: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/unary.txt b/test/prism/snapshots/unparser/corpus/literal/unary.txt
index a5a314a620..5e9563d811 100644
--- a/test/prism/snapshots/unparser/corpus/literal/unary.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/unary.txt
@@ -7,7 +7,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (1,1)-(1,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: ∅
│ ├── name: :!
│ ├── message_loc: (1,0)-(1,1) = "!"
@@ -26,7 +27,8 @@
│ │ │ ├── flags: ∅
│ │ │ ├── receiver:
│ │ │ │ @ IntegerNode (location: (2,3)-(2,4))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── call_operator_loc: ∅
│ │ │ ├── name: :!
│ │ │ ├── message_loc: (2,2)-(2,3) = "!"
@@ -113,7 +115,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ ├── receiver:
│ │ │ │ │ @ IntegerNode (location: (4,3)-(4,4))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── name: :!
│ │ │ │ ├── message_loc: (4,2)-(4,3) = "!"
diff --git a/test/prism/snapshots/unparser/corpus/literal/while.txt b/test/prism/snapshots/unparser/corpus/literal/while.txt
index 67cd69db03..0f752f3392 100644
--- a/test/prism/snapshots/unparser/corpus/literal/while.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/while.txt
@@ -609,7 +609,8 @@
│ @ StatementsNode (location: (59,2)-(59,3))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (59,2)-(59,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── @ WhileNode (location: (61,0)-(64,3))
│ ├── flags: ∅
│ ├── keyword_loc: (61,0)-(61,5) = "while"
@@ -663,7 +664,8 @@
│ @ StatementsNode (location: (68,2)-(68,3))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (68,2)-(68,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
└── @ UntilNode (location: (70,0)-(73,3))
├── flags: ∅
├── keyword_loc: (70,0)-(70,5) = "until"
diff --git a/test/prism/snapshots/unparser/corpus/semantic/literal.txt b/test/prism/snapshots/unparser/corpus/semantic/literal.txt
index 5854765fad..915254d372 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/literal.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/literal.txt
@@ -9,11 +9,14 @@
├── @ RationalNode (location: (2,0)-(2,3))
│ └── numeric:
│ @ IntegerNode (location: (2,0)-(2,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── @ IntegerNode (location: (3,0)-(3,3))
- │ └── flags: hexadecimal
+ │ ├── flags: hexadecimal
+ │ └── value: 1
├── @ IntegerNode (location: (4,0)-(4,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1000
├── @ FloatNode (location: (5,0)-(5,4))
├── @ FloatNode (location: (6,0)-(6,14))
├── @ FloatNode (location: (7,0)-(7,15))
diff --git a/test/prism/snapshots/unparser/corpus/semantic/send.txt b/test/prism/snapshots/unparser/corpus/semantic/send.txt
index a4e261e377..7c152c3bfb 100644
--- a/test/prism/snapshots/unparser/corpus/semantic/send.txt
+++ b/test/prism/snapshots/unparser/corpus/semantic/send.txt
@@ -25,7 +25,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (2,4)-(2,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (2,5)-(2,6) = ")"
│ └── block: ∅
├── @ CallNode (location: (4,0)-(4,15))
diff --git a/test/prism/snapshots/until.txt b/test/prism/snapshots/until.txt
index bb3987a045..fc7cb92c91 100644
--- a/test/prism/snapshots/until.txt
+++ b/test/prism/snapshots/until.txt
@@ -13,7 +13,8 @@
│ @ StatementsNode (location: (1,12)-(1,13))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,12)-(1,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ UntilNode (location: (3,0)-(3,12))
│ ├── flags: ∅
│ ├── keyword_loc: (3,2)-(3,7) = "until"
@@ -24,7 +25,8 @@
│ @ StatementsNode (location: (3,0)-(3,1))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (3,0)-(3,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ UntilNode (location: (5,0)-(5,16))
│ ├── flags: ∅
│ ├── keyword_loc: (5,6)-(5,11) = "until"
diff --git a/test/prism/snapshots/variables.txt b/test/prism/snapshots/variables.txt
index 37cd4556f0..b79612f924 100644
--- a/test/prism/snapshots/variables.txt
+++ b/test/prism/snapshots/variables.txt
@@ -10,7 +10,8 @@
│ ├── name_loc: (3,0)-(3,5) = "@@abc"
│ ├── value:
│ │ @ IntegerNode (location: (3,8)-(3,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (3,6)-(3,7) = "="
├── @ MultiWriteNode (location: (5,0)-(5,16))
│ ├── lefts: (length: 2)
@@ -25,7 +26,8 @@
│ ├── operator_loc: (5,13)-(5,14) = "="
│ └── value:
│ @ IntegerNode (location: (5,15)-(5,16))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ ClassVariableWriteNode (location: (7,0)-(7,12))
│ ├── name: :@@foo
│ ├── name_loc: (7,0)-(7,5) = "@@foo"
@@ -34,9 +36,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (7,8)-(7,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (7,11)-(7,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (7,6)-(7,7) = "="
@@ -45,7 +49,8 @@
│ ├── name_loc: (9,0)-(9,4) = "$abc"
│ ├── value:
│ │ @ IntegerNode (location: (9,7)-(9,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (9,5)-(9,6) = "="
├── @ GlobalVariableReadNode (location: (11,0)-(11,4))
│ └── name: :$abc
@@ -56,7 +61,8 @@
│ ├── name_loc: (15,0)-(15,4) = "@abc"
│ ├── value:
│ │ @ IntegerNode (location: (15,7)-(15,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (15,5)-(15,6) = "="
├── @ CallNode (location: (17,0)-(17,1))
│ ├── flags: variable_call, ignore_visibility
@@ -74,7 +80,8 @@
│ ├── name_loc: (19,0)-(19,3) = "abc"
│ ├── value:
│ │ @ IntegerNode (location: (19,6)-(19,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (19,4)-(19,5) = "="
├── @ MultiWriteNode (location: (21,0)-(21,14))
│ ├── lefts: (length: 2)
@@ -89,7 +96,8 @@
│ ├── operator_loc: (21,11)-(21,12) = "="
│ └── value:
│ @ IntegerNode (location: (21,13)-(21,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ GlobalVariableWriteNode (location: (23,0)-(23,11))
│ ├── name: :$foo
│ ├── name_loc: (23,0)-(23,4) = "$foo"
@@ -98,9 +106,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (23,7)-(23,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (23,10)-(23,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (23,5)-(23,6) = "="
@@ -117,7 +127,8 @@
│ ├── operator_loc: (25,11)-(25,12) = "="
│ └── value:
│ @ IntegerNode (location: (25,13)-(25,14))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ InstanceVariableWriteNode (location: (27,0)-(27,11))
│ ├── name: :@foo
│ ├── name_loc: (27,0)-(27,4) = "@foo"
@@ -126,9 +137,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (27,7)-(27,8))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (27,10)-(27,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (27,5)-(27,6) = "="
@@ -138,7 +151,8 @@
│ ├── name_loc: (29,0)-(29,3) = "foo"
│ ├── value:
│ │ @ IntegerNode (location: (29,6)-(29,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (29,4)-(29,5) = "="
├── @ LocalVariableWriteNode (location: (29,9)-(29,19))
│ ├── name: :foo
@@ -149,9 +163,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (29,15)-(29,16))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (29,18)-(29,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (29,13)-(29,14) = "="
@@ -164,9 +180,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (31,6)-(31,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (31,9)-(31,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (31,4)-(31,5) = "="
@@ -188,9 +206,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (33,9)-(33,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (33,12)-(33,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ MultiWriteNode (location: (35,0)-(35,11))
@@ -209,9 +229,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (35,7)-(35,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (35,10)-(35,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ MultiWriteNode (location: (37,0)-(37,16))
@@ -235,9 +257,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (37,12)-(37,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (37,15)-(37,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ MultiWriteNode (location: (39,0)-(39,27))
@@ -267,14 +291,17 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (39,18)-(39,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ ArrayNode (location: (39,21)-(39,27))
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (39,22)-(39,23))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ └── @ IntegerNode (location: (39,25)-(39,26))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 3
│ │ ├── opening_loc: (39,21)-(39,22) = "["
│ │ └── closing_loc: (39,26)-(39,27) = "]"
│ ├── opening_loc: ∅
@@ -304,9 +331,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (43,6)-(43,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (43,9)-(43,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (43,4)-(43,5) = "="
diff --git a/test/prism/snapshots/while.txt b/test/prism/snapshots/while.txt
index 3599bc4bb8..9f19164798 100644
--- a/test/prism/snapshots/while.txt
+++ b/test/prism/snapshots/while.txt
@@ -13,7 +13,8 @@
│ @ StatementsNode (location: (1,12)-(1,13))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,12)-(1,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ WhileNode (location: (3,0)-(3,12))
│ ├── flags: ∅
│ ├── keyword_loc: (3,2)-(3,7) = "while"
@@ -24,7 +25,8 @@
│ @ StatementsNode (location: (3,0)-(3,1))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (3,0)-(3,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ WhileNode (location: (5,0)-(5,16))
│ ├── flags: ∅
│ ├── keyword_loc: (5,6)-(5,11) = "while"
diff --git a/test/prism/snapshots/whitequark/and_asgn.txt b/test/prism/snapshots/whitequark/and_asgn.txt
index af4b86cead..5c7a9a2319 100644
--- a/test/prism/snapshots/whitequark/and_asgn.txt
+++ b/test/prism/snapshots/whitequark/and_asgn.txt
@@ -23,7 +23,8 @@
│ ├── operator_loc: (1,6)-(1,9) = "&&="
│ └── value:
│ @ IntegerNode (location: (1,10)-(1,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ IndexAndWriteNode (location: (3,0)-(3,15))
├── flags: ∅
├── receiver:
@@ -44,12 +45,15 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (3,4)-(3,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ └── @ IntegerNode (location: (3,7)-(3,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (3,8)-(3,9) = "]"
├── block: ∅
├── operator_loc: (3,10)-(3,13) = "&&="
└── value:
@ IntegerNode (location: (3,14)-(3,15))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 2
diff --git a/test/prism/snapshots/whitequark/args.txt b/test/prism/snapshots/whitequark/args.txt
index 3468650956..bc7ea8ad7d 100644
--- a/test/prism/snapshots/whitequark/args.txt
+++ b/test/prism/snapshots/whitequark/args.txt
@@ -391,7 +391,8 @@
│ │ │ ├── name_loc: (23,7)-(23,11) = "foo:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (23,12)-(23,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_rest: ∅
│ │ └── block:
│ │ @ BlockParameterNode (location: (23,15)-(23,17))
@@ -424,14 +425,16 @@
│ │ │ │ ├── name_loc: (25,7)-(25,11) = "foo:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (25,12)-(25,13))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ OptionalKeywordParameterNode (location: (25,15)-(25,21))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :bar
│ │ │ ├── name_loc: (25,15)-(25,19) = "bar:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (25,20)-(25,21))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── keyword_rest:
│ │ │ @ KeywordRestParameterNode (location: (25,23)-(25,28))
│ │ │ ├── flags: ∅
@@ -710,7 +713,8 @@
│ │ │ ├── operator_loc: (43,10)-(43,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (43,11)-(43,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -747,7 +751,8 @@
│ │ │ ├── operator_loc: (45,10)-(45,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (45,11)-(45,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (45,14)-(45,16))
│ │ │ ├── flags: ∅
@@ -789,7 +794,8 @@
│ │ │ ├── operator_loc: (47,10)-(47,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (47,11)-(47,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (47,14)-(47,16))
│ │ │ ├── flags: ∅
@@ -834,7 +840,8 @@
│ │ │ ├── operator_loc: (49,10)-(49,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (49,11)-(49,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (49,14)-(49,15))
@@ -898,7 +905,8 @@
│ │ │ ├── name_loc: (54,6)-(54,10) = "foo:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (54,11)-(54,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: -1
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body: ∅
@@ -924,7 +932,8 @@
│ │ │ ├── operator_loc: (57,7)-(57,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (57,8)-(57,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -958,7 +967,8 @@
│ │ │ ├── operator_loc: (59,7)-(59,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (59,8)-(59,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (59,11)-(59,13))
│ │ │ ├── flags: ∅
@@ -997,7 +1007,8 @@
│ │ │ ├── operator_loc: (61,7)-(61,8) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (61,8)-(61,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest:
│ │ │ @ RestParameterNode (location: (61,11)-(61,13))
│ │ │ ├── flags: ∅
@@ -1039,7 +1050,8 @@
│ │ ├── operator_loc: (63,7)-(63,8) = "="
│ │ └── value:
│ │ @ IntegerNode (location: (63,8)-(63,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── rest: ∅
│ ├── posts: (length: 1)
│ │ └── @ RequiredParameterNode (location: (63,11)-(63,12))
diff --git a/test/prism/snapshots/whitequark/args_args_assocs.txt b/test/prism/snapshots/whitequark/args_args_assocs.txt
index 3520b0e672..6297f212d8 100644
--- a/test/prism/snapshots/whitequark/args_args_assocs.txt
+++ b/test/prism/snapshots/whitequark/args_args_assocs.txt
@@ -37,7 +37,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,17)-(1,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,14)-(1,16) = "=>"
│ ├── closing_loc: (1,18)-(1,19) = ")"
│ └── block: ∅
@@ -75,7 +76,8 @@
│ │ └── unescaped: "foo"
│ ├── value:
│ │ @ IntegerNode (location: (3,17)-(3,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (3,14)-(3,16) = "=>"
├── closing_loc: (3,24)-(3,25) = ")"
└── block:
diff --git a/test/prism/snapshots/whitequark/args_args_assocs_comma.txt b/test/prism/snapshots/whitequark/args_args_assocs_comma.txt
index 3e9f0a8f9f..969514a511 100644
--- a/test/prism/snapshots/whitequark/args_args_assocs_comma.txt
+++ b/test/prism/snapshots/whitequark/args_args_assocs_comma.txt
@@ -47,7 +47,8 @@
│ │ └── unescaped: "baz"
│ ├── value:
│ │ @ IntegerNode (location: (1,17)-(1,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,14)-(1,16) = "=>"
├── closing_loc: (1,19)-(1,20) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/args_assocs.txt b/test/prism/snapshots/whitequark/args_assocs.txt
index 6d8bd6b1bd..47cb68d899 100644
--- a/test/prism/snapshots/whitequark/args_assocs.txt
+++ b/test/prism/snapshots/whitequark/args_assocs.txt
@@ -27,7 +27,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,9)-(1,11) = "=>"
│ ├── closing_loc: (1,13)-(1,14) = ")"
│ └── block: ∅
@@ -55,7 +56,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,12)-(3,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (3,9)-(3,11) = "=>"
│ ├── closing_loc: (3,19)-(3,20) = ")"
│ └── block:
@@ -107,7 +109,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (5,20)-(5,21))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (5,17)-(5,19) = "=>"
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -136,7 +139,8 @@
│ │ │ └── unescaped: "bar"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (7,13)-(7,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (7,10)-(7,12) = "=>"
│ ├── closing_loc: (7,14)-(7,15) = "]"
│ └── block: ∅
@@ -160,7 +164,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (9,14)-(9,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ └── operator_loc: (9,11)-(9,13) = "=>"
│ ├── rparen_loc: (9,16)-(9,17) = ")"
│ └── block: ∅
@@ -184,6 +189,7 @@
│ │ └── unescaped: "foo"
│ ├── value:
│ │ @ IntegerNode (location: (11,14)-(11,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ └── operator_loc: (11,11)-(11,13) = "=>"
└── rparen_loc: (11,16)-(11,17) = ")"
diff --git a/test/prism/snapshots/whitequark/args_assocs_comma.txt b/test/prism/snapshots/whitequark/args_assocs_comma.txt
index bea6e8b300..b1b9fbeefe 100644
--- a/test/prism/snapshots/whitequark/args_assocs_comma.txt
+++ b/test/prism/snapshots/whitequark/args_assocs_comma.txt
@@ -37,7 +37,8 @@
│ │ └── unescaped: "baz"
│ ├── value:
│ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,9)-(1,11) = "=>"
├── closing_loc: (1,14)-(1,15) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/args_assocs_legacy.txt b/test/prism/snapshots/whitequark/args_assocs_legacy.txt
index 6d8bd6b1bd..47cb68d899 100644
--- a/test/prism/snapshots/whitequark/args_assocs_legacy.txt
+++ b/test/prism/snapshots/whitequark/args_assocs_legacy.txt
@@ -27,7 +27,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (1,9)-(1,11) = "=>"
│ ├── closing_loc: (1,13)-(1,14) = ")"
│ └── block: ∅
@@ -55,7 +56,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,12)-(3,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (3,9)-(3,11) = "=>"
│ ├── closing_loc: (3,19)-(3,20) = ")"
│ └── block:
@@ -107,7 +109,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (5,20)-(5,21))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (5,17)-(5,19) = "=>"
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -136,7 +139,8 @@
│ │ │ └── unescaped: "bar"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (7,13)-(7,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: (7,10)-(7,12) = "=>"
│ ├── closing_loc: (7,14)-(7,15) = "]"
│ └── block: ∅
@@ -160,7 +164,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (9,14)-(9,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ └── operator_loc: (9,11)-(9,13) = "=>"
│ ├── rparen_loc: (9,16)-(9,17) = ")"
│ └── block: ∅
@@ -184,6 +189,7 @@
│ │ └── unescaped: "foo"
│ ├── value:
│ │ @ IntegerNode (location: (11,14)-(11,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ └── operator_loc: (11,11)-(11,13) = "=>"
└── rparen_loc: (11,16)-(11,17) = ")"
diff --git a/test/prism/snapshots/whitequark/array_assocs.txt b/test/prism/snapshots/whitequark/array_assocs.txt
index c66356b89a..3747e3f7d8 100644
--- a/test/prism/snapshots/whitequark/array_assocs.txt
+++ b/test/prism/snapshots/whitequark/array_assocs.txt
@@ -12,10 +12,12 @@
│ │ └── @ AssocNode (location: (1,2)-(1,8))
│ │ ├── key:
│ │ │ @ IntegerNode (location: (1,2)-(1,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (1,4)-(1,6) = "=>"
│ ├── opening_loc: (1,0)-(1,1) = "["
│ └── closing_loc: (1,9)-(1,10) = "]"
@@ -23,17 +25,20 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (3,2)-(3,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ KeywordHashNode (location: (3,5)-(3,11))
│ ├── flags: ∅
│ └── elements: (length: 1)
│ └── @ AssocNode (location: (3,5)-(3,11))
│ ├── key:
│ │ @ IntegerNode (location: (3,5)-(3,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── value:
│ │ @ IntegerNode (location: (3,10)-(3,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ └── operator_loc: (3,7)-(3,9) = "=>"
├── opening_loc: (3,0)-(3,1) = "["
└── closing_loc: (3,12)-(3,13) = "]"
diff --git a/test/prism/snapshots/whitequark/array_plain.txt b/test/prism/snapshots/whitequark/array_plain.txt
index 17dd4a2137..b183a7ac6b 100644
--- a/test/prism/snapshots/whitequark/array_plain.txt
+++ b/test/prism/snapshots/whitequark/array_plain.txt
@@ -7,8 +7,10 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (1,1)-(1,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: (1,0)-(1,1) = "["
└── closing_loc: (1,5)-(1,6) = "]"
diff --git a/test/prism/snapshots/whitequark/array_splat.txt b/test/prism/snapshots/whitequark/array_splat.txt
index fd1ce43f8d..f76563e9f4 100644
--- a/test/prism/snapshots/whitequark/array_splat.txt
+++ b/test/prism/snapshots/whitequark/array_splat.txt
@@ -25,7 +25,8 @@
│ ├── flags: contains_splat
│ ├── elements: (length: 3)
│ │ ├── @ IntegerNode (location: (3,1)-(3,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── @ SplatNode (location: (3,4)-(3,8))
│ │ │ ├── operator_loc: (3,4)-(3,5) = "*"
│ │ │ └── expression:
@@ -40,14 +41,16 @@
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ └── @ IntegerNode (location: (3,10)-(3,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: (3,0)-(3,1) = "["
│ └── closing_loc: (3,11)-(3,12) = "]"
└── @ ArrayNode (location: (5,0)-(5,9))
├── flags: contains_splat
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (5,1)-(5,2))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ SplatNode (location: (5,4)-(5,8))
│ ├── operator_loc: (5,4)-(5,5) = "*"
│ └── expression:
diff --git a/test/prism/snapshots/whitequark/asgn_mrhs.txt b/test/prism/snapshots/whitequark/asgn_mrhs.txt
index a5811faf91..41d5bdc5bf 100644
--- a/test/prism/snapshots/whitequark/asgn_mrhs.txt
+++ b/test/prism/snapshots/whitequark/asgn_mrhs.txt
@@ -46,7 +46,8 @@
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── block: ∅
│ │ │ └── @ IntegerNode (location: (3,11)-(3,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── operator_loc: (3,4)-(3,5) = "="
diff --git a/test/prism/snapshots/whitequark/begin_cmdarg.txt b/test/prism/snapshots/whitequark/begin_cmdarg.txt
index 975f664c86..b0c03c1754 100644
--- a/test/prism/snapshots/whitequark/begin_cmdarg.txt
+++ b/test/prism/snapshots/whitequark/begin_cmdarg.txt
@@ -23,7 +23,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── call_operator_loc: (1,9)-(1,10) = "."
│ │ ├── name: :times
│ │ ├── message_loc: (1,10)-(1,15) = "times"
@@ -38,7 +39,8 @@
│ │ │ @ StatementsNode (location: (1,19)-(1,20))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,19)-(1,20))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (1,16)-(1,18) = "do"
│ │ └── closing_loc: (1,21)-(1,24) = "end"
│ ├── rescue_clause: ∅
diff --git a/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt b/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt
index bffa01e42a..69db24a127 100644
--- a/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt
+++ b/test/prism/snapshots/whitequark/beginless_erange_after_newline.txt
@@ -18,5 +18,6 @@
├── left: ∅
├── right:
│ @ IntegerNode (location: (2,3)-(2,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 100
└── operator_loc: (2,0)-(2,3) = "..."
diff --git a/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt b/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt
index b0fb7258a7..cbc11c83c1 100644
--- a/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt
+++ b/test/prism/snapshots/whitequark/beginless_irange_after_newline.txt
@@ -18,5 +18,6 @@
├── left: ∅
├── right:
│ @ IntegerNode (location: (2,2)-(2,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 100
└── operator_loc: (2,0)-(2,2) = ".."
diff --git a/test/prism/snapshots/whitequark/beginless_range.txt b/test/prism/snapshots/whitequark/beginless_range.txt
index ffbde4de34..59e6f135ad 100644
--- a/test/prism/snapshots/whitequark/beginless_range.txt
+++ b/test/prism/snapshots/whitequark/beginless_range.txt
@@ -8,12 +8,14 @@
│ ├── left: ∅
│ ├── right:
│ │ @ IntegerNode (location: (1,3)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 100
│ └── operator_loc: (1,0)-(1,3) = "..."
└── @ RangeNode (location: (3,0)-(3,5))
├── flags: ∅
├── left: ∅
├── right:
│ @ IntegerNode (location: (3,2)-(3,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 100
└── operator_loc: (3,0)-(3,2) = ".."
diff --git a/test/prism/snapshots/whitequark/blockargs.txt b/test/prism/snapshots/whitequark/blockargs.txt
index fc229453a8..149c3765c9 100644
--- a/test/prism/snapshots/whitequark/blockargs.txt
+++ b/test/prism/snapshots/whitequark/blockargs.txt
@@ -688,7 +688,8 @@
│ │ │ │ ├── operator_loc: (41,8)-(41,9) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (41,9)-(41,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 0)
@@ -733,7 +734,8 @@
│ │ │ │ ├── operator_loc: (43,8)-(43,9) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (43,9)-(43,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (43,12)-(43,14))
│ │ │ │ ├── flags: ∅
@@ -786,7 +788,8 @@
│ │ │ │ │ ├── operator_loc: (45,8)-(45,9) = "="
│ │ │ │ │ └── value:
│ │ │ │ │ @ IntegerNode (location: (45,9)-(45,10))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── @ OptionalParameterNode (location: (45,12)-(45,16))
│ │ │ │ ├── flags: ∅
│ │ │ │ ├── name: :o1
@@ -794,7 +797,8 @@
│ │ │ │ ├── operator_loc: (45,14)-(45,15) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (45,15)-(45,16))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (45,18)-(45,20))
│ │ │ │ ├── flags: ∅
@@ -844,7 +848,8 @@
│ │ │ │ ├── operator_loc: (47,8)-(47,9) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (47,9)-(47,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 1)
│ │ │ │ └── @ RequiredParameterNode (location: (47,12)-(47,13))
@@ -1020,7 +1025,8 @@
│ │ │ │ ├── name_loc: (57,4)-(57,8) = "foo:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (57,9)-(57,10))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block:
│ │ │ @ BlockParameterNode (location: (57,12)-(57,14))
@@ -1061,14 +1067,16 @@
│ │ │ │ │ ├── name_loc: (59,4)-(59,8) = "foo:"
│ │ │ │ │ └── value:
│ │ │ │ │ @ IntegerNode (location: (59,9)-(59,10))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 1
│ │ │ │ └── @ OptionalKeywordParameterNode (location: (59,12)-(59,18))
│ │ │ │ ├── flags: ∅
│ │ │ │ ├── name: :bar
│ │ │ │ ├── name_loc: (59,12)-(59,16) = "bar:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (59,17)-(59,18))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 2
│ │ │ ├── keyword_rest:
│ │ │ │ @ KeywordRestParameterNode (location: (59,20)-(59,25))
│ │ │ │ ├── flags: ∅
@@ -1145,7 +1153,8 @@
│ │ │ │ ├── operator_loc: (63,5)-(63,6) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (63,6)-(63,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 0)
@@ -1187,7 +1196,8 @@
│ │ │ │ ├── operator_loc: (65,5)-(65,6) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (65,6)-(65,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (65,9)-(65,11))
│ │ │ │ ├── flags: ∅
@@ -1234,7 +1244,8 @@
│ │ │ │ ├── operator_loc: (67,5)-(67,6) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (67,6)-(67,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (67,9)-(67,11))
│ │ │ │ ├── flags: ∅
@@ -1284,7 +1295,8 @@
│ │ │ │ ├── operator_loc: (69,5)-(69,6) = "="
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (69,6)-(69,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 1)
│ │ │ │ └── @ RequiredParameterNode (location: (69,9)-(69,10))
diff --git a/test/prism/snapshots/whitequark/bug_447.txt b/test/prism/snapshots/whitequark/bug_447.txt
index 5b01cc8a18..7291d01175 100644
--- a/test/prism/snapshots/whitequark/bug_447.txt
+++ b/test/prism/snapshots/whitequark/bug_447.txt
@@ -44,7 +44,8 @@
│ │ ├── opening_loc: (3,2)-(3,3) = "["
│ │ └── closing_loc: (3,3)-(3,4) = "]"
│ └── @ IntegerNode (location: (3,6)-(3,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block:
@ BlockNode (location: (3,8)-(3,14))
diff --git a/test/prism/snapshots/whitequark/bug_452.txt b/test/prism/snapshots/whitequark/bug_452.txt
index 7410184788..e1ea52fbd1 100644
--- a/test/prism/snapshots/whitequark/bug_452.txt
+++ b/test/prism/snapshots/whitequark/bug_452.txt
@@ -22,7 +22,8 @@
│ │ │ │ @ StatementsNode (location: (1,4)-(1,9))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (1,4)-(1,9))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1500
│ │ │ ├── opening_loc: (1,3)-(1,4) = "("
│ │ │ └── closing_loc: (1,9)-(1,10) = ")"
│ │ ├── call_operator_loc: (1,10)-(1,11) = "."
diff --git a/test/prism/snapshots/whitequark/bug_466.txt b/test/prism/snapshots/whitequark/bug_466.txt
index a0be5655a1..3f65dee048 100644
--- a/test/prism/snapshots/whitequark/bug_466.txt
+++ b/test/prism/snapshots/whitequark/bug_466.txt
@@ -33,7 +33,8 @@
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ ├── receiver:
│ │ │ │ │ │ @ IntegerNode (location: (1,8)-(1,9))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ │ ├── name: :+
│ │ │ │ │ ├── message_loc: (1,9)-(1,10) = "+"
@@ -43,7 +44,8 @@
│ │ │ │ │ │ ├── flags: ∅
│ │ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ │ └── value: 1
│ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ └── block: ∅
│ │ │ │ ├── opening_loc: (1,7)-(1,8) = "("
diff --git a/test/prism/snapshots/whitequark/bug_481.txt b/test/prism/snapshots/whitequark/bug_481.txt
index f0166388e8..0b093d483c 100644
--- a/test/prism/snapshots/whitequark/bug_481.txt
+++ b/test/prism/snapshots/whitequark/bug_481.txt
@@ -33,7 +33,8 @@
├── flags: ∅
├── receiver:
│ @ IntegerNode (location: (1,16)-(1,17))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── call_operator_loc: (1,17)-(1,18) = "."
├── name: :tap
├── message_loc: (1,18)-(1,21) = "tap"
diff --git a/test/prism/snapshots/whitequark/bug_interp_single.txt b/test/prism/snapshots/whitequark/bug_interp_single.txt
index 699dd6297e..6a9d56b519 100644
--- a/test/prism/snapshots/whitequark/bug_interp_single.txt
+++ b/test/prism/snapshots/whitequark/bug_interp_single.txt
@@ -12,7 +12,8 @@
│ │ │ @ StatementsNode (location: (1,3)-(1,4))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,3)-(1,4))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── closing_loc: (1,4)-(1,5) = "}"
│ └── closing_loc: (1,5)-(1,6) = "\""
└── @ ArrayNode (location: (3,0)-(3,8))
@@ -27,7 +28,8 @@
│ │ │ @ StatementsNode (location: (3,5)-(3,6))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,5)-(3,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── closing_loc: (3,6)-(3,7) = "}"
│ └── closing_loc: ∅
├── opening_loc: (3,0)-(3,3) = "%W\""
diff --git a/test/prism/snapshots/whitequark/casgn_scoped.txt b/test/prism/snapshots/whitequark/casgn_scoped.txt
index bb3a8b072a..4e3fd6fe44 100644
--- a/test/prism/snapshots/whitequark/casgn_scoped.txt
+++ b/test/prism/snapshots/whitequark/casgn_scoped.txt
@@ -16,4 +16,5 @@
├── operator_loc: (1,9)-(1,10) = "="
└── value:
@ IntegerNode (location: (1,11)-(1,13))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 10
diff --git a/test/prism/snapshots/whitequark/casgn_toplevel.txt b/test/prism/snapshots/whitequark/casgn_toplevel.txt
index bc48b1e841..11facfefb3 100644
--- a/test/prism/snapshots/whitequark/casgn_toplevel.txt
+++ b/test/prism/snapshots/whitequark/casgn_toplevel.txt
@@ -14,4 +14,5 @@
├── operator_loc: (1,6)-(1,7) = "="
└── value:
@ IntegerNode (location: (1,8)-(1,10))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 10
diff --git a/test/prism/snapshots/whitequark/casgn_unscoped.txt b/test/prism/snapshots/whitequark/casgn_unscoped.txt
index 90434d39db..f535cafdc6 100644
--- a/test/prism/snapshots/whitequark/casgn_unscoped.txt
+++ b/test/prism/snapshots/whitequark/casgn_unscoped.txt
@@ -8,5 +8,6 @@
├── name_loc: (1,0)-(1,3) = "Foo"
├── value:
│ @ IntegerNode (location: (1,6)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 10
└── operator_loc: (1,4)-(1,5) = "="
diff --git a/test/prism/snapshots/whitequark/complex.txt b/test/prism/snapshots/whitequark/complex.txt
index f81564d700..80e7c00fb9 100644
--- a/test/prism/snapshots/whitequark/complex.txt
+++ b/test/prism/snapshots/whitequark/complex.txt
@@ -14,10 +14,12 @@
├── @ ImaginaryNode (location: (5,0)-(5,3))
│ └── numeric:
│ @ IntegerNode (location: (5,0)-(5,2))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
└── @ ImaginaryNode (location: (7,0)-(7,4))
└── numeric:
@ RationalNode (location: (7,0)-(7,3))
└── numeric:
@ IntegerNode (location: (7,0)-(7,2))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 42
diff --git a/test/prism/snapshots/whitequark/const_op_asgn.txt b/test/prism/snapshots/whitequark/const_op_asgn.txt
index fc6533ccd0..4985f3e54b 100644
--- a/test/prism/snapshots/whitequark/const_op_asgn.txt
+++ b/test/prism/snapshots/whitequark/const_op_asgn.txt
@@ -14,7 +14,8 @@
│ ├── operator_loc: (1,4)-(1,6) = "+="
│ ├── value:
│ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator: :+
├── @ ConstantOperatorWriteNode (location: (3,0)-(3,6))
│ ├── name: :A
@@ -22,7 +23,8 @@
│ ├── operator_loc: (3,2)-(3,4) = "+="
│ ├── value:
│ │ @ IntegerNode (location: (3,5)-(3,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator: :+
├── @ ConstantPathOperatorWriteNode (location: (5,0)-(5,9))
│ ├── target:
@@ -37,7 +39,8 @@
│ ├── operator_loc: (5,5)-(5,7) = "+="
│ ├── value:
│ │ @ IntegerNode (location: (5,8)-(5,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator: :+
├── @ DefNode (location: (7,0)-(7,21))
│ ├── name: :x
@@ -58,7 +61,8 @@
│ │ ├── operator_loc: (7,11)-(7,14) = "||="
│ │ └── value:
│ │ @ IntegerNode (location: (7,15)-(7,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── locals: []
│ ├── def_keyword_loc: (7,0)-(7,3) = "def"
│ ├── operator_loc: ∅
@@ -86,7 +90,8 @@
│ ├── operator_loc: (9,15)-(9,18) = "||="
│ └── value:
│ @ IntegerNode (location: (9,19)-(9,20))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── locals: []
├── def_keyword_loc: (9,0)-(9,3) = "def"
├── operator_loc: ∅
diff --git a/test/prism/snapshots/whitequark/cvasgn.txt b/test/prism/snapshots/whitequark/cvasgn.txt
index e6a1c7e973..f3eceed4a4 100644
--- a/test/prism/snapshots/whitequark/cvasgn.txt
+++ b/test/prism/snapshots/whitequark/cvasgn.txt
@@ -8,5 +8,6 @@
├── name_loc: (1,0)-(1,5) = "@@var"
├── value:
│ @ IntegerNode (location: (1,8)-(1,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 10
└── operator_loc: (1,6)-(1,7) = "="
diff --git a/test/prism/snapshots/whitequark/endless_method.txt b/test/prism/snapshots/whitequark/endless_method.txt
index d2443223bb..17d3873b66 100644
--- a/test/prism/snapshots/whitequark/endless_method.txt
+++ b/test/prism/snapshots/whitequark/endless_method.txt
@@ -12,7 +12,8 @@
│ │ @ StatementsNode (location: (1,12)-(1,14))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,12)-(1,14))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── locals: []
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
@@ -54,7 +55,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,17)-(3,18))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── locals: [:x]
@@ -83,7 +85,8 @@
│ │ @ StatementsNode (location: (5,16)-(5,18))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (5,16)-(5,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── locals: []
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: (5,7)-(5,8) = "."
@@ -135,7 +138,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (7,21)-(7,22))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── locals: [:x]
diff --git a/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt b/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt
index 8f8e770fa9..2284b24354 100644
--- a/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt
+++ b/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt
@@ -14,11 +14,13 @@
│ │ └── @ RescueModifierNode (location: (1,10)-(1,20))
│ │ ├── expression:
│ │ │ @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── keyword_loc: (1,12)-(1,18) = "rescue"
│ │ └── rescue_expression:
│ │ @ IntegerNode (location: (1,19)-(1,20))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── locals: []
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
@@ -38,11 +40,13 @@
│ └── @ RescueModifierNode (location: (3,15)-(3,25))
│ ├── expression:
│ │ @ IntegerNode (location: (3,15)-(3,16))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_loc: (3,17)-(3,23) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (3,24)-(3,25))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── locals: []
├── def_keyword_loc: (3,0)-(3,3) = "def"
├── operator_loc: (3,8)-(3,9) = "."
diff --git a/test/prism/snapshots/whitequark/endless_method_without_args.txt b/test/prism/snapshots/whitequark/endless_method_without_args.txt
index b7db96171e..a7a9c93ef3 100644
--- a/test/prism/snapshots/whitequark/endless_method_without_args.txt
+++ b/test/prism/snapshots/whitequark/endless_method_without_args.txt
@@ -12,7 +12,8 @@
│ │ @ StatementsNode (location: (1,10)-(1,12))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,10)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── locals: []
│ ├── def_keyword_loc: (1,0)-(1,3) = "def"
│ ├── operator_loc: ∅
@@ -31,7 +32,8 @@
│ │ └── @ RescueModifierNode (location: (3,10)-(3,23))
│ │ ├── expression:
│ │ │ @ IntegerNode (location: (3,10)-(3,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── keyword_loc: (3,13)-(3,19) = "rescue"
│ │ └── rescue_expression:
│ │ @ NilNode (location: (3,20)-(3,23))
@@ -52,7 +54,8 @@
│ │ @ StatementsNode (location: (5,15)-(5,17))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (5,15)-(5,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── locals: []
│ ├── def_keyword_loc: (5,0)-(5,3) = "def"
│ ├── operator_loc: (5,8)-(5,9) = "."
@@ -72,7 +75,8 @@
│ └── @ RescueModifierNode (location: (7,15)-(7,28))
│ ├── expression:
│ │ @ IntegerNode (location: (7,15)-(7,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 42
│ ├── keyword_loc: (7,18)-(7,24) = "rescue"
│ └── rescue_expression:
│ @ NilNode (location: (7,25)-(7,28))
diff --git a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt
index 90b4965543..7e58260b58 100644
--- a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt
+++ b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt
@@ -251,7 +251,8 @@
│ │ │ ├── operator_loc: (18,13)-(18,14) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (18,15)-(18,16))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -281,7 +282,8 @@
│ │ │ ├── operator_loc: (21,10)-(21,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (21,12)-(21,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -327,7 +329,8 @@
│ │ │ ├── operator_loc: (25,10)-(25,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (25,12)-(25,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/whitequark/gvasgn.txt b/test/prism/snapshots/whitequark/gvasgn.txt
index 541a3a0fc4..fc044054d8 100644
--- a/test/prism/snapshots/whitequark/gvasgn.txt
+++ b/test/prism/snapshots/whitequark/gvasgn.txt
@@ -8,5 +8,6 @@
├── name_loc: (1,0)-(1,4) = "$var"
├── value:
│ @ IntegerNode (location: (1,7)-(1,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 10
└── operator_loc: (1,5)-(1,6) = "="
diff --git a/test/prism/snapshots/whitequark/hash_hashrocket.txt b/test/prism/snapshots/whitequark/hash_hashrocket.txt
index 124de2f3a3..e661a7b048 100644
--- a/test/prism/snapshots/whitequark/hash_hashrocket.txt
+++ b/test/prism/snapshots/whitequark/hash_hashrocket.txt
@@ -9,10 +9,12 @@
│ │ └── @ AssocNode (location: (1,2)-(1,8))
│ │ ├── key:
│ │ │ @ IntegerNode (location: (1,2)-(1,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (1,4)-(1,6) = "=>"
│ └── closing_loc: (1,9)-(1,10) = "}"
└── @ HashNode (location: (3,0)-(3,25))
@@ -21,10 +23,12 @@
│ ├── @ AssocNode (location: (3,2)-(3,8))
│ │ ├── key:
│ │ │ @ IntegerNode (location: (3,2)-(3,3))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,7)-(3,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: (3,4)-(3,6) = "=>"
│ └── @ AssocNode (location: (3,10)-(3,23))
│ ├── key:
diff --git a/test/prism/snapshots/whitequark/hash_kwsplat.txt b/test/prism/snapshots/whitequark/hash_kwsplat.txt
index b0d75a64b4..a5d12174cc 100644
--- a/test/prism/snapshots/whitequark/hash_kwsplat.txt
+++ b/test/prism/snapshots/whitequark/hash_kwsplat.txt
@@ -16,7 +16,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ └── @ AssocSplatNode (location: (1,10)-(1,15))
│ ├── value:
diff --git a/test/prism/snapshots/whitequark/hash_label.txt b/test/prism/snapshots/whitequark/hash_label.txt
index bbc49bbbd7..fdf7a21ed0 100644
--- a/test/prism/snapshots/whitequark/hash_label.txt
+++ b/test/prism/snapshots/whitequark/hash_label.txt
@@ -16,6 +16,7 @@
│ │ └── unescaped: "foo"
│ ├── value:
│ │ @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── operator_loc: ∅
└── closing_loc: (1,9)-(1,10) = "}"
diff --git a/test/prism/snapshots/whitequark/hash_label_end.txt b/test/prism/snapshots/whitequark/hash_label_end.txt
index 71fd7b0050..88b70d38e2 100644
--- a/test/prism/snapshots/whitequark/hash_label_end.txt
+++ b/test/prism/snapshots/whitequark/hash_label_end.txt
@@ -44,7 +44,8 @@
│ │ │ │ @ StatementsNode (location: (1,10)-(1,11))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── end_keyword_loc: ∅
│ │ └── end_keyword_loc: ∅
│ ├── closing_loc: (1,11)-(1,12) = ")"
@@ -62,7 +63,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (3,9)-(3,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ └── closing_loc: (3,11)-(3,12) = "}"
└── @ HashNode (location: (5,0)-(5,22))
@@ -78,7 +80,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (5,9)-(5,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── operator_loc: ∅
│ └── @ AssocNode (location: (5,12)-(5,21))
│ ├── key:
diff --git a/test/prism/snapshots/whitequark/if_elsif.txt b/test/prism/snapshots/whitequark/if_elsif.txt
index aab6d4003b..1bd1ab7f42 100644
--- a/test/prism/snapshots/whitequark/if_elsif.txt
+++ b/test/prism/snapshots/whitequark/if_elsif.txt
@@ -49,7 +49,8 @@
│ │ @ StatementsNode (location: (1,24)-(1,25))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,24)-(1,25))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── consequent:
│ │ @ ElseNode (location: (1,27)-(1,38))
│ │ ├── else_keyword_loc: (1,27)-(1,31) = "else"
@@ -57,7 +58,8 @@
│ │ │ @ StatementsNode (location: (1,32)-(1,33))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,32)-(1,33))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ └── end_keyword_loc: (1,35)-(1,38) = "end"
│ └── end_keyword_loc: (1,35)-(1,38) = "end"
└── end_keyword_loc: (1,35)-(1,38) = "end"
diff --git a/test/prism/snapshots/whitequark/int.txt b/test/prism/snapshots/whitequark/int.txt
index 8690dee172..6fee32f117 100644
--- a/test/prism/snapshots/whitequark/int.txt
+++ b/test/prism/snapshots/whitequark/int.txt
@@ -4,8 +4,11 @@
@ StatementsNode (location: (1,0)-(5,2))
└── body: (length: 3)
├── @ IntegerNode (location: (1,0)-(1,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 42
├── @ IntegerNode (location: (3,0)-(3,3))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: -42
└── @ IntegerNode (location: (5,0)-(5,2))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 42
diff --git a/test/prism/snapshots/whitequark/ivasgn.txt b/test/prism/snapshots/whitequark/ivasgn.txt
index 3be3907f62..2b57f39554 100644
--- a/test/prism/snapshots/whitequark/ivasgn.txt
+++ b/test/prism/snapshots/whitequark/ivasgn.txt
@@ -8,5 +8,6 @@
├── name_loc: (1,0)-(1,4) = "@var"
├── value:
│ @ IntegerNode (location: (1,7)-(1,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 10
└── operator_loc: (1,5)-(1,6) = "="
diff --git a/test/prism/snapshots/whitequark/kwoptarg.txt b/test/prism/snapshots/whitequark/kwoptarg.txt
index cb4e6c39e7..9c2c4f9c4c 100644
--- a/test/prism/snapshots/whitequark/kwoptarg.txt
+++ b/test/prism/snapshots/whitequark/kwoptarg.txt
@@ -20,7 +20,8 @@
│ │ ├── name_loc: (1,6)-(1,10) = "foo:"
│ │ └── value:
│ │ @ IntegerNode (location: (1,11)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
diff --git a/test/prism/snapshots/whitequark/lvasgn.txt b/test/prism/snapshots/whitequark/lvasgn.txt
index dfa7183840..be35c00587 100644
--- a/test/prism/snapshots/whitequark/lvasgn.txt
+++ b/test/prism/snapshots/whitequark/lvasgn.txt
@@ -9,7 +9,8 @@
│ ├── name_loc: (1,0)-(1,3) = "var"
│ ├── value:
│ │ @ IntegerNode (location: (1,6)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ └── operator_loc: (1,4)-(1,5) = "="
└── @ LocalVariableReadNode (location: (1,10)-(1,13))
├── name: :var
diff --git a/test/prism/snapshots/whitequark/masgn.txt b/test/prism/snapshots/whitequark/masgn.txt
index d87d21a605..32e46bfdf7 100644
--- a/test/prism/snapshots/whitequark/masgn.txt
+++ b/test/prism/snapshots/whitequark/masgn.txt
@@ -21,9 +21,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (1,13)-(1,14))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (1,16)-(1,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
├── @ MultiWriteNode (location: (3,0)-(3,15))
@@ -44,9 +46,11 @@
│ ├── flags: ∅
│ ├── elements: (length: 2)
│ │ ├── @ IntegerNode (location: (3,11)-(3,12))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ IntegerNode (location: (3,14)-(3,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── opening_loc: ∅
│ └── closing_loc: ∅
└── @ MultiWriteNode (location: (5,0)-(5,20))
@@ -70,8 +74,10 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (5,16)-(5,17))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (5,19)-(5,20))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: ∅
└── closing_loc: ∅
diff --git a/test/prism/snapshots/whitequark/masgn_attr.txt b/test/prism/snapshots/whitequark/masgn_attr.txt
index c77b54e096..f4f4276597 100644
--- a/test/prism/snapshots/whitequark/masgn_attr.txt
+++ b/test/prism/snapshots/whitequark/masgn_attr.txt
@@ -43,9 +43,11 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ IntegerNode (location: (3,13)-(3,14))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (3,16)-(3,17))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── closing_loc: (3,17)-(3,18) = "]"
│ │ └── block: ∅
│ ├── rest: ∅
diff --git a/test/prism/snapshots/whitequark/multiple_pattern_matches.txt b/test/prism/snapshots/whitequark/multiple_pattern_matches.txt
index c3479d139a..afa3517e11 100644
--- a/test/prism/snapshots/whitequark/multiple_pattern_matches.txt
+++ b/test/prism/snapshots/whitequark/multiple_pattern_matches.txt
@@ -18,7 +18,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ └── operator_loc: ∅
│ │ └── closing_loc: (1,5)-(1,6) = "}"
│ ├── pattern:
@@ -59,7 +60,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (2,4)-(2,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ └── operator_loc: ∅
│ │ └── closing_loc: (2,5)-(2,6) = "}"
│ ├── pattern:
@@ -100,7 +102,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (4,4)-(4,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ └── operator_loc: ∅
│ │ └── closing_loc: (4,5)-(4,6) = "}"
│ ├── pattern:
@@ -141,7 +144,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (5,4)-(5,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 0
│ │ └── operator_loc: ∅
│ └── closing_loc: (5,5)-(5,6) = "}"
├── pattern:
diff --git a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt
index a57e9f5b28..d5e89d87f9 100644
--- a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt
+++ b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt
@@ -43,7 +43,8 @@
│ │ │ │ @ StatementsNode (location: (3,0)-(4,4))
│ │ │ │ └── body: (length: 2)
│ │ │ │ ├── @ IntegerNode (location: (3,0)-(3,1))
- │ │ │ │ │ └── flags: decimal
+ │ │ │ │ │ ├── flags: decimal
+ │ │ │ │ │ └── value: 0
│ │ │ │ └── @ TrueNode (location: (4,0)-(4,4))
│ │ │ ├── in_loc: (2,0)-(2,2) = "in"
│ │ │ └── then_loc: ∅
@@ -74,7 +75,8 @@
│ │ │ @ StatementsNode (location: (6,0)-(7,4))
│ │ │ └── body: (length: 2)
│ │ │ ├── @ IntegerNode (location: (6,0)-(6,1))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 0
│ │ │ └── @ TrueNode (location: (7,0)-(7,4))
│ │ ├── in_loc: (5,0)-(5,2) = "in"
│ │ └── then_loc: ∅
@@ -115,7 +117,8 @@
│ │ │ └── unescaped: "foo"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (11,0)-(11,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
@@ -153,7 +156,8 @@
│ │ └── unescaped: "foo"
│ ├── value:
│ │ @ IntegerNode (location: (14,0)-(14,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: ∅
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt b/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt
index 7b577e5bd9..2df571e8dc 100644
--- a/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt
+++ b/test/prism/snapshots/whitequark/non_lvar_injecting_match.txt
@@ -16,7 +16,8 @@
│ │ │ │ @ StatementsNode (location: (1,3)-(1,4))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (1,3)-(1,4))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── closing_loc: (1,4)-(1,5) = "}"
│ │ └── @ StringNode (location: (1,5)-(1,18))
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/whitequark/op_asgn.txt b/test/prism/snapshots/whitequark/op_asgn.txt
index 5d7fb0c7fa..8f24a35ad0 100644
--- a/test/prism/snapshots/whitequark/op_asgn.txt
+++ b/test/prism/snapshots/whitequark/op_asgn.txt
@@ -24,7 +24,8 @@
│ ├── operator_loc: (1,6)-(1,8) = "+="
│ └── value:
│ @ IntegerNode (location: (1,9)-(1,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── @ CallOperatorWriteNode (location: (3,0)-(3,10))
│ ├── flags: ∅
│ ├── receiver:
@@ -46,7 +47,8 @@
│ ├── operator_loc: (3,6)-(3,8) = "+="
│ └── value:
│ @ IntegerNode (location: (3,9)-(3,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ CallOperatorWriteNode (location: (5,0)-(5,11))
├── flags: ∅
├── receiver:
@@ -68,4 +70,5 @@
├── operator_loc: (5,7)-(5,9) = "+="
└── value:
@ IntegerNode (location: (5,10)-(5,11))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/whitequark/op_asgn_index.txt b/test/prism/snapshots/whitequark/op_asgn_index.txt
index 8bce2fce3c..fe077fae13 100644
--- a/test/prism/snapshots/whitequark/op_asgn_index.txt
+++ b/test/prism/snapshots/whitequark/op_asgn_index.txt
@@ -23,13 +23,16 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (1,8)-(1,9) = "]"
├── block: ∅
├── operator: :+
├── operator_loc: (1,10)-(1,12) = "+="
└── value:
@ IntegerNode (location: (1,13)-(1,14))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 2
diff --git a/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt b/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt
index 389f036005..87082aad94 100644
--- a/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt
+++ b/test/prism/snapshots/whitequark/op_asgn_index_cmd.txt
@@ -23,9 +23,11 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (1,8)-(1,9) = "]"
├── block: ∅
├── operator: :+
diff --git a/test/prism/snapshots/whitequark/optarg.txt b/test/prism/snapshots/whitequark/optarg.txt
index 15ac9e00ef..695ed827ad 100644
--- a/test/prism/snapshots/whitequark/optarg.txt
+++ b/test/prism/snapshots/whitequark/optarg.txt
@@ -18,7 +18,8 @@
│ │ │ ├── operator_loc: (1,10)-(1,11) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
@@ -47,7 +48,8 @@
│ │ │ ├── operator_loc: (3,9)-(3,10) = "="
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (3,10)-(3,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── @ OptionalParameterNode (location: (3,13)-(3,18))
│ │ ├── flags: ∅
│ │ ├── name: :bar
@@ -55,7 +57,8 @@
│ │ ├── operator_loc: (3,16)-(3,17) = "="
│ │ └── value:
│ │ @ IntegerNode (location: (3,17)-(3,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 0)
diff --git a/test/prism/snapshots/whitequark/or_asgn.txt b/test/prism/snapshots/whitequark/or_asgn.txt
index ccc14c45b4..c0ded24b93 100644
--- a/test/prism/snapshots/whitequark/or_asgn.txt
+++ b/test/prism/snapshots/whitequark/or_asgn.txt
@@ -23,7 +23,8 @@
│ ├── operator_loc: (1,6)-(1,9) = "||="
│ └── value:
│ @ IntegerNode (location: (1,10)-(1,11))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ IndexOrWriteNode (location: (3,0)-(3,15))
├── flags: ∅
├── receiver:
@@ -44,12 +45,15 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (3,4)-(3,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ └── @ IntegerNode (location: (3,7)-(3,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (3,8)-(3,9) = "]"
├── block: ∅
├── operator_loc: (3,10)-(3,13) = "||="
└── value:
@ IntegerNode (location: (3,14)-(3,15))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 2
diff --git a/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt b/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt
index b3a6af3ec8..48f377cc66 100644
--- a/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt
+++ b/test/prism/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt
@@ -23,7 +23,8 @@
│ │ │ │ ├── flags: ∅
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (1,35)-(1,36))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── closing_loc: ∅
│ │ │ └── block: ∅
│ │ └── @ SourceEncodingNode (location: (1,38)-(1,50))
diff --git a/test/prism/snapshots/whitequark/pattern_matching_blank_else.txt b/test/prism/snapshots/whitequark/pattern_matching_blank_else.txt
index 308abd2f02..6015c000a9 100644
--- a/test/prism/snapshots/whitequark/pattern_matching_blank_else.txt
+++ b/test/prism/snapshots/whitequark/pattern_matching_blank_else.txt
@@ -6,17 +6,20 @@
└── @ CaseMatchNode (location: (1,0)-(1,26))
├── predicate:
│ @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── conditions: (length: 1)
│ └── @ InNode (location: (1,8)-(1,15))
│ ├── pattern:
│ │ @ IntegerNode (location: (1,11)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── statements:
│ │ @ StatementsNode (location: (1,14)-(1,15))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,14)-(1,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── in_loc: (1,8)-(1,10) = "in"
│ └── then_loc: ∅
├── consequent:
diff --git a/test/prism/snapshots/whitequark/pattern_matching_else.txt b/test/prism/snapshots/whitequark/pattern_matching_else.txt
index 944cc7b429..7f83aafe99 100644
--- a/test/prism/snapshots/whitequark/pattern_matching_else.txt
+++ b/test/prism/snapshots/whitequark/pattern_matching_else.txt
@@ -6,17 +6,20 @@
└── @ CaseMatchNode (location: (1,0)-(1,29))
├── predicate:
│ @ IntegerNode (location: (1,5)-(1,6))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── conditions: (length: 1)
│ └── @ InNode (location: (1,8)-(1,15))
│ ├── pattern:
│ │ @ IntegerNode (location: (1,11)-(1,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ ├── statements:
│ │ @ StatementsNode (location: (1,14)-(1,15))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,14)-(1,15))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 3
│ ├── in_loc: (1,8)-(1,10) = "in"
│ └── then_loc: ∅
├── consequent:
@@ -26,7 +29,8 @@
│ │ @ StatementsNode (location: (1,23)-(1,24))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,23)-(1,24))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 4
│ └── end_keyword_loc: (1,26)-(1,29) = "end"
├── case_keyword_loc: (1,0)-(1,4) = "case"
└── end_keyword_loc: (1,26)-(1,29) = "end"
diff --git a/test/prism/snapshots/whitequark/pattern_matching_single_line.txt b/test/prism/snapshots/whitequark/pattern_matching_single_line.txt
index 4cda50acb1..2396172dce 100644
--- a/test/prism/snapshots/whitequark/pattern_matching_single_line.txt
+++ b/test/prism/snapshots/whitequark/pattern_matching_single_line.txt
@@ -6,7 +6,8 @@
├── @ MatchRequiredNode (location: (1,0)-(1,8))
│ ├── value:
│ │ @ IntegerNode (location: (1,0)-(1,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── pattern:
│ │ @ ArrayPatternNode (location: (1,5)-(1,8))
│ │ ├── constant: ∅
@@ -25,7 +26,8 @@
├── @ MatchPredicateNode (location: (3,0)-(3,8))
│ ├── value:
│ │ @ IntegerNode (location: (3,0)-(3,1))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── pattern:
│ │ @ ArrayPatternNode (location: (3,5)-(3,8))
│ │ ├── constant: ∅
diff --git a/test/prism/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt b/test/prism/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt
index 4cfb5718ec..757a7780c2 100644
--- a/test/prism/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt
+++ b/test/prism/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt
@@ -9,9 +9,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (1,1)-(1,2))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (1,4)-(1,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (1,0)-(1,1) = "["
│ │ └── closing_loc: (1,5)-(1,6) = "]"
│ ├── pattern:
@@ -38,9 +40,11 @@
│ │ ├── flags: ∅
│ │ ├── elements: (length: 2)
│ │ │ ├── @ IntegerNode (location: (3,1)-(3,2))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ IntegerNode (location: (3,4)-(3,5))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── opening_loc: (3,0)-(3,1) = "["
│ │ └── closing_loc: (3,5)-(3,6) = "]"
│ ├── pattern:
@@ -76,7 +80,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (5,4)-(5,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ └── closing_loc: (5,5)-(5,6) = "}"
│ ├── pattern:
@@ -120,7 +125,8 @@
│ │ │ │ └── unescaped: "a"
│ │ │ ├── value:
│ │ │ │ @ IntegerNode (location: (7,4)-(7,5))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── operator_loc: ∅
│ │ └── closing_loc: (7,5)-(7,6) = "}"
│ ├── pattern:
diff --git a/test/prism/snapshots/whitequark/postexe.txt b/test/prism/snapshots/whitequark/postexe.txt
index 1c833ffaa4..6f27327063 100644
--- a/test/prism/snapshots/whitequark/postexe.txt
+++ b/test/prism/snapshots/whitequark/postexe.txt
@@ -8,7 +8,8 @@
│ @ StatementsNode (location: (1,6)-(1,7))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── keyword_loc: (1,0)-(1,3) = "END"
├── opening_loc: (1,4)-(1,5) = "{"
└── closing_loc: (1,8)-(1,9) = "}"
diff --git a/test/prism/snapshots/whitequark/preexe.txt b/test/prism/snapshots/whitequark/preexe.txt
index 955ba6d444..5e4b88d096 100644
--- a/test/prism/snapshots/whitequark/preexe.txt
+++ b/test/prism/snapshots/whitequark/preexe.txt
@@ -8,7 +8,8 @@
│ @ StatementsNode (location: (1,8)-(1,9))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,8)-(1,9))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── keyword_loc: (1,0)-(1,5) = "BEGIN"
├── opening_loc: (1,6)-(1,7) = "{"
└── closing_loc: (1,10)-(1,11) = "}"
diff --git a/test/prism/snapshots/whitequark/range_exclusive.txt b/test/prism/snapshots/whitequark/range_exclusive.txt
index 4964755075..f74077ce67 100644
--- a/test/prism/snapshots/whitequark/range_exclusive.txt
+++ b/test/prism/snapshots/whitequark/range_exclusive.txt
@@ -7,8 +7,10 @@
├── flags: exclude_end
├── left:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── right:
│ @ IntegerNode (location: (1,4)-(1,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,1)-(1,4) = "..."
diff --git a/test/prism/snapshots/whitequark/range_inclusive.txt b/test/prism/snapshots/whitequark/range_inclusive.txt
index 04de2d8dec..1836312033 100644
--- a/test/prism/snapshots/whitequark/range_inclusive.txt
+++ b/test/prism/snapshots/whitequark/range_inclusive.txt
@@ -7,8 +7,10 @@
├── flags: ∅
├── left:
│ @ IntegerNode (location: (1,0)-(1,1))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── right:
│ @ IntegerNode (location: (1,3)-(1,4))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
└── operator_loc: (1,1)-(1,3) = ".."
diff --git a/test/prism/snapshots/whitequark/rational.txt b/test/prism/snapshots/whitequark/rational.txt
index 260a5d2efc..8b2cc17efd 100644
--- a/test/prism/snapshots/whitequark/rational.txt
+++ b/test/prism/snapshots/whitequark/rational.txt
@@ -9,4 +9,5 @@
└── @ RationalNode (location: (3,0)-(3,3))
└── numeric:
@ IntegerNode (location: (3,0)-(3,2))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 42
diff --git a/test/prism/snapshots/whitequark/rescue_mod_masgn.txt b/test/prism/snapshots/whitequark/rescue_mod_masgn.txt
index 7fe30d4708..dbe289702f 100644
--- a/test/prism/snapshots/whitequark/rescue_mod_masgn.txt
+++ b/test/prism/snapshots/whitequark/rescue_mod_masgn.txt
@@ -35,8 +35,10 @@
├── flags: ∅
├── elements: (length: 2)
│ ├── @ IntegerNode (location: (1,24)-(1,25))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,27)-(1,28))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── opening_loc: (1,23)-(1,24) = "["
└── closing_loc: (1,28)-(1,29) = "]"
diff --git a/test/prism/snapshots/whitequark/ruby_bug_10279.txt b/test/prism/snapshots/whitequark/ruby_bug_10279.txt
index d1eaa26a11..66684350a4 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_10279.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_10279.txt
@@ -24,7 +24,8 @@
│ │ │ @ StatementsNode (location: (1,17)-(1,19))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,17)-(1,19))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ ├── consequent: ∅
│ │ └── end_keyword_loc: (1,20)-(1,23) = "end"
│ └── operator_loc: ∅
diff --git a/test/prism/snapshots/whitequark/ruby_bug_10653.txt b/test/prism/snapshots/whitequark/ruby_bug_10653.txt
index 2e25978544..400a8c2861 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_10653.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_10653.txt
@@ -111,7 +111,8 @@
│ ├── flags: ∅
│ ├── receiver:
│ │ @ IntegerNode (location: (5,7)-(5,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── call_operator_loc: (5,8)-(5,9) = "."
│ ├── name: :tap
│ ├── message_loc: (5,9)-(5,12) = "tap"
@@ -166,6 +167,7 @@
│ │ @ StatementsNode (location: (5,30)-(5,31))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (5,30)-(5,31))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ └── end_keyword_loc: ∅
└── end_keyword_loc: ∅
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11380.txt b/test/prism/snapshots/whitequark/ruby_bug_11380.txt
index 9fa00299c6..b7a7ef9a98 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11380.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11380.txt
@@ -42,7 +42,8 @@
│ │ └── unescaped: "a"
│ ├── value:
│ │ @ IntegerNode (location: (1,20)-(1,21))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: ∅
├── closing_loc: ∅
└── block:
diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
index a9e36c76a5..320958c9d4 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt
@@ -51,7 +51,8 @@
│ │ │ ├── closing_loc: (1,7)-(1,8) = ")"
│ │ │ └── block: ∅
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block:
│ @ BlockNode (location: (1,12)-(1,18))
@@ -341,7 +342,8 @@
│ │ │ ├── closing_loc: (11,8)-(11,9) = ")"
│ │ │ └── block: ∅
│ │ └── @ IntegerNode (location: (11,11)-(11,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block:
│ @ BlockNode (location: (11,13)-(11,19))
@@ -636,7 +638,8 @@
│ │ │ ├── opening_loc: (21,3)-(21,4) = "{"
│ │ │ └── closing_loc: (21,7)-(21,8) = "}"
│ │ └── @ IntegerNode (location: (21,10)-(21,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block:
│ @ BlockNode (location: (21,12)-(21,18))
@@ -951,7 +954,8 @@
│ │ │ ├── opening_loc: (31,3)-(31,4) = "{"
│ │ │ └── closing_loc: (31,8)-(31,9) = "}"
│ │ └── @ IntegerNode (location: (31,11)-(31,12))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block:
│ @ BlockNode (location: (31,13)-(31,19))
diff --git a/test/prism/snapshots/whitequark/ruby_bug_12073.txt b/test/prism/snapshots/whitequark/ruby_bug_12073.txt
index 159d272f25..9db30f6fec 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_12073.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_12073.txt
@@ -9,7 +9,8 @@
│ ├── name_loc: (1,0)-(1,1) = "a"
│ ├── value:
│ │ @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,2)-(1,3) = "="
├── @ CallNode (location: (1,7)-(1,13))
│ ├── flags: ignore_visibility
@@ -35,7 +36,8 @@
│ │ │ └── unescaped: "b"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (1,12)-(1,13))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
diff --git a/test/prism/snapshots/whitequark/ruby_bug_12402.txt b/test/prism/snapshots/whitequark/ruby_bug_12402.txt
index 34c67cb987..df5aea00c3 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_12402.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_12402.txt
@@ -482,7 +482,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (25,4)-(25,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 0
│ ├── closing_loc: (25,5)-(25,6) = "]"
│ ├── block: ∅
│ ├── operator: :+
@@ -529,7 +530,8 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (27,4)-(27,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 0
├── closing_loc: (27,5)-(27,6) = "]"
├── block: ∅
├── operator: :+
diff --git a/test/prism/snapshots/whitequark/ruby_bug_9669.txt b/test/prism/snapshots/whitequark/ruby_bug_9669.txt
index 6605206180..a73000bed0 100644
--- a/test/prism/snapshots/whitequark/ruby_bug_9669.txt
+++ b/test/prism/snapshots/whitequark/ruby_bug_9669.txt
@@ -51,7 +51,8 @@
│ │ │ └── unescaped: "a"
│ │ ├── value:
│ │ │ @ IntegerNode (location: (7,0)-(7,1))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── operator_loc: ∅
│ └── closing_loc: (8,0)-(8,1) = "}"
└── operator_loc: (5,2)-(5,3) = "="
diff --git a/test/prism/snapshots/whitequark/send_attr_asgn.txt b/test/prism/snapshots/whitequark/send_attr_asgn.txt
index 3b38f59295..392ae5587e 100644
--- a/test/prism/snapshots/whitequark/send_attr_asgn.txt
+++ b/test/prism/snapshots/whitequark/send_attr_asgn.txt
@@ -25,7 +25,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,8)-(1,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (3,0)-(3,9))
@@ -50,7 +51,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (3,8)-(3,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ ConstantPathWriteNode (location: (5,0)-(5,10))
@@ -74,7 +76,8 @@
│ ├── operator_loc: (5,7)-(5,8) = "="
│ └── value:
│ @ IntegerNode (location: (5,9)-(5,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
└── @ CallNode (location: (7,0)-(7,10))
├── flags: attribute_write
├── receiver:
@@ -97,6 +100,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (7,9)-(7,10))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt b/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt
index 191fc53785..3cec95ae7c 100644
--- a/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt
+++ b/test/prism/snapshots/whitequark/send_attr_asgn_conditional.txt
@@ -25,6 +25,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: ∅
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_binary_op.txt b/test/prism/snapshots/whitequark/send_binary_op.txt
index 1c91a0fdd0..540a7681dc 100644
--- a/test/prism/snapshots/whitequark/send_binary_op.txt
+++ b/test/prism/snapshots/whitequark/send_binary_op.txt
@@ -25,7 +25,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (3,0)-(3,8))
@@ -50,7 +51,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (3,7)-(3,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (5,0)-(5,7))
@@ -75,7 +77,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,6)-(5,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (7,0)-(7,7))
@@ -100,7 +103,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (7,6)-(7,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (9,0)-(9,7))
@@ -125,7 +129,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (9,6)-(9,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (11,0)-(11,8))
@@ -150,7 +155,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (11,7)-(11,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (13,0)-(13,7))
@@ -175,7 +181,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (13,6)-(13,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (15,0)-(15,7))
@@ -200,7 +207,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (15,6)-(15,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (17,0)-(17,7))
@@ -225,7 +233,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (17,6)-(17,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (19,0)-(19,7))
@@ -250,7 +259,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (19,6)-(19,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (21,0)-(21,8))
@@ -275,7 +285,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (21,7)-(21,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (23,0)-(23,8))
@@ -300,7 +311,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (23,7)-(23,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (25,0)-(25,9))
@@ -325,7 +337,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (25,8)-(25,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (27,0)-(27,8))
@@ -350,7 +363,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (27,7)-(27,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (29,0)-(29,9))
@@ -375,7 +389,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (29,8)-(29,9))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (31,0)-(31,8))
@@ -400,7 +415,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (31,7)-(31,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (33,0)-(33,7))
@@ -425,7 +441,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (33,6)-(33,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (35,0)-(35,8))
@@ -450,7 +467,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (35,7)-(35,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (37,0)-(37,8))
@@ -475,7 +493,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (37,7)-(37,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (39,0)-(39,7))
@@ -500,7 +519,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (39,6)-(39,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block: ∅
└── @ CallNode (location: (41,0)-(41,7))
@@ -525,6 +545,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (41,6)-(41,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── 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 a6d69767d1..4013888882 100644
--- a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
+++ b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt
@@ -18,7 +18,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block:
│ │ @ BlockNode (location: (1,7)-(1,13))
@@ -62,7 +63,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,5)-(3,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block:
│ │ @ BlockNode (location: (3,7)-(3,13))
@@ -112,7 +114,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (5,5)-(5,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block:
│ │ @ BlockNode (location: (5,7)-(5,13))
@@ -149,7 +152,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (7,5)-(7,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block:
│ │ @ BlockNode (location: (7,7)-(7,13))
@@ -193,7 +197,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (9,5)-(9,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block:
│ │ @ BlockNode (location: (9,7)-(9,13))
@@ -243,7 +248,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (11,5)-(11,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── closing_loc: ∅
│ │ └── block:
│ │ @ BlockNode (location: (11,7)-(11,13))
@@ -287,7 +293,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (13,5)-(13,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: ∅
│ └── block:
│ @ BlockNode (location: (13,7)-(13,13))
diff --git a/test/prism/snapshots/whitequark/send_call.txt b/test/prism/snapshots/whitequark/send_call.txt
index bfd554e495..48063e0121 100644
--- a/test/prism/snapshots/whitequark/send_call.txt
+++ b/test/prism/snapshots/whitequark/send_call.txt
@@ -25,7 +25,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── closing_loc: (1,6)-(1,7) = ")"
│ └── block: ∅
└── @ CallNode (location: (3,0)-(3,8))
@@ -50,6 +51,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (3,6)-(3,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (3,7)-(3,8) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_index.txt b/test/prism/snapshots/whitequark/send_index.txt
index 5e00593222..6c9e08f2ea 100644
--- a/test/prism/snapshots/whitequark/send_index.txt
+++ b/test/prism/snapshots/whitequark/send_index.txt
@@ -25,8 +25,10 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: (1,8)-(1,9) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_index_asgn.txt b/test/prism/snapshots/whitequark/send_index_asgn.txt
index f34d351472..9d2e6efcb6 100644
--- a/test/prism/snapshots/whitequark/send_index_asgn.txt
+++ b/test/prism/snapshots/whitequark/send_index_asgn.txt
@@ -25,10 +25,13 @@
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (1,12)-(1,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── closing_loc: (1,8)-(1,9) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt b/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt
index f34d351472..9d2e6efcb6 100644
--- a/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt
+++ b/test/prism/snapshots/whitequark/send_index_asgn_legacy.txt
@@ -25,10 +25,13 @@
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (1,7)-(1,8))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (1,12)-(1,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
├── closing_loc: (1,8)-(1,9) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_index_legacy.txt b/test/prism/snapshots/whitequark/send_index_legacy.txt
index 5e00593222..6c9e08f2ea 100644
--- a/test/prism/snapshots/whitequark/send_index_legacy.txt
+++ b/test/prism/snapshots/whitequark/send_index_legacy.txt
@@ -25,8 +25,10 @@
│ ├── flags: ∅
│ └── arguments: (length: 2)
│ ├── @ IntegerNode (location: (1,4)-(1,5))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── @ IntegerNode (location: (1,7)-(1,8))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 2
├── closing_loc: (1,8)-(1,9) = "]"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
index eff1cab317..747656af6b 100644
--- a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
+++ b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt
@@ -23,7 +23,8 @@
│ │ │ │ ├── name_loc: (1,3)-(1,5) = "a:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (1,6)-(1,7))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block: ∅
│ │ ├── locals: (length: 0)
diff --git a/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt b/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt
index 102a5af5b5..05966fc5a3 100644
--- a/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt
+++ b/test/prism/snapshots/whitequark/send_op_asgn_conditional.txt
@@ -23,4 +23,5 @@
├── operator_loc: (1,5)-(1,8) = "&&="
└── value:
@ IntegerNode (location: (1,9)-(1,10))
- └── flags: decimal
+ ├── flags: decimal
+ └── value: 1
diff --git a/test/prism/snapshots/whitequark/send_self.txt b/test/prism/snapshots/whitequark/send_self.txt
index fe1e8d1157..41fd822110 100644
--- a/test/prism/snapshots/whitequark/send_self.txt
+++ b/test/prism/snapshots/whitequark/send_self.txt
@@ -35,6 +35,7 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (5,4)-(5,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (5,5)-(5,6) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/send_self_block.txt b/test/prism/snapshots/whitequark/send_self_block.txt
index d94463d8b0..c92935603b 100644
--- a/test/prism/snapshots/whitequark/send_self_block.txt
+++ b/test/prism/snapshots/whitequark/send_self_block.txt
@@ -63,7 +63,8 @@
│ ├── flags: ∅
│ └── arguments: (length: 1)
│ └── @ IntegerNode (location: (7,4)-(7,5))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── closing_loc: (7,5)-(7,6) = ")"
└── block:
@ BlockNode (location: (7,7)-(7,10))
diff --git a/test/prism/snapshots/whitequark/space_args_arg.txt b/test/prism/snapshots/whitequark/space_args_arg.txt
index a87138db62..55750d2b61 100644
--- a/test/prism/snapshots/whitequark/space_args_arg.txt
+++ b/test/prism/snapshots/whitequark/space_args_arg.txt
@@ -19,7 +19,8 @@
│ │ @ StatementsNode (location: (1,5)-(1,6))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (1,4)-(1,5) = "("
│ └── closing_loc: (1,6)-(1,7) = ")"
├── closing_loc: ∅
diff --git a/test/prism/snapshots/whitequark/space_args_arg_block.txt b/test/prism/snapshots/whitequark/space_args_arg_block.txt
index de4a6022c0..a6224bcca1 100644
--- a/test/prism/snapshots/whitequark/space_args_arg_block.txt
+++ b/test/prism/snapshots/whitequark/space_args_arg_block.txt
@@ -29,7 +29,8 @@
│ │ │ @ StatementsNode (location: (1,9)-(1,10))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,9)-(1,10))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (1,8)-(1,9) = "("
│ │ └── closing_loc: (1,10)-(1,11) = ")"
│ ├── closing_loc: ∅
@@ -66,7 +67,8 @@
│ │ │ @ StatementsNode (location: (3,10)-(3,11))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,10)-(3,11))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (3,9)-(3,10) = "("
│ │ └── closing_loc: (3,11)-(3,12) = ")"
│ ├── closing_loc: ∅
@@ -93,7 +95,8 @@
│ │ @ StatementsNode (location: (5,5)-(5,6))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (5,5)-(5,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (5,4)-(5,5) = "("
│ └── closing_loc: (5,6)-(5,7) = ")"
├── closing_loc: ∅
diff --git a/test/prism/snapshots/whitequark/space_args_arg_call.txt b/test/prism/snapshots/whitequark/space_args_arg_call.txt
index b47b14afab..767b099a8b 100644
--- a/test/prism/snapshots/whitequark/space_args_arg_call.txt
+++ b/test/prism/snapshots/whitequark/space_args_arg_call.txt
@@ -22,7 +22,8 @@
│ │ │ @ StatementsNode (location: (1,5)-(1,6))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ ├── opening_loc: (1,4)-(1,5) = "("
│ │ └── closing_loc: (1,6)-(1,7) = ")"
│ ├── call_operator_loc: (1,7)-(1,8) = "."
diff --git a/test/prism/snapshots/whitequark/space_args_arg_newline.txt b/test/prism/snapshots/whitequark/space_args_arg_newline.txt
index eab0243274..7727a5ddd9 100644
--- a/test/prism/snapshots/whitequark/space_args_arg_newline.txt
+++ b/test/prism/snapshots/whitequark/space_args_arg_newline.txt
@@ -19,7 +19,8 @@
│ │ @ StatementsNode (location: (1,5)-(1,6))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,5)-(1,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── opening_loc: (1,4)-(1,5) = "("
│ └── closing_loc: (2,0)-(2,1) = ")"
├── closing_loc: ∅
diff --git a/test/prism/snapshots/whitequark/ternary.txt b/test/prism/snapshots/whitequark/ternary.txt
index 09312e3179..fa637ffb4e 100644
--- a/test/prism/snapshots/whitequark/ternary.txt
+++ b/test/prism/snapshots/whitequark/ternary.txt
@@ -21,7 +21,8 @@
│ @ StatementsNode (location: (1,6)-(1,7))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── consequent:
│ @ ElseNode (location: (1,8)-(1,11))
│ ├── else_keyword_loc: (1,8)-(1,9) = ":"
@@ -29,6 +30,7 @@
│ │ @ StatementsNode (location: (1,10)-(1,11))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (1,10)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── end_keyword_loc: ∅
└── end_keyword_loc: ∅
diff --git a/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt b/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt
index b66406af52..833afcff42 100644
--- a/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt
+++ b/test/prism/snapshots/whitequark/ternary_ambiguous_symbol.txt
@@ -9,7 +9,8 @@
│ ├── name_loc: (1,0)-(1,1) = "t"
│ ├── value:
│ │ @ IntegerNode (location: (1,2)-(1,3))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator_loc: (1,1)-(1,2) = "="
└── @ IfNode (location: (1,4)-(1,13))
├── if_keyword_loc: ∅
diff --git a/test/prism/snapshots/whitequark/trailing_forward_arg.txt b/test/prism/snapshots/whitequark/trailing_forward_arg.txt
index b58eb51149..e12dad132b 100644
--- a/test/prism/snapshots/whitequark/trailing_forward_arg.txt
+++ b/test/prism/snapshots/whitequark/trailing_forward_arg.txt
@@ -41,7 +41,8 @@
│ │ │ ├── name: :a
│ │ │ └── depth: 0
│ │ ├── @ IntegerNode (location: (1,27)-(1,29))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 42
│ │ └── @ ForwardingArgumentsNode (location: (1,31)-(1,34))
│ ├── closing_loc: (1,34)-(1,35) = ")"
│ └── block: ∅
diff --git a/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt b/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt
index 4bc54ba22c..75be379e2e 100644
--- a/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt
+++ b/test/prism/snapshots/whitequark/unary_num_pow_precedence.txt
@@ -16,7 +16,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (1,8)-(1,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ CallNode (location: (3,0)-(3,8))
@@ -26,7 +27,8 @@
│ │ ├── flags: ∅
│ │ ├── receiver:
│ │ │ @ IntegerNode (location: (3,1)-(3,2))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 2
│ │ ├── call_operator_loc: ∅
│ │ ├── name: :**
│ │ ├── message_loc: (3,3)-(3,5) = "**"
@@ -36,7 +38,8 @@
│ │ │ ├── flags: ∅
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ IntegerNode (location: (3,6)-(3,8))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 10
│ │ ├── closing_loc: ∅
│ │ └── block: ∅
│ ├── call_operator_loc: ∅
@@ -62,7 +65,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,8)-(5,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ ├── closing_loc: ∅
│ └── block: ∅
├── call_operator_loc: ∅
diff --git a/test/prism/snapshots/whitequark/undef.txt b/test/prism/snapshots/whitequark/undef.txt
index 9889a5a525..5e6b5c7b76 100644
--- a/test/prism/snapshots/whitequark/undef.txt
+++ b/test/prism/snapshots/whitequark/undef.txt
@@ -32,7 +32,8 @@
│ │ │ @ StatementsNode (location: (1,24)-(1,25))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (1,24)-(1,25))
- │ │ │ └── flags: decimal
+ │ │ │ ├── flags: decimal
+ │ │ │ └── value: 1
│ │ └── closing_loc: (1,25)-(1,26) = "}"
│ └── closing_loc: (1,26)-(1,27) = "\""
└── keyword_loc: (1,0)-(1,5) = "undef"
diff --git a/test/prism/snapshots/whitequark/var_and_asgn.txt b/test/prism/snapshots/whitequark/var_and_asgn.txt
index fc746a9350..a3c90f804c 100644
--- a/test/prism/snapshots/whitequark/var_and_asgn.txt
+++ b/test/prism/snapshots/whitequark/var_and_asgn.txt
@@ -8,6 +8,7 @@
├── operator_loc: (1,2)-(1,5) = "&&="
├── value:
│ @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── name: :a
└── depth: 0
diff --git a/test/prism/snapshots/whitequark/var_op_asgn.txt b/test/prism/snapshots/whitequark/var_op_asgn.txt
index 7160141b07..f423a62dee 100644
--- a/test/prism/snapshots/whitequark/var_op_asgn.txt
+++ b/test/prism/snapshots/whitequark/var_op_asgn.txt
@@ -9,7 +9,8 @@
│ ├── operator_loc: (1,6)-(1,8) = "|="
│ ├── value:
│ │ @ IntegerNode (location: (1,9)-(1,11))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ └── operator: :|
├── @ InstanceVariableOperatorWriteNode (location: (3,0)-(3,7))
│ ├── name: :@a
@@ -17,14 +18,16 @@
│ ├── operator_loc: (3,3)-(3,5) = "|="
│ ├── value:
│ │ @ IntegerNode (location: (3,6)-(3,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── operator: :|
├── @ LocalVariableOperatorWriteNode (location: (5,0)-(5,6))
│ ├── name_loc: (5,0)-(5,1) = "a"
│ ├── operator_loc: (5,2)-(5,4) = "+="
│ ├── value:
│ │ @ IntegerNode (location: (5,5)-(5,6))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── name: :a
│ ├── operator: :+
│ └── depth: 0
@@ -42,7 +45,8 @@
│ ├── operator_loc: (7,13)-(7,15) = "|="
│ ├── value:
│ │ @ IntegerNode (location: (7,16)-(7,18))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 10
│ └── operator: :|
├── locals: []
├── def_keyword_loc: (7,0)-(7,3) = "def"
diff --git a/test/prism/snapshots/whitequark/var_or_asgn.txt b/test/prism/snapshots/whitequark/var_or_asgn.txt
index d5064bc55b..a0531d2c30 100644
--- a/test/prism/snapshots/whitequark/var_or_asgn.txt
+++ b/test/prism/snapshots/whitequark/var_or_asgn.txt
@@ -8,6 +8,7 @@
├── operator_loc: (1,2)-(1,5) = "||="
├── value:
│ @ IntegerNode (location: (1,6)-(1,7))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 1
├── name: :a
└── depth: 0
diff --git a/test/prism/snapshots/whitequark/when_splat.txt b/test/prism/snapshots/whitequark/when_splat.txt
index c9b922da31..ea991e7041 100644
--- a/test/prism/snapshots/whitequark/when_splat.txt
+++ b/test/prism/snapshots/whitequark/when_splat.txt
@@ -20,7 +20,8 @@
│ │ ├── keyword_loc: (1,10)-(1,14) = "when"
│ │ ├── conditions: (length: 2)
│ │ │ ├── @ IntegerNode (location: (1,15)-(1,16))
- │ │ │ │ └── flags: decimal
+ │ │ │ │ ├── flags: decimal
+ │ │ │ │ └── value: 1
│ │ │ └── @ SplatNode (location: (1,18)-(1,22))
│ │ │ ├── operator_loc: (1,18)-(1,19) = "*"
│ │ │ └── expression:
diff --git a/test/prism/snapshots/yield.txt b/test/prism/snapshots/yield.txt
index 9c1fd59d34..896dbac13f 100644
--- a/test/prism/snapshots/yield.txt
+++ b/test/prism/snapshots/yield.txt
@@ -21,7 +21,8 @@
│ │ ├── flags: ∅
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (5,6)-(5,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ └── rparen_loc: (5,7)-(5,8) = ")"
└── @ YieldNode (location: (7,0)-(7,14))
├── keyword_loc: (7,0)-(7,5) = "yield"
@@ -31,9 +32,12 @@
│ ├── flags: ∅
│ └── arguments: (length: 3)
│ ├── @ IntegerNode (location: (7,6)-(7,7))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 1
│ ├── @ IntegerNode (location: (7,9)-(7,10))
- │ │ └── flags: decimal
+ │ │ ├── flags: decimal
+ │ │ └── value: 2
│ └── @ IntegerNode (location: (7,12)-(7,13))
- │ └── flags: decimal
+ │ ├── flags: decimal
+ │ └── value: 3
└── rparen_loc: (7,13)-(7,14) = ")"