Class: Parser::Ruby28

Inherits:
Base
  • Object
show all
Defined in:
lib/parser/ruby28.rb

Constant Summary collapse

Racc_arg =
[
racc_action_table,
racc_action_check,
racc_action_default,
racc_action_pointer,
racc_goto_table,
racc_goto_check,
racc_goto_default,
racc_goto_pointer,
racc_nt_base,
racc_reduce_table,
racc_token_table,
racc_shift_n,
racc_reduce_n,
racc_use_result_var ]
Racc_token_to_s_table =
[
"$end",
"error",
"kCLASS",
"kMODULE",
"kDEF",
"kUNDEF",
"kBEGIN",
"kRESCUE",
"kENSURE",
"kEND",
"kIF",
"kUNLESS",
"kTHEN",
"kELSIF",
"kELSE",
"kCASE",
"kWHEN",
"kWHILE",
"kUNTIL",
"kFOR",
"kBREAK",
"kNEXT",
"kREDO",
"kRETRY",
"kIN",
"kDO",
"kDO_COND",
"kDO_BLOCK",
"kDO_LAMBDA",
"kRETURN",
"kYIELD",
"kSUPER",
"kSELF",
"kNIL",
"kTRUE",
"kFALSE",
"kAND",
"kOR",
"kNOT",
"kIF_MOD",
"kUNLESS_MOD",
"kWHILE_MOD",
"kUNTIL_MOD",
"kRESCUE_MOD",
"kALIAS",
"kDEFINED",
"klBEGIN",
"klEND",
"k__LINE__",
"k__FILE__",
"k__ENCODING__",
"tIDENTIFIER",
"tFID",
"tGVAR",
"tIVAR",
"tCONSTANT",
"tLABEL",
"tCVAR",
"tNTH_REF",
"tBACK_REF",
"tSTRING_CONTENT",
"tINTEGER",
"tFLOAT",
"tUPLUS",
"tUMINUS",
"tUNARY_NUM",
"tPOW",
"tCMP",
"tEQ",
"tEQQ",
"tNEQ",
"tGEQ",
"tLEQ",
"tANDOP",
"tOROP",
"tMATCH",
"tNMATCH",
"tDOT",
"tDOT2",
"tDOT3",
"tAREF",
"tASET",
"tLSHFT",
"tRSHFT",
"tCOLON2",
"tCOLON3",
"tOP_ASGN",
"tASSOC",
"tLPAREN",
"tLPAREN2",
"tRPAREN",
"tLPAREN_ARG",
"tLBRACK",
"tLBRACK2",
"tRBRACK",
"tLBRACE",
"tLBRACE_ARG",
"tSTAR",
"tSTAR2",
"tAMPER",
"tAMPER2",
"tTILDE",
"tPERCENT",
"tDIVIDE",
"tDSTAR",
"tPLUS",
"tMINUS",
"tLT",
"tGT",
"tPIPE",
"tBANG",
"tCARET",
"tLCURLY",
"tRCURLY",
"tBACK_REF2",
"tSYMBEG",
"tSTRING_BEG",
"tXSTRING_BEG",
"tREGEXP_BEG",
"tREGEXP_OPT",
"tWORDS_BEG",
"tQWORDS_BEG",
"tSYMBOLS_BEG",
"tQSYMBOLS_BEG",
"tSTRING_DBEG",
"tSTRING_DVAR",
"tSTRING_END",
"tSTRING_DEND",
"tSTRING",
"tSYMBOL",
"tNL",
"tEH",
"tCOLON",
"tCOMMA",
"tSPACE",
"tSEMI",
"tLAMBDA",
"tLAMBEG",
"tCHARACTER",
"tRATIONAL",
"tIMAGINARY",
"tLABEL_END",
"tANDDOT",
"tBDOT2",
"tBDOT3",
"tEQL",
"tLOWEST",
"$start",
"program",
"top_compstmt",
"top_stmts",
"opt_terms",
"top_stmt",
"terms",
"stmt",
"begin_block",
"bodystmt",
"compstmt",
"opt_rescue",
"opt_else",
"opt_ensure",
"stmts",
"stmt_or_begin",
"fitem",
"undef_list",
"expr_value",
"command_asgn",
"mlhs",
"command_call",
"lhs",
"mrhs",
"mrhs_arg",
"rassign",
"expr",
"@1",
"arg_value",
"command_rhs",
"var_lhs",
"primary_value",
"opt_call_args",
"rbracket",
"call_op",
"backref",
"opt_nl",
"arg",
"p_expr",
"@2",
"expr_value_do",
"do",
"def_name",
"@3",
"fname",
"defn_head",
"defs_head",
"singleton",
"dot_or_colon",
"@4",
"command",
"block_command",
"block_call",
"operation2",
"command_args",
"cmd_brace_block",
"brace_body",
"fcall",
"@5",
"operation",
"k_return",
"call_args",
"mlhs_basic",
"mlhs_inner",
"rparen",
"mlhs_head",
"mlhs_item",
"mlhs_node",
"mlhs_post",
"user_variable",
"keyword_variable",
"cname",
"cpath",
"op",
"reswords",
"symbol",
"@6",
"arg_rhs",
"simple_numeric",
"rel_expr",
"f_paren_args",
"primary",
"relop",
"aref_args",
"none",
"args",
"trailer",
"assocs",
"paren_args",
"args_forward",
"opt_paren_args",
"opt_block_arg",
"block_arg",
"@7",
"literal",
"strings",
"xstring",
"regexp",
"words",
"qwords",
"symbols",
"qsymbols",
"var_ref",
"assoc_list",
"brace_block",
"method_call",
"lambda",
"then",
"if_tail",
"case_body",
"p_case_body",
"for_var",
"superclass",
"term",
"f_arglist",
"@8",
"@9",
"@10",
"@11",
"@12",
"@13",
"f_marg",
"f_norm_arg",
"f_margs",
"f_marg_list",
"f_rest_marg",
"f_any_kwrest",
"f_kwrest",
"f_no_kwarg",
"block_args_tail",
"f_block_kwarg",
"opt_f_block_arg",
"f_block_arg",
"opt_block_args_tail",
"excessed_comma",
"block_param",
"f_arg",
"f_block_optarg",
"f_rest_arg",
"opt_block_param",
"block_param_def",
"opt_bv_decl",
"bv_decls",
"bvar",
"f_bad_arg",
"f_larglist",
"lambda_body",
"@14",
"@15",
"f_args",
"do_block",
"@16",
"@17",
"do_body",
"@18",
"operation3",
"@19",
"@20",
"@21",
"@22",
"@23",
"cases",
"p_top_expr",
"p_cases",
"@24",
"@25",
"p_top_expr_body",
"p_args",
"p_find",
"p_args_tail",
"p_kwargs",
"p_as",
"p_variable",
"p_alt",
"p_expr_basic",
"p_lparen",
"p_lbracket",
"p_value",
"p_const",
"rbrace",
"@26",
"@27",
"p_args_head",
"p_arg",
"p_args_post",
"p_rest",
"p_kwarg",
"p_any_kwrest",
"p_kw",
"p_kw_label",
"string_contents",
"p_kwrest",
"kwrest_mark",
"p_kwnorest",
"p_primitive",
"p_var_ref",
"exc_list",
"exc_var",
"numeric",
"string",
"string1",
"xstring_contents",
"regexp_contents",
"word_list",
"word",
"string_content",
"symbol_list",
"qword_list",
"qsym_list",
"string_dvar",
"@28",
"ssym",
"dsym",
"@29",
"args_tail",
"@30",
"f_kwarg",
"opt_args_tail",
"f_optarg",
"f_arg_asgn",
"f_arg_item",
"f_label",
"f_kw",
"f_block_kw",
"f_opt",
"f_block_opt",
"restarg_mark",
"blkarg_mark",
"assoc" ]
Racc_debug_parser =
false

Instance Attribute Summary

Attributes inherited from Base

#builder, #context, #current_arg_stack, #diagnostics, #lexer, #max_numparam_stack, #pattern_hash_keys, #pattern_variables, #source_buffer, #static_env

Instance Method Summary collapse

Methods inherited from Base

default_parser, #initialize, parse, #parse, parse_file, parse_file_with_comments, parse_with_comments, #parse_with_comments, #reset, #tokenize

Constructor Details

This class inherits a constructor from Parser::Base

Instance Method Details

#_reduce_10(val, _values, result) ⇒ Object



3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
# File 'lib/parser/ruby28.rb', line 3966

def _reduce_10(val, _values, result)
                      rescue_bodies     = val[1]
                      else_t,   else_   = val[2]
                      ensure_t, ensure_ = val[3]

                      if rescue_bodies.empty? && !else_t.nil?
                        diagnostic :error, :useless_else, nil, else_t
                      end

                      result = @builder.begin_body(val[0],
                                  rescue_bodies,
                                  else_t,   else_,
                                  ensure_t, ensure_)
                    
    result
end

#_reduce_100(val, _values, result) ⇒ Object

reduce 99 omitted



4541
4542
4543
4544
4545
# File 'lib/parser/ruby28.rb', line 4541

def _reduce_100(val, _values, result)
                      result = @builder.begin(val[0], val[1], val[2])
                    
    result
end

#_reduce_101(val, _values, result) ⇒ Object



4547
4548
4549
4550
4551
# File 'lib/parser/ruby28.rb', line 4547

def _reduce_101(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_102(val, _values, result) ⇒ Object



4553
4554
4555
4556
4557
# File 'lib/parser/ruby28.rb', line 4553

def _reduce_102(val, _values, result)
                      result = val[0] << val[1]
                    
    result
end

#_reduce_103(val, _values, result) ⇒ Object



4559
4560
4561
4562
4563
# File 'lib/parser/ruby28.rb', line 4559

def _reduce_103(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_104(val, _values, result) ⇒ Object



4565
4566
4567
4568
4569
# File 'lib/parser/ruby28.rb', line 4565

def _reduce_104(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_105(val, _values, result) ⇒ Object



4571
4572
4573
4574
4575
# File 'lib/parser/ruby28.rb', line 4571

def _reduce_105(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_106(val, _values, result) ⇒ Object



4577
4578
4579
4580
4581
# File 'lib/parser/ruby28.rb', line 4577

def _reduce_106(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_107(val, _values, result) ⇒ Object



4583
4584
4585
4586
4587
# File 'lib/parser/ruby28.rb', line 4583

def _reduce_107(val, _values, result)
                      result = @builder.index_asgn(val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_108(val, _values, result) ⇒ Object



4589
4590
4591
4592
4593
4594
4595
4596
4597
# File 'lib/parser/ruby28.rb', line 4589

def _reduce_108(val, _values, result)
                      if (val[1][0] == :anddot)
                        diagnostic :error, :csend_in_lhs_of_masgn, nil, val[1]
                      end

                      result = @builder.attr_asgn(val[0], val[1], val[2])
                    
    result
end

#_reduce_109(val, _values, result) ⇒ Object



4599
4600
4601
4602
4603
# File 'lib/parser/ruby28.rb', line 4599

def _reduce_109(val, _values, result)
                      result = @builder.attr_asgn(val[0], val[1], val[2])
                    
    result
end

#_reduce_11(val, _values, result) ⇒ Object



3983
3984
3985
3986
3987
# File 'lib/parser/ruby28.rb', line 3983

def _reduce_11(val, _values, result)
                      result = @builder.compstmt(val[0])
                    
    result
end

#_reduce_110(val, _values, result) ⇒ Object



4605
4606
4607
4608
4609
4610
4611
4612
4613
# File 'lib/parser/ruby28.rb', line 4605

def _reduce_110(val, _values, result)
                      if (val[1][0] == :anddot)
                        diagnostic :error, :csend_in_lhs_of_masgn, nil, val[1]
                      end

                      result = @builder.attr_asgn(val[0], val[1], val[2])
                    
    result
end

#_reduce_111(val, _values, result) ⇒ Object



4615
4616
4617
4618
4619
4620
# File 'lib/parser/ruby28.rb', line 4615

def _reduce_111(val, _values, result)
                      result = @builder.assignable(
                                  @builder.const_fetch(val[0], val[1], val[2]))
                    
    result
end

#_reduce_112(val, _values, result) ⇒ Object



4622
4623
4624
4625
4626
4627
# File 'lib/parser/ruby28.rb', line 4622

def _reduce_112(val, _values, result)
                      result = @builder.assignable(
                                  @builder.const_global(val[0], val[1]))
                    
    result
end

#_reduce_113(val, _values, result) ⇒ Object



4629
4630
4631
4632
4633
# File 'lib/parser/ruby28.rb', line 4629

def _reduce_113(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_114(val, _values, result) ⇒ Object



4635
4636
4637
4638
4639
# File 'lib/parser/ruby28.rb', line 4635

def _reduce_114(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_115(val, _values, result) ⇒ Object



4641
4642
4643
4644
4645
# File 'lib/parser/ruby28.rb', line 4641

def _reduce_115(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_116(val, _values, result) ⇒ Object



4647
4648
4649
4650
4651
# File 'lib/parser/ruby28.rb', line 4647

def _reduce_116(val, _values, result)
                      result = @builder.index_asgn(val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_117(val, _values, result) ⇒ Object



4653
4654
4655
4656
4657
# File 'lib/parser/ruby28.rb', line 4653

def _reduce_117(val, _values, result)
                      result = @builder.attr_asgn(val[0], val[1], val[2])
                    
    result
end

#_reduce_118(val, _values, result) ⇒ Object



4659
4660
4661
4662
4663
# File 'lib/parser/ruby28.rb', line 4659

def _reduce_118(val, _values, result)
                      result = @builder.attr_asgn(val[0], val[1], val[2])
                    
    result
end

#_reduce_119(val, _values, result) ⇒ Object



4665
4666
4667
4668
4669
# File 'lib/parser/ruby28.rb', line 4665

def _reduce_119(val, _values, result)
                      result = @builder.attr_asgn(val[0], val[1], val[2])
                    
    result
end

#_reduce_12(val, _values, result) ⇒ Object



3989
3990
3991
3992
3993
# File 'lib/parser/ruby28.rb', line 3989

def _reduce_12(val, _values, result)
                      result = []
                    
    result
end

#_reduce_120(val, _values, result) ⇒ Object



4671
4672
4673
4674
4675
4676
# File 'lib/parser/ruby28.rb', line 4671

def _reduce_120(val, _values, result)
                      result = @builder.assignable(
                                  @builder.const_fetch(val[0], val[1], val[2]))
                    
    result
end

#_reduce_121(val, _values, result) ⇒ Object



4678
4679
4680
4681
4682
4683
# File 'lib/parser/ruby28.rb', line 4678

def _reduce_121(val, _values, result)
                      result = @builder.assignable(
                                  @builder.const_global(val[0], val[1]))
                    
    result
end

#_reduce_122(val, _values, result) ⇒ Object



4685
4686
4687
4688
4689
# File 'lib/parser/ruby28.rb', line 4685

def _reduce_122(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_123(val, _values, result) ⇒ Object



4691
4692
4693
4694
4695
# File 'lib/parser/ruby28.rb', line 4691

def _reduce_123(val, _values, result)
                      diagnostic :error, :module_name_const, nil, val[0]
                    
    result
end

#_reduce_125(val, _values, result) ⇒ Object

reduce 124 omitted



4699
4700
4701
4702
4703
# File 'lib/parser/ruby28.rb', line 4699

def _reduce_125(val, _values, result)
                      result = @builder.const_global(val[0], val[1])
                    
    result
end

#_reduce_126(val, _values, result) ⇒ Object



4705
4706
4707
4708
4709
# File 'lib/parser/ruby28.rb', line 4705

def _reduce_126(val, _values, result)
                      result = @builder.const(val[0])
                    
    result
end

#_reduce_127(val, _values, result) ⇒ Object



4711
4712
4713
4714
4715
# File 'lib/parser/ruby28.rb', line 4711

def _reduce_127(val, _values, result)
                      result = @builder.const_fetch(val[0], val[1], val[2])
                    
    result
end

#_reduce_13(val, _values, result) ⇒ Object



3995
3996
3997
3998
3999
# File 'lib/parser/ruby28.rb', line 3995

def _reduce_13(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_133(val, _values, result) ⇒ Object

reduce 132 omitted



4727
4728
4729
4730
4731
# File 'lib/parser/ruby28.rb', line 4727

def _reduce_133(val, _values, result)
                      result = @builder.symbol(val[0])
                    
    result
end

#_reduce_135(val, _values, result) ⇒ Object

reduce 134 omitted



4735
4736
4737
4738
4739
# File 'lib/parser/ruby28.rb', line 4735

def _reduce_135(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_136(val, _values, result) ⇒ Object



4741
4742
4743
4744
4745
# File 'lib/parser/ruby28.rb', line 4741

def _reduce_136(val, _values, result)
                      @lexer.state = :expr_fname
                    
    result
end

#_reduce_137(val, _values, result) ⇒ Object



4747
4748
4749
4750
4751
# File 'lib/parser/ruby28.rb', line 4747

def _reduce_137(val, _values, result)
                      result = val[0] << val[3]
                    
    result
end

#_reduce_14(val, _values, result) ⇒ Object



4001
4002
4003
4004
4005
# File 'lib/parser/ruby28.rb', line 4001

def _reduce_14(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_15(val, _values, result) ⇒ Object



4007
4008
4009
4010
4011
# File 'lib/parser/ruby28.rb', line 4007

def _reduce_15(val, _values, result)
                      result = [ val[1] ]
                    
    result
end

#_reduce_17(val, _values, result) ⇒ Object

reduce 16 omitted



4015
4016
4017
4018
4019
# File 'lib/parser/ruby28.rb', line 4015

def _reduce_17(val, _values, result)
                      diagnostic :error, :begin_in_method, nil, val[0]
                    
    result
end

#_reduce_18(val, _values, result) ⇒ Object



4021
4022
4023
4024
4025
# File 'lib/parser/ruby28.rb', line 4021

def _reduce_18(val, _values, result)
                      @lexer.state = :expr_fname
                    
    result
end

#_reduce_19(val, _values, result) ⇒ Object



4027
4028
4029
4030
4031
# File 'lib/parser/ruby28.rb', line 4027

def _reduce_19(val, _values, result)
                      result = @builder.alias(val[0], val[1], val[3])
                    
    result
end

#_reduce_2(val, _values, result) ⇒ Object

reduce 1 omitted



3922
3923
3924
3925
3926
# File 'lib/parser/ruby28.rb', line 3922

def _reduce_2(val, _values, result)
                      result = @builder.compstmt(val[0])
                    
    result
end

#_reduce_20(val, _values, result) ⇒ Object



4033
4034
4035
4036
4037
4038
4039
# File 'lib/parser/ruby28.rb', line 4033

def _reduce_20(val, _values, result)
                      result = @builder.alias(val[0],
                                  @builder.gvar(val[1]),
                                  @builder.gvar(val[2]))
                    
    result
end

#_reduce_209(val, _values, result) ⇒ Object

reduce 208 omitted



4895
4896
4897
4898
4899
# File 'lib/parser/ruby28.rb', line 4895

def _reduce_209(val, _values, result)
                      result = @builder.assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_21(val, _values, result) ⇒ Object



4041
4042
4043
4044
4045
4046
4047
# File 'lib/parser/ruby28.rb', line 4041

def _reduce_21(val, _values, result)
                      result = @builder.alias(val[0],
                                  @builder.gvar(val[1]),
                                  @builder.back_ref(val[2]))
                    
    result
end

#_reduce_210(val, _values, result) ⇒ Object



4901
4902
4903
4904
4905
# File 'lib/parser/ruby28.rb', line 4901

def _reduce_210(val, _values, result)
                      result = @builder.op_assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_211(val, _values, result) ⇒ Object



4907
4908
4909
4910
4911
4912
4913
4914
# File 'lib/parser/ruby28.rb', line 4907

def _reduce_211(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.index(
                                    val[0], val[1], val[2], val[3]),
                                  val[4], val[5])
                    
    result
end

#_reduce_212(val, _values, result) ⇒ Object



4916
4917
4918
4919
4920
4921
4922
4923
# File 'lib/parser/ruby28.rb', line 4916

def _reduce_212(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.call_method(
                                    val[0], val[1], val[2]),
                                  val[3], val[4])
                    
    result
end

#_reduce_213(val, _values, result) ⇒ Object



4925
4926
4927
4928
4929
4930
4931
4932
# File 'lib/parser/ruby28.rb', line 4925

def _reduce_213(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.call_method(
                                    val[0], val[1], val[2]),
                                  val[3], val[4])
                    
    result
end

#_reduce_214(val, _values, result) ⇒ Object



4934
4935
4936
4937
4938
4939
4940
4941
# File 'lib/parser/ruby28.rb', line 4934

def _reduce_214(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.call_method(
                                    val[0], val[1], val[2]),
                                  val[3], val[4])
                    
    result
end

#_reduce_215(val, _values, result) ⇒ Object



4943
4944
4945
4946
4947
4948
4949
# File 'lib/parser/ruby28.rb', line 4943

def _reduce_215(val, _values, result)
                      const  = @builder.const_op_assignable(
                                  @builder.const_fetch(val[0], val[1], val[2]))
                      result = @builder.op_assign(const, val[3], val[4])
                    
    result
end

#_reduce_216(val, _values, result) ⇒ Object



4951
4952
4953
4954
4955
4956
4957
# File 'lib/parser/ruby28.rb', line 4951

def _reduce_216(val, _values, result)
                      const  = @builder.const_op_assignable(
                                  @builder.const_global(val[0], val[1]))
                      result = @builder.op_assign(const, val[2], val[3])
                    
    result
end

#_reduce_217(val, _values, result) ⇒ Object



4959
4960
4961
4962
4963
# File 'lib/parser/ruby28.rb', line 4959

def _reduce_217(val, _values, result)
                      result = @builder.op_assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_218(val, _values, result) ⇒ Object



4965
4966
4967
4968
4969
# File 'lib/parser/ruby28.rb', line 4965

def _reduce_218(val, _values, result)
                      result = @builder.range_inclusive(val[0], val[1], val[2])
                    
    result
end

#_reduce_219(val, _values, result) ⇒ Object



4971
4972
4973
4974
4975
# File 'lib/parser/ruby28.rb', line 4971

def _reduce_219(val, _values, result)
                      result = @builder.range_exclusive(val[0], val[1], val[2])
                    
    result
end

#_reduce_22(val, _values, result) ⇒ Object



4049
4050
4051
4052
4053
# File 'lib/parser/ruby28.rb', line 4049

def _reduce_22(val, _values, result)
                      diagnostic :error, :nth_ref_alias, nil, val[2]
                    
    result
end

#_reduce_220(val, _values, result) ⇒ Object



4977
4978
4979
4980
4981
# File 'lib/parser/ruby28.rb', line 4977

def _reduce_220(val, _values, result)
                      result = @builder.range_inclusive(val[0], val[1], nil)
                    
    result
end

#_reduce_221(val, _values, result) ⇒ Object



4983
4984
4985
4986
4987
# File 'lib/parser/ruby28.rb', line 4983

def _reduce_221(val, _values, result)
                      result = @builder.range_exclusive(val[0], val[1], nil)
                    
    result
end

#_reduce_222(val, _values, result) ⇒ Object



4989
4990
4991
4992
4993
# File 'lib/parser/ruby28.rb', line 4989

def _reduce_222(val, _values, result)
                      result = @builder.range_inclusive(nil, val[0], val[1])
                    
    result
end

#_reduce_223(val, _values, result) ⇒ Object



4995
4996
4997
4998
4999
# File 'lib/parser/ruby28.rb', line 4995

def _reduce_223(val, _values, result)
                      result = @builder.range_exclusive(nil, val[0], val[1])
                    
    result
end

#_reduce_224(val, _values, result) ⇒ Object



5001
5002
5003
5004
5005
# File 'lib/parser/ruby28.rb', line 5001

def _reduce_224(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_225(val, _values, result) ⇒ Object



5007
5008
5009
5010
5011
# File 'lib/parser/ruby28.rb', line 5007

def _reduce_225(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_226(val, _values, result) ⇒ Object



5013
5014
5015
5016
5017
# File 'lib/parser/ruby28.rb', line 5013

def _reduce_226(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_227(val, _values, result) ⇒ Object



5019
5020
5021
5022
5023
# File 'lib/parser/ruby28.rb', line 5019

def _reduce_227(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_228(val, _values, result) ⇒ Object



5025
5026
5027
5028
5029
# File 'lib/parser/ruby28.rb', line 5025

def _reduce_228(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_229(val, _values, result) ⇒ Object



5031
5032
5033
5034
5035
# File 'lib/parser/ruby28.rb', line 5031

def _reduce_229(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_23(val, _values, result) ⇒ Object



4055
4056
4057
4058
4059
# File 'lib/parser/ruby28.rb', line 4055

def _reduce_23(val, _values, result)
                      result = @builder.undef_method(val[0], val[1])
                    
    result
end

#_reduce_230(val, _values, result) ⇒ Object



5037
5038
5039
5040
5041
5042
5043
# File 'lib/parser/ruby28.rb', line 5037

def _reduce_230(val, _values, result)
                      result = @builder.unary_op(val[0],
                                  @builder.binary_op(
                                    val[1], val[2], val[3]))
                    
    result
end

#_reduce_231(val, _values, result) ⇒ Object



5045
5046
5047
5048
5049
# File 'lib/parser/ruby28.rb', line 5045

def _reduce_231(val, _values, result)
                      result = @builder.unary_op(val[0], val[1])
                    
    result
end

#_reduce_232(val, _values, result) ⇒ Object



5051
5052
5053
5054
5055
# File 'lib/parser/ruby28.rb', line 5051

def _reduce_232(val, _values, result)
                      result = @builder.unary_op(val[0], val[1])
                    
    result
end

#_reduce_233(val, _values, result) ⇒ Object



5057
5058
5059
5060
5061
# File 'lib/parser/ruby28.rb', line 5057

def _reduce_233(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_234(val, _values, result) ⇒ Object



5063
5064
5065
5066
5067
# File 'lib/parser/ruby28.rb', line 5063

def _reduce_234(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_235(val, _values, result) ⇒ Object



5069
5070
5071
5072
5073
# File 'lib/parser/ruby28.rb', line 5069

def _reduce_235(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_236(val, _values, result) ⇒ Object



5075
5076
5077
5078
5079
# File 'lib/parser/ruby28.rb', line 5075

def _reduce_236(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_238(val, _values, result) ⇒ Object

reduce 237 omitted



5083
5084
5085
5086
5087
# File 'lib/parser/ruby28.rb', line 5083

def _reduce_238(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_239(val, _values, result) ⇒ Object



5089
5090
5091
5092
5093
# File 'lib/parser/ruby28.rb', line 5089

def _reduce_239(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_24(val, _values, result) ⇒ Object



4061
4062
4063
4064
4065
4066
# File 'lib/parser/ruby28.rb', line 4061

def _reduce_24(val, _values, result)
                      result = @builder.condition_mod(val[0], nil,
                                                      val[1], val[2])
                    
    result
end

#_reduce_240(val, _values, result) ⇒ Object



5095
5096
5097
5098
5099
# File 'lib/parser/ruby28.rb', line 5095

def _reduce_240(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_241(val, _values, result) ⇒ Object



5101
5102
5103
5104
5105
# File 'lib/parser/ruby28.rb', line 5101

def _reduce_241(val, _values, result)
                      result = @builder.match_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_242(val, _values, result) ⇒ Object



5107
5108
5109
5110
5111
# File 'lib/parser/ruby28.rb', line 5107

def _reduce_242(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_243(val, _values, result) ⇒ Object



5113
5114
5115
5116
5117
# File 'lib/parser/ruby28.rb', line 5113

def _reduce_243(val, _values, result)
                      result = @builder.not_op(val[0], nil, val[1], nil)
                    
    result
end

#_reduce_244(val, _values, result) ⇒ Object



5119
5120
5121
5122
5123
# File 'lib/parser/ruby28.rb', line 5119

def _reduce_244(val, _values, result)
                      result = @builder.unary_op(val[0], val[1])
                    
    result
end

#_reduce_245(val, _values, result) ⇒ Object



5125
5126
5127
5128
5129
# File 'lib/parser/ruby28.rb', line 5125

def _reduce_245(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_246(val, _values, result) ⇒ Object



5131
5132
5133
5134
5135
# File 'lib/parser/ruby28.rb', line 5131

def _reduce_246(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_247(val, _values, result) ⇒ Object



5137
5138
5139
5140
5141
# File 'lib/parser/ruby28.rb', line 5137

def _reduce_247(val, _values, result)
                      result = @builder.logical_op(:and, val[0], val[1], val[2])
                    
    result
end

#_reduce_248(val, _values, result) ⇒ Object



5143
5144
5145
5146
5147
# File 'lib/parser/ruby28.rb', line 5143

def _reduce_248(val, _values, result)
                      result = @builder.logical_op(:or, val[0], val[1], val[2])
                    
    result
end

#_reduce_249(val, _values, result) ⇒ Object



5149
5150
5151
5152
5153
# File 'lib/parser/ruby28.rb', line 5149

def _reduce_249(val, _values, result)
                      result = @builder.keyword_cmd(:defined?, val[0], nil, [ val[2] ], nil)
                    
    result
end

#_reduce_25(val, _values, result) ⇒ Object



4068
4069
4070
4071
4072
4073
# File 'lib/parser/ruby28.rb', line 4068

def _reduce_25(val, _values, result)
                      result = @builder.condition_mod(nil, val[0],
                                                      val[1], val[2])
                    
    result
end

#_reduce_250(val, _values, result) ⇒ Object



5155
5156
5157
5158
5159
5160
# File 'lib/parser/ruby28.rb', line 5155

def _reduce_250(val, _values, result)
                      result = @builder.ternary(val[0], val[1],
                                                val[2], val[4], val[5])
                    
    result
end

#_reduce_251(val, _values, result) ⇒ Object



5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
# File 'lib/parser/ruby28.rb', line 5162

def _reduce_251(val, _values, result)
                      result = @builder.def_endless_method(*val[0],
                                 val[1], val[2], val[3])

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                      @current_arg_stack.pop
                    
    result
end

#_reduce_252(val, _values, result) ⇒ Object



5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
# File 'lib/parser/ruby28.rb', line 5175

def _reduce_252(val, _values, result)
                      rescue_body = @builder.rescue_body(val[4],
                                        nil, nil, nil,
                                        nil, val[5])

                      method_body = @builder.begin_body(val[3], [ rescue_body ])

                      result = @builder.def_endless_method(*val[0],
                                 val[1], val[2], method_body)

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                      @current_arg_stack.pop
                    
    result
end

#_reduce_253(val, _values, result) ⇒ Object



5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
# File 'lib/parser/ruby28.rb', line 5194

def _reduce_253(val, _values, result)
                      result = @builder.def_endless_singleton(*val[0],
                                 val[1], val[2], val[3])

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                      @current_arg_stack.pop
                    
    result
end

#_reduce_254(val, _values, result) ⇒ Object



5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
# File 'lib/parser/ruby28.rb', line 5207

def _reduce_254(val, _values, result)
                      rescue_body = @builder.rescue_body(val[4],
                                        nil, nil, nil,
                                        nil, val[5])

                      method_body = @builder.begin_body(val[3], [ rescue_body ])

                      result = @builder.def_endless_singleton(*val[0],
                                 val[1], val[2], method_body)

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                      @current_arg_stack.pop
                    
    result
end

#_reduce_26(val, _values, result) ⇒ Object



4075
4076
4077
4078
4079
# File 'lib/parser/ruby28.rb', line 4075

def _reduce_26(val, _values, result)
                      result = @builder.loop_mod(:while, val[0], val[1], val[2])
                    
    result
end

#_reduce_260(val, _values, result) ⇒ Object

reduce 259 omitted



5236
5237
5238
5239
5240
# File 'lib/parser/ruby28.rb', line 5236

def _reduce_260(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_261(val, _values, result) ⇒ Object



5242
5243
5244
5245
5246
# File 'lib/parser/ruby28.rb', line 5242

def _reduce_261(val, _values, result)
                      result = @builder.binary_op(val[0], val[1], val[2])
                    
    result
end

#_reduce_265(val, _values, result) ⇒ Object

reduce 264 omitted



5254
5255
5256
5257
5258
# File 'lib/parser/ruby28.rb', line 5254

def _reduce_265(val, _values, result)
                      result = val[0] << @builder.associate(nil, val[2], nil)
                    
    result
end

#_reduce_266(val, _values, result) ⇒ Object



5260
5261
5262
5263
5264
# File 'lib/parser/ruby28.rb', line 5260

def _reduce_266(val, _values, result)
                      result = [ @builder.associate(nil, val[0], nil) ]
                    
    result
end

#_reduce_268(val, _values, result) ⇒ Object

reduce 267 omitted



5268
5269
5270
5271
5272
5273
5274
5275
5276
# File 'lib/parser/ruby28.rb', line 5268

def _reduce_268(val, _values, result)
                      rescue_body = @builder.rescue_body(val[1],
                                        nil, nil, nil,
                                        nil, val[2])

                      result = @builder.begin_body(val[0], [ rescue_body ])
                    
    result
end

#_reduce_269(val, _values, result) ⇒ Object



5278
5279
5280
5281
5282
# File 'lib/parser/ruby28.rb', line 5278

def _reduce_269(val, _values, result)
                      result = val
                    
    result
end

#_reduce_27(val, _values, result) ⇒ Object



4081
4082
4083
4084
4085
# File 'lib/parser/ruby28.rb', line 4081

def _reduce_27(val, _values, result)
                      result = @builder.loop_mod(:until, val[0], val[1], val[2])
                    
    result
end

#_reduce_270(val, _values, result) ⇒ Object



5284
5285
5286
5287
5288
5289
5290
5291
5292
# File 'lib/parser/ruby28.rb', line 5284

def _reduce_270(val, _values, result)
                      unless @static_env.declared_forward_args?
                        diagnostic :error, :unexpected_token, { :token => 'tBDOT3' } , val[3]
                      end

                      result = [val[0], [*val[1], @builder.forwarded_args(val[3])], val[4]]
                    
    result
end

#_reduce_271(val, _values, result) ⇒ Object



5294
5295
5296
5297
5298
5299
5300
5301
5302
# File 'lib/parser/ruby28.rb', line 5294

def _reduce_271(val, _values, result)
                      unless @static_env.declared_forward_args?
                        diagnostic :error, :unexpected_token, { :token => 'tBDOT3' } , val[1]
                      end

                      result = [val[0], [@builder.forwarded_args(val[1])], val[2]]
                    
    result
end

#_reduce_272(val, _values, result) ⇒ Object



5304
5305
5306
5307
5308
# File 'lib/parser/ruby28.rb', line 5304

def _reduce_272(val, _values, result)
                      result = [ nil, [], nil ]
                    
    result
end

#_reduce_274(val, _values, result) ⇒ Object

reduce 273 omitted



5312
5313
5314
5315
5316
# File 'lib/parser/ruby28.rb', line 5312

def _reduce_274(val, _values, result)
                      result = []
                    
    result
end

#_reduce_277(val, _values, result) ⇒ Object

reduce 276 omitted



5322
5323
5324
5325
5326
# File 'lib/parser/ruby28.rb', line 5322

def _reduce_277(val, _values, result)
                      result = val[0] << @builder.associate(nil, val[2], nil)
                    
    result
end

#_reduce_278(val, _values, result) ⇒ Object



5328
5329
5330
5331
5332
# File 'lib/parser/ruby28.rb', line 5328

def _reduce_278(val, _values, result)
                      result = [ @builder.associate(nil, val[0], nil) ]
                    
    result
end

#_reduce_279(val, _values, result) ⇒ Object



5334
5335
5336
5337
5338
# File 'lib/parser/ruby28.rb', line 5334

def _reduce_279(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_28(val, _values, result) ⇒ Object



4087
4088
4089
4090
4091
4092
4093
4094
4095
# File 'lib/parser/ruby28.rb', line 4087

def _reduce_28(val, _values, result)
                      rescue_body = @builder.rescue_body(val[1],
                                        nil, nil, nil,
                                        nil, val[2])

                      result = @builder.begin_body(val[0], [ rescue_body ])
                    
    result
end

#_reduce_280(val, _values, result) ⇒ Object



5340
5341
5342
5343
5344
# File 'lib/parser/ruby28.rb', line 5340

def _reduce_280(val, _values, result)
                      result = val[0].concat(val[1])
                    
    result
end

#_reduce_281(val, _values, result) ⇒ Object



5346
5347
5348
5349
5350
5351
# File 'lib/parser/ruby28.rb', line 5346

def _reduce_281(val, _values, result)
                      result = [ @builder.associate(nil, val[0], nil) ]
                      result.concat(val[1])
                    
    result
end

#_reduce_282(val, _values, result) ⇒ Object



5353
5354
5355
5356
5357
5358
5359
# File 'lib/parser/ruby28.rb', line 5353

def _reduce_282(val, _values, result)
                      assocs = @builder.associate(nil, val[2], nil)
                      result = val[0] << assocs
                      result.concat(val[3])
                    
    result
end

#_reduce_283(val, _values, result) ⇒ Object



5361
5362
5363
5364
5365
# File 'lib/parser/ruby28.rb', line 5361

def _reduce_283(val, _values, result)
                      result =  [ val[0] ]
                    
    result
end

#_reduce_284(val, _values, result) ⇒ Object



5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
# File 'lib/parser/ruby28.rb', line 5367

def _reduce_284(val, _values, result)
                      # When branch gets invoked by RACC's lookahead
                      # and command args start with '[' or '('
                      # we need to put `true` to the cmdarg stack
                      # **before** `false` pushed by lexer
                      #   m [], n
                      #     ^
                      # Right here we have cmdarg [...0] because
                      # lexer pushed it on '['
                      # We need to modify cmdarg stack to [...10]
                      #
                      # For all other cases (like `m n` or `m n, []`) we simply put 1 to the stack
                      # and later lexer pushes corresponding bits on top of it.
                      last_token = @last_token[0]
                      lookahead = last_token == :tLBRACK || last_token == :tLPAREN_ARG

                      if lookahead
                        top = @lexer.cmdarg.pop
                        @lexer.cmdarg.push(true)
                        @lexer.cmdarg.push(top)
                      else
                        @lexer.cmdarg.push(true)
                      end
                    
    result
end

#_reduce_285(val, _values, result) ⇒ Object



5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
# File 'lib/parser/ruby28.rb', line 5394

def _reduce_285(val, _values, result)
                      # call_args can be followed by tLBRACE_ARG (that does cmdarg.push(0) in the lexer)
                      # but the push must be done after cmdarg.pop() in the parser.
                      # So this code does cmdarg.pop() to pop 0 pushed by tLBRACE_ARG,
                      # cmdarg.pop() to pop 1 pushed by command_args,
                      # and cmdarg.push(0) to restore back the flag set by tLBRACE_ARG.
                      last_token = @last_token[0]
                      lookahead = last_token == :tLBRACE_ARG
                      if lookahead
                        top = @lexer.cmdarg.pop
                        @lexer.cmdarg.pop
                        @lexer.cmdarg.push(top)
                      else
                        @lexer.cmdarg.pop
                      end

                      result = val[1]
                    
    result
end

#_reduce_286(val, _values, result) ⇒ Object



5415
5416
5417
5418
5419
# File 'lib/parser/ruby28.rb', line 5415

def _reduce_286(val, _values, result)
                      result = @builder.block_pass(val[0], val[1])
                    
    result
end

#_reduce_287(val, _values, result) ⇒ Object



5421
5422
5423
5424
5425
# File 'lib/parser/ruby28.rb', line 5421

def _reduce_287(val, _values, result)
                      result = [ val[1] ]
                    
    result
end

#_reduce_288(val, _values, result) ⇒ Object



5427
5428
5429
5430
5431
# File 'lib/parser/ruby28.rb', line 5427

def _reduce_288(val, _values, result)
                      result = []
                    
    result
end

#_reduce_289(val, _values, result) ⇒ Object



5433
5434
5435
5436
5437
# File 'lib/parser/ruby28.rb', line 5433

def _reduce_289(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_29(val, _values, result) ⇒ Object



4097
4098
4099
4100
4101
# File 'lib/parser/ruby28.rb', line 4097

def _reduce_29(val, _values, result)
                      result = @builder.postexe(val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_290(val, _values, result) ⇒ Object



5439
5440
5441
5442
5443
# File 'lib/parser/ruby28.rb', line 5439

def _reduce_290(val, _values, result)
                      result = [ @builder.splat(val[0], val[1]) ]
                    
    result
end

#_reduce_291(val, _values, result) ⇒ Object



5445
5446
5447
5448
5449
# File 'lib/parser/ruby28.rb', line 5445

def _reduce_291(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_292(val, _values, result) ⇒ Object



5451
5452
5453
5454
5455
# File 'lib/parser/ruby28.rb', line 5451

def _reduce_292(val, _values, result)
                      result = val[0] << @builder.splat(val[2], val[3])
                    
    result
end

#_reduce_293(val, _values, result) ⇒ Object



5457
5458
5459
5460
5461
# File 'lib/parser/ruby28.rb', line 5457

def _reduce_293(val, _values, result)
                      result = @builder.array(nil, val[0], nil)
                    
    result
end

#_reduce_295(val, _values, result) ⇒ Object

reduce 294 omitted



5465
5466
5467
5468
5469
# File 'lib/parser/ruby28.rb', line 5465

def _reduce_295(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_296(val, _values, result) ⇒ Object



5471
5472
5473
5474
5475
# File 'lib/parser/ruby28.rb', line 5471

def _reduce_296(val, _values, result)
                      result = val[0] << @builder.splat(val[2], val[3])
                    
    result
end

#_reduce_297(val, _values, result) ⇒ Object



5477
5478
5479
5480
5481
# File 'lib/parser/ruby28.rb', line 5477

def _reduce_297(val, _values, result)
                      result = [ @builder.splat(val[0], val[1]) ]
                    
    result
end

#_reduce_3(val, _values, result) ⇒ Object



3928
3929
3930
3931
3932
# File 'lib/parser/ruby28.rb', line 3928

def _reduce_3(val, _values, result)
                      result = []
                    
    result
end

#_reduce_308(val, _values, result) ⇒ Object

reduce 307 omitted



5503
5504
5505
5506
5507
# File 'lib/parser/ruby28.rb', line 5503

def _reduce_308(val, _values, result)
                      result = @builder.call_method(nil, nil, val[0])
                    
    result
end

#_reduce_309(val, _values, result) ⇒ Object



5509
5510
5511
5512
5513
# File 'lib/parser/ruby28.rb', line 5509

def _reduce_309(val, _values, result)
                      @lexer.cmdarg.push(false)
                    
    result
end

#_reduce_31(val, _values, result) ⇒ Object

reduce 30 omitted



4105
4106
4107
4108
4109
# File 'lib/parser/ruby28.rb', line 4105

def _reduce_31(val, _values, result)
                      result = @builder.multi_assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_310(val, _values, result) ⇒ Object



5515
5516
5517
5518
5519
5520
5521
# File 'lib/parser/ruby28.rb', line 5515

def _reduce_310(val, _values, result)
                      @lexer.cmdarg.pop

                      result = @builder.begin_keyword(val[0], val[2], val[3])
                    
    result
end

#_reduce_311(val, _values, result) ⇒ Object



5523
5524
5525
5526
5527
# File 'lib/parser/ruby28.rb', line 5523

def _reduce_311(val, _values, result)
                      @lexer.state = :expr_endarg
                    
    result
end

#_reduce_312(val, _values, result) ⇒ Object



5529
5530
5531
5532
5533
# File 'lib/parser/ruby28.rb', line 5529

def _reduce_312(val, _values, result)
                      result = @builder.begin(val[0], val[1], val[3])
                    
    result
end

#_reduce_313(val, _values, result) ⇒ Object



5535
5536
5537
5538
5539
# File 'lib/parser/ruby28.rb', line 5535

def _reduce_313(val, _values, result)
                      @lexer.state = :expr_endarg
                    
    result
end

#_reduce_314(val, _values, result) ⇒ Object



5541
5542
5543
5544
5545
# File 'lib/parser/ruby28.rb', line 5541

def _reduce_314(val, _values, result)
                      result = @builder.begin(val[0], nil, val[3])
                    
    result
end

#_reduce_315(val, _values, result) ⇒ Object



5547
5548
5549
5550
5551
# File 'lib/parser/ruby28.rb', line 5547

def _reduce_315(val, _values, result)
                      result = @builder.begin(val[0], val[1], val[2])
                    
    result
end

#_reduce_316(val, _values, result) ⇒ Object



5553
5554
5555
5556
5557
# File 'lib/parser/ruby28.rb', line 5553

def _reduce_316(val, _values, result)
                      result = @builder.const_fetch(val[0], val[1], val[2])
                    
    result
end

#_reduce_317(val, _values, result) ⇒ Object



5559
5560
5561
5562
5563
# File 'lib/parser/ruby28.rb', line 5559

def _reduce_317(val, _values, result)
                      result = @builder.const_global(val[0], val[1])
                    
    result
end

#_reduce_318(val, _values, result) ⇒ Object



5565
5566
5567
5568
5569
# File 'lib/parser/ruby28.rb', line 5565

def _reduce_318(val, _values, result)
                      result = @builder.array(val[0], val[1], val[2])
                    
    result
end

#_reduce_319(val, _values, result) ⇒ Object



5571
5572
5573
5574
5575
# File 'lib/parser/ruby28.rb', line 5571

def _reduce_319(val, _values, result)
                      result = @builder.associate(val[0], val[1], val[2])
                    
    result
end

#_reduce_32(val, _values, result) ⇒ Object



4111
4112
4113
4114
4115
4116
# File 'lib/parser/ruby28.rb', line 4111

def _reduce_32(val, _values, result)
                      result = @builder.assign(val[0], val[1],
                                  @builder.array(nil, val[2], nil))
                    
    result
end

#_reduce_320(val, _values, result) ⇒ Object



5577
5578
5579
5580
5581
# File 'lib/parser/ruby28.rb', line 5577

def _reduce_320(val, _values, result)
                      result = @builder.keyword_cmd(:return, val[0])
                    
    result
end

#_reduce_321(val, _values, result) ⇒ Object



5583
5584
5585
5586
5587
# File 'lib/parser/ruby28.rb', line 5583

def _reduce_321(val, _values, result)
                      result = @builder.keyword_cmd(:yield, val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_322(val, _values, result) ⇒ Object



5589
5590
5591
5592
5593
# File 'lib/parser/ruby28.rb', line 5589

def _reduce_322(val, _values, result)
                      result = @builder.keyword_cmd(:yield, val[0], val[1], [], val[2])
                    
    result
end

#_reduce_323(val, _values, result) ⇒ Object



5595
5596
5597
5598
5599
# File 'lib/parser/ruby28.rb', line 5595

def _reduce_323(val, _values, result)
                      result = @builder.keyword_cmd(:yield, val[0])
                    
    result
end

#_reduce_324(val, _values, result) ⇒ Object



5601
5602
5603
5604
5605
5606
# File 'lib/parser/ruby28.rb', line 5601

def _reduce_324(val, _values, result)
                      result = @builder.keyword_cmd(:defined?, val[0],
                                                    val[2], [ val[3] ], val[4])
                    
    result
end

#_reduce_325(val, _values, result) ⇒ Object



5608
5609
5610
5611
5612
# File 'lib/parser/ruby28.rb', line 5608

def _reduce_325(val, _values, result)
                      result = @builder.not_op(val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_326(val, _values, result) ⇒ Object



5614
5615
5616
5617
5618
# File 'lib/parser/ruby28.rb', line 5614

def _reduce_326(val, _values, result)
                      result = @builder.not_op(val[0], val[1], nil, val[2])
                    
    result
end

#_reduce_327(val, _values, result) ⇒ Object



5620
5621
5622
5623
5624
5625
5626
5627
5628
# File 'lib/parser/ruby28.rb', line 5620

def _reduce_327(val, _values, result)
                      method_call = @builder.call_method(nil, nil, val[0])

                      begin_t, args, body, end_t = val[1]
                      result      = @builder.block(method_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_329(val, _values, result) ⇒ Object

reduce 328 omitted



5632
5633
5634
5635
5636
5637
5638
# File 'lib/parser/ruby28.rb', line 5632

def _reduce_329(val, _values, result)
                      begin_t, args, body, end_t = val[1]
                      result      = @builder.block(val[0],
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_33(val, _values, result) ⇒ Object



4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
# File 'lib/parser/ruby28.rb', line 4118

def _reduce_33(val, _values, result)
                      rescue_body = @builder.rescue_body(val[3],
                                                         nil, nil, nil,
                                                         nil, val[4])
                      begin_body = @builder.begin_body(val[2], [ rescue_body ])

                      result = @builder.multi_assign(val[0], val[1], begin_body)
                    
    result
end

#_reduce_331(val, _values, result) ⇒ Object

reduce 330 omitted



5642
5643
5644
5645
5646
5647
5648
5649
# File 'lib/parser/ruby28.rb', line 5642

def _reduce_331(val, _values, result)
                      else_t, else_ = val[4]
                      result = @builder.condition(val[0], val[1], val[2],
                                                  val[3], else_t,
                                                  else_,  val[5])
                    
    result
end

#_reduce_332(val, _values, result) ⇒ Object



5651
5652
5653
5654
5655
5656
5657
5658
# File 'lib/parser/ruby28.rb', line 5651

def _reduce_332(val, _values, result)
                      else_t, else_ = val[4]
                      result = @builder.condition(val[0], val[1], val[2],
                                                  else_,  else_t,
                                                  val[3], val[5])
                    
    result
end

#_reduce_333(val, _values, result) ⇒ Object



5660
5661
5662
5663
5664
# File 'lib/parser/ruby28.rb', line 5660

def _reduce_333(val, _values, result)
                      result = @builder.loop(:while, val[0], *val[1], val[2], val[3])
                    
    result
end

#_reduce_334(val, _values, result) ⇒ Object



5666
5667
5668
5669
5670
# File 'lib/parser/ruby28.rb', line 5666

def _reduce_334(val, _values, result)
                      result = @builder.loop(:until, val[0], *val[1], val[2], val[3])
                    
    result
end

#_reduce_335(val, _values, result) ⇒ Object



5672
5673
5674
5675
5676
5677
5678
5679
5680
# File 'lib/parser/ruby28.rb', line 5672

def _reduce_335(val, _values, result)
                      *when_bodies, (else_t, else_body) = *val[3]

                      result = @builder.case(val[0], val[1],
                                             when_bodies, else_t, else_body,
                                             val[4])
                    
    result
end

#_reduce_336(val, _values, result) ⇒ Object



5682
5683
5684
5685
5686
5687
5688
5689
5690
# File 'lib/parser/ruby28.rb', line 5682

def _reduce_336(val, _values, result)
                      *when_bodies, (else_t, else_body) = *val[2]

                      result = @builder.case(val[0], nil,
                                             when_bodies, else_t, else_body,
                                             val[3])
                    
    result
end

#_reduce_337(val, _values, result) ⇒ Object



5692
5693
5694
5695
5696
5697
5698
5699
5700
# File 'lib/parser/ruby28.rb', line 5692

def _reduce_337(val, _values, result)
                      *in_bodies, (else_t, else_body) = *val[3]

                      result = @builder.case_match(val[0], val[1],
                                             in_bodies, else_t, else_body,
                                             val[4])
                    
    result
end

#_reduce_338(val, _values, result) ⇒ Object



5702
5703
5704
5705
5706
# File 'lib/parser/ruby28.rb', line 5702

def _reduce_338(val, _values, result)
                      result = @builder.for(val[0], val[1], val[2], *val[3], val[4], val[5])
                    
    result
end

#_reduce_339(val, _values, result) ⇒ Object



5708
5709
5710
5711
5712
5713
5714
5715
# File 'lib/parser/ruby28.rb', line 5708

def _reduce_339(val, _values, result)
                      @static_env.extend_static
                      @lexer.cmdarg.push(false)
                      @lexer.cond.push(false)
                      @context.push(:class)
                    
    result
end

#_reduce_34(val, _values, result) ⇒ Object



4129
4130
4131
4132
4133
# File 'lib/parser/ruby28.rb', line 4129

def _reduce_34(val, _values, result)
                      result = @builder.multi_assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_340(val, _values, result) ⇒ Object



5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
# File 'lib/parser/ruby28.rb', line 5717

def _reduce_340(val, _values, result)
                      unless @context.class_definition_allowed?
                        diagnostic :error, :class_in_def, nil, val[0]
                      end

                      lt_t, superclass = val[2]
                      result = @builder.def_class(val[0], val[1],
                                                  lt_t, superclass,
                                                  val[4], val[5])

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                    
    result
end

#_reduce_341(val, _values, result) ⇒ Object



5735
5736
5737
5738
5739
5740
5741
5742
# File 'lib/parser/ruby28.rb', line 5735

def _reduce_341(val, _values, result)
                      @static_env.extend_static
                      @lexer.cmdarg.push(false)
                      @lexer.cond.push(false)
                      @context.push(:sclass)
                    
    result
end

#_reduce_342(val, _values, result) ⇒ Object



5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
# File 'lib/parser/ruby28.rb', line 5744

def _reduce_342(val, _values, result)
                      result = @builder.def_sclass(val[0], val[1], val[2],
                                                   val[5], val[6])

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                    
    result
end

#_reduce_343(val, _values, result) ⇒ Object



5756
5757
5758
5759
5760
5761
5762
# File 'lib/parser/ruby28.rb', line 5756

def _reduce_343(val, _values, result)
                      @static_env.extend_static
                      @lexer.cmdarg.push(false)
                      @context.push(:module)
                    
    result
end

#_reduce_344(val, _values, result) ⇒ Object



5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
# File 'lib/parser/ruby28.rb', line 5764

def _reduce_344(val, _values, result)
                      unless @context.module_definition_allowed?
                        diagnostic :error, :module_in_def, nil, val[0]
                      end

                      result = @builder.def_module(val[0], val[1],
                                                   val[3], val[4])

                      @lexer.cmdarg.pop
                      @static_env.unextend
                      @context.pop
                    
    result
end

#_reduce_345(val, _values, result) ⇒ Object



5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
# File 'lib/parser/ruby28.rb', line 5779

def _reduce_345(val, _values, result)
                      result = @builder.def_method(*val[0], val[1],
                                  val[2], val[3])

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                      @current_arg_stack.pop
                    
    result
end

#_reduce_346(val, _values, result) ⇒ Object



5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
# File 'lib/parser/ruby28.rb', line 5792

def _reduce_346(val, _values, result)
                      result = @builder.def_singleton(*val[0], val[1],
                                  val[2], val[3])

                      @lexer.cmdarg.pop
                      @lexer.cond.pop
                      @static_env.unextend
                      @context.pop
                      @current_arg_stack.pop
                    
    result
end

#_reduce_347(val, _values, result) ⇒ Object



5805
5806
5807
5808
5809
# File 'lib/parser/ruby28.rb', line 5805

def _reduce_347(val, _values, result)
                      result = @builder.keyword_cmd(:break, val[0])
                    
    result
end

#_reduce_348(val, _values, result) ⇒ Object



5811
5812
5813
5814
5815
# File 'lib/parser/ruby28.rb', line 5811

def _reduce_348(val, _values, result)
                      result = @builder.keyword_cmd(:next, val[0])
                    
    result
end

#_reduce_349(val, _values, result) ⇒ Object



5817
5818
5819
5820
5821
# File 'lib/parser/ruby28.rb', line 5817

def _reduce_349(val, _values, result)
                      result = @builder.keyword_cmd(:redo, val[0])
                    
    result
end

#_reduce_350(val, _values, result) ⇒ Object



5823
5824
5825
5826
5827
# File 'lib/parser/ruby28.rb', line 5823

def _reduce_350(val, _values, result)
                      result = @builder.keyword_cmd(:retry, val[0])
                    
    result
end

#_reduce_352(val, _values, result) ⇒ Object

reduce 351 omitted



5831
5832
5833
5834
5835
5836
5837
# File 'lib/parser/ruby28.rb', line 5831

def _reduce_352(val, _values, result)
                      if @context.in_class?
                        diagnostic :error, :invalid_return, nil, val[0]
                      end
                    
    result
end

#_reduce_355(val, _values, result) ⇒ Object

reduce 354 omitted



5843
5844
5845
5846
5847
# File 'lib/parser/ruby28.rb', line 5843

def _reduce_355(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_359(val, _values, result) ⇒ Object

reduce 358 omitted



5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
# File 'lib/parser/ruby28.rb', line 5855

def _reduce_359(val, _values, result)
                      else_t, else_ = val[4]
                      result = [ val[0],
                                 @builder.condition(val[0], val[1], val[2],
                                                    val[3], else_t,
                                                    else_,  nil),
                               ]
                    
    result
end

#_reduce_361(val, _values, result) ⇒ Object

reduce 360 omitted



5868
5869
5870
5871
5872
# File 'lib/parser/ruby28.rb', line 5868

def _reduce_361(val, _values, result)
                      result = val
                    
    result
end

#_reduce_364(val, _values, result) ⇒ Object

reduce 363 omitted



5878
5879
5880
5881
5882
# File 'lib/parser/ruby28.rb', line 5878

def _reduce_364(val, _values, result)
                      result = @builder.arg(val[0])
                    
    result
end

#_reduce_365(val, _values, result) ⇒ Object



5884
5885
5886
5887
5888
# File 'lib/parser/ruby28.rb', line 5884

def _reduce_365(val, _values, result)
                      result = @builder.multi_lhs(val[0], val[1], val[2])
                    
    result
end

#_reduce_366(val, _values, result) ⇒ Object



5890
5891
5892
5893
5894
# File 'lib/parser/ruby28.rb', line 5890

def _reduce_366(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_367(val, _values, result) ⇒ Object



5896
5897
5898
5899
5900
# File 'lib/parser/ruby28.rb', line 5896

def _reduce_367(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_369(val, _values, result) ⇒ Object

reduce 368 omitted



5904
5905
5906
5907
5908
5909
# File 'lib/parser/ruby28.rb', line 5904

def _reduce_369(val, _values, result)
                      result = val[0].
                                  push(val[2])
                    
    result
end

#_reduce_37(val, _values, result) ⇒ Object

reduce 36 omitted



4139
4140
4141
4142
4143
# File 'lib/parser/ruby28.rb', line 4139

def _reduce_37(val, _values, result)
                      result = @builder.rassign(val[0], val[1], val[2])
                    
    result
end

#_reduce_370(val, _values, result) ⇒ Object



5911
5912
5913
5914
5915
5916
5917
# File 'lib/parser/ruby28.rb', line 5911

def _reduce_370(val, _values, result)
                      result = val[0].
                                  push(val[2]).
                                  concat(val[4])
                    
    result
end

#_reduce_371(val, _values, result) ⇒ Object



5919
5920
5921
5922
5923
# File 'lib/parser/ruby28.rb', line 5919

def _reduce_371(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_372(val, _values, result) ⇒ Object



5925
5926
5927
5928
5929
# File 'lib/parser/ruby28.rb', line 5925

def _reduce_372(val, _values, result)
                      result = [ val[0], *val[2] ]
                    
    result
end

#_reduce_373(val, _values, result) ⇒ Object



5931
5932
5933
5934
5935
# File 'lib/parser/ruby28.rb', line 5931

def _reduce_373(val, _values, result)
                      result = @builder.restarg(val[0], val[1])
                    
    result
end

#_reduce_374(val, _values, result) ⇒ Object



5937
5938
5939
5940
5941
# File 'lib/parser/ruby28.rb', line 5937

def _reduce_374(val, _values, result)
                      result = @builder.restarg(val[0])
                    
    result
end

#_reduce_377(val, _values, result) ⇒ Object

reduce 376 omitted



5947
5948
5949
5950
5951
# File 'lib/parser/ruby28.rb', line 5947

def _reduce_377(val, _values, result)
                      result = val[0].concat(val[2]).concat(val[3])
                    
    result
end

#_reduce_378(val, _values, result) ⇒ Object



5953
5954
5955
5956
5957
# File 'lib/parser/ruby28.rb', line 5953

def _reduce_378(val, _values, result)
                      result = val[0].concat(val[1])
                    
    result
end

#_reduce_379(val, _values, result) ⇒ Object



5959
5960
5961
5962
5963
# File 'lib/parser/ruby28.rb', line 5959

def _reduce_379(val, _values, result)
                      result = val[0].concat(val[1])
                    
    result
end

#_reduce_38(val, _values, result) ⇒ Object



4145
4146
4147
4148
4149
# File 'lib/parser/ruby28.rb', line 4145

def _reduce_38(val, _values, result)
                      result = @builder.multi_rassign(val[0], val[1], val[2])
                    
    result
end

#_reduce_380(val, _values, result) ⇒ Object



5965
5966
5967
5968
5969
# File 'lib/parser/ruby28.rb', line 5965

def _reduce_380(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_381(val, _values, result) ⇒ Object



5971
5972
5973
5974
5975
# File 'lib/parser/ruby28.rb', line 5971

def _reduce_381(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_382(val, _values, result) ⇒ Object



5977
5978
5979
5980
5981
# File 'lib/parser/ruby28.rb', line 5977

def _reduce_382(val, _values, result)
                      result = []
                    
    result
end

#_reduce_384(val, _values, result) ⇒ Object

reduce 383 omitted



5985
5986
5987
5988
5989
5990
5991
5992
# File 'lib/parser/ruby28.rb', line 5985

def _reduce_384(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_385(val, _values, result) ⇒ Object



5994
5995
5996
5997
5998
5999
6000
6001
6002
# File 'lib/parser/ruby28.rb', line 5994

def _reduce_385(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[6]).
                                  concat(val[7])
                    
    result
end

#_reduce_386(val, _values, result) ⇒ Object



6004
6005
6006
6007
6008
6009
6010
# File 'lib/parser/ruby28.rb', line 6004

def _reduce_386(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_387(val, _values, result) ⇒ Object



6012
6013
6014
6015
6016
6017
6018
6019
# File 'lib/parser/ruby28.rb', line 6012

def _reduce_387(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_388(val, _values, result) ⇒ Object



6021
6022
6023
6024
6025
6026
6027
# File 'lib/parser/ruby28.rb', line 6021

def _reduce_388(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_39(val, _values, result) ⇒ Object



4151
4152
4153
4154
4155
# File 'lib/parser/ruby28.rb', line 4151

def _reduce_39(val, _values, result)
                      result = @builder.rassign(val[0], val[1], val[2])
                    
    result
end

#_reduce_390(val, _values, result) ⇒ Object

reduce 389 omitted



6031
6032
6033
6034
6035
6036
6037
6038
# File 'lib/parser/ruby28.rb', line 6031

def _reduce_390(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_391(val, _values, result) ⇒ Object



6040
6041
6042
6043
6044
6045
6046
6047
6048
# File 'lib/parser/ruby28.rb', line 6040

def _reduce_391(val, _values, result)
                      if val[1].empty? && val[0].size == 1
                        result = [@builder.procarg0(val[0][0])]
                      else
                        result = val[0].concat(val[1])
                      end
                    
    result
end

#_reduce_392(val, _values, result) ⇒ Object



6050
6051
6052
6053
6054
6055
6056
# File 'lib/parser/ruby28.rb', line 6050

def _reduce_392(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_393(val, _values, result) ⇒ Object



6058
6059
6060
6061
6062
6063
6064
6065
# File 'lib/parser/ruby28.rb', line 6058

def _reduce_393(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_394(val, _values, result) ⇒ Object



6067
6068
6069
6070
6071
6072
# File 'lib/parser/ruby28.rb', line 6067

def _reduce_394(val, _values, result)
                      result = val[0].
                                  concat(val[1])
                    
    result
end

#_reduce_395(val, _values, result) ⇒ Object



6074
6075
6076
6077
6078
6079
6080
# File 'lib/parser/ruby28.rb', line 6074

def _reduce_395(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_396(val, _values, result) ⇒ Object



6082
6083
6084
6085
6086
6087
# File 'lib/parser/ruby28.rb', line 6082

def _reduce_396(val, _values, result)
                      result = val[0].
                                  concat(val[1])
                    
    result
end

#_reduce_397(val, _values, result) ⇒ Object



6089
6090
6091
6092
6093
6094
6095
# File 'lib/parser/ruby28.rb', line 6089

def _reduce_397(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_399(val, _values, result) ⇒ Object

reduce 398 omitted



6099
6100
6101
6102
6103
# File 'lib/parser/ruby28.rb', line 6099

def _reduce_399(val, _values, result)
                      result = @builder.args(nil, [], nil)
                    
    result
end

#_reduce_4(val, _values, result) ⇒ Object



3934
3935
3936
3937
3938
# File 'lib/parser/ruby28.rb', line 3934

def _reduce_4(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_40(val, _values, result) ⇒ Object



4157
4158
4159
4160
4161
# File 'lib/parser/ruby28.rb', line 4157

def _reduce_40(val, _values, result)
                      result = @builder.multi_rassign(val[0], val[1], val[2])
                    
    result
end

#_reduce_400(val, _values, result) ⇒ Object



6105
6106
6107
6108
6109
# File 'lib/parser/ruby28.rb', line 6105

def _reduce_400(val, _values, result)
                      @lexer.state = :expr_value
                    
    result
end

#_reduce_401(val, _values, result) ⇒ Object



6111
6112
6113
6114
6115
6116
6117
# File 'lib/parser/ruby28.rb', line 6111

def _reduce_401(val, _values, result)
                      @max_numparam_stack.has_ordinary_params!
                      @current_arg_stack.set(nil)
                      result = @builder.args(val[0], val[1], val[2])
                    
    result
end

#_reduce_402(val, _values, result) ⇒ Object



6119
6120
6121
6122
6123
6124
6125
# File 'lib/parser/ruby28.rb', line 6119

def _reduce_402(val, _values, result)
                      @max_numparam_stack.has_ordinary_params!
                      @current_arg_stack.set(nil)
                      result = @builder.args(val[0], val[1].concat(val[2]), val[3])
                    
    result
end

#_reduce_403(val, _values, result) ⇒ Object



6127
6128
6129
6130
6131
# File 'lib/parser/ruby28.rb', line 6127

def _reduce_403(val, _values, result)
                      result = []
                    
    result
end

#_reduce_404(val, _values, result) ⇒ Object



6133
6134
6135
6136
6137
# File 'lib/parser/ruby28.rb', line 6133

def _reduce_404(val, _values, result)
                      result = val[2]
                    
    result
end

#_reduce_405(val, _values, result) ⇒ Object



6139
6140
6141
6142
6143
# File 'lib/parser/ruby28.rb', line 6139

def _reduce_405(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_406(val, _values, result) ⇒ Object



6145
6146
6147
6148
6149
# File 'lib/parser/ruby28.rb', line 6145

def _reduce_406(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_407(val, _values, result) ⇒ Object



6151
6152
6153
6154
6155
6156
# File 'lib/parser/ruby28.rb', line 6151

def _reduce_407(val, _values, result)
                      @static_env.declare val[0][0]
                      result = @builder.shadowarg(val[0])
                    
    result
end

#_reduce_409(val, _values, result) ⇒ Object

reduce 408 omitted



6160
6161
6162
6163
6164
6165
6166
# File 'lib/parser/ruby28.rb', line 6160

def _reduce_409(val, _values, result)
                      @static_env.extend_dynamic
                      @max_numparam_stack.push
                      @context.push(:lambda)
                    
    result
end

#_reduce_41(val, _values, result) ⇒ Object



4163
4164
4165
4166
4167
# File 'lib/parser/ruby28.rb', line 4163

def _reduce_41(val, _values, result)
                      result = @builder.assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_410(val, _values, result) ⇒ Object



6168
6169
6170
6171
6172
6173
# File 'lib/parser/ruby28.rb', line 6168

def _reduce_410(val, _values, result)
                      @context.pop
                      @lexer.cmdarg.push(false)
                    
    result
end

#_reduce_411(val, _values, result) ⇒ Object



6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
# File 'lib/parser/ruby28.rb', line 6175

def _reduce_411(val, _values, result)
                      lambda_call = @builder.call_lambda(val[0])
                      args = @max_numparam_stack.has_numparams? ? @builder.numargs(@max_numparam_stack.top) : val[2]
                      begin_t, body, end_t = val[4]

                      @max_numparam_stack.pop
                      @static_env.unextend
                      @lexer.cmdarg.pop

                      result      = @builder.block(lambda_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_412(val, _values, result) ⇒ Object



6190
6191
6192
6193
6194
6195
# File 'lib/parser/ruby28.rb', line 6190

def _reduce_412(val, _values, result)
                      @max_numparam_stack.has_ordinary_params!
                      result = @builder.args(val[0], val[1].concat(val[2]), val[3])
                    
    result
end

#_reduce_413(val, _values, result) ⇒ Object



6197
6198
6199
6200
6201
6202
6203
6204
# File 'lib/parser/ruby28.rb', line 6197

def _reduce_413(val, _values, result)
                      if val[0].any?
                        @max_numparam_stack.has_ordinary_params!
                      end
                      result = @builder.args(nil, val[0], nil)
                    
    result
end

#_reduce_414(val, _values, result) ⇒ Object



6206
6207
6208
6209
6210
# File 'lib/parser/ruby28.rb', line 6206

def _reduce_414(val, _values, result)
                      @context.push(:lambda)
                    
    result
end

#_reduce_415(val, _values, result) ⇒ Object



6212
6213
6214
6215
6216
6217
# File 'lib/parser/ruby28.rb', line 6212

def _reduce_415(val, _values, result)
                      result = [ val[0], val[2], val[3] ]
                      @context.pop
                    
    result
end

#_reduce_416(val, _values, result) ⇒ Object



6219
6220
6221
6222
6223
# File 'lib/parser/ruby28.rb', line 6219

def _reduce_416(val, _values, result)
                      @context.push(:lambda)
                    
    result
end

#_reduce_417(val, _values, result) ⇒ Object



6225
6226
6227
6228
6229
6230
# File 'lib/parser/ruby28.rb', line 6225

def _reduce_417(val, _values, result)
                      result = [ val[0], val[2], val[3] ]
                      @context.pop
                    
    result
end

#_reduce_418(val, _values, result) ⇒ Object



6232
6233
6234
6235
6236
# File 'lib/parser/ruby28.rb', line 6232

def _reduce_418(val, _values, result)
                      @context.push(:block)
                    
    result
end

#_reduce_419(val, _values, result) ⇒ Object



6238
6239
6240
6241
6242
6243
# File 'lib/parser/ruby28.rb', line 6238

def _reduce_419(val, _values, result)
                      result = [ val[0], *val[2], val[3] ]
                      @context.pop
                    
    result
end

#_reduce_42(val, _values, result) ⇒ Object



4169
4170
4171
4172
4173
# File 'lib/parser/ruby28.rb', line 4169

def _reduce_42(val, _values, result)
                      result = @builder.op_assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_420(val, _values, result) ⇒ Object



6245
6246
6247
6248
6249
6250
6251
# File 'lib/parser/ruby28.rb', line 6245

def _reduce_420(val, _values, result)
                      begin_t, block_args, body, end_t = val[1]
                      result      = @builder.block(val[0],
                                      begin_t, block_args, body, end_t)
                    
    result
end

#_reduce_421(val, _values, result) ⇒ Object



6253
6254
6255
6256
6257
6258
6259
# File 'lib/parser/ruby28.rb', line 6253

def _reduce_421(val, _values, result)
                      lparen_t, args, rparen_t = val[3]
                      result = @builder.call_method(val[0], val[1], val[2],
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_422(val, _values, result) ⇒ Object



6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
# File 'lib/parser/ruby28.rb', line 6261

def _reduce_422(val, _values, result)
                      lparen_t, args, rparen_t = val[3]
                      method_call = @builder.call_method(val[0], val[1], val[2],
                                      lparen_t, args, rparen_t)

                      begin_t, args, body, end_t = val[4]
                      result      = @builder.block(method_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_423(val, _values, result) ⇒ Object



6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
# File 'lib/parser/ruby28.rb', line 6273

def _reduce_423(val, _values, result)
                      method_call = @builder.call_method(val[0], val[1], val[2],
                                      nil, val[3], nil)

                      begin_t, args, body, end_t = val[4]
                      result      = @builder.block(method_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_424(val, _values, result) ⇒ Object



6284
6285
6286
6287
6288
6289
6290
# File 'lib/parser/ruby28.rb', line 6284

def _reduce_424(val, _values, result)
                      lparen_t, args, rparen_t = val[1]
                      result = @builder.call_method(nil, nil, val[0],
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_425(val, _values, result) ⇒ Object



6292
6293
6294
6295
6296
6297
6298
# File 'lib/parser/ruby28.rb', line 6292

def _reduce_425(val, _values, result)
                      lparen_t, args, rparen_t = val[3]
                      result = @builder.call_method(val[0], val[1], val[2],
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_426(val, _values, result) ⇒ Object



6300
6301
6302
6303
6304
6305
6306
# File 'lib/parser/ruby28.rb', line 6300

def _reduce_426(val, _values, result)
                      lparen_t, args, rparen_t = val[3]
                      result = @builder.call_method(val[0], val[1], val[2],
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_427(val, _values, result) ⇒ Object



6308
6309
6310
6311
6312
# File 'lib/parser/ruby28.rb', line 6308

def _reduce_427(val, _values, result)
                      result = @builder.call_method(val[0], val[1], val[2])
                    
    result
end

#_reduce_428(val, _values, result) ⇒ Object



6314
6315
6316
6317
6318
6319
6320
# File 'lib/parser/ruby28.rb', line 6314

def _reduce_428(val, _values, result)
                      lparen_t, args, rparen_t = val[2]
                      result = @builder.call_method(val[0], val[1], nil,
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_429(val, _values, result) ⇒ Object



6322
6323
6324
6325
6326
6327
6328
# File 'lib/parser/ruby28.rb', line 6322

def _reduce_429(val, _values, result)
                      lparen_t, args, rparen_t = val[2]
                      result = @builder.call_method(val[0], val[1], nil,
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_43(val, _values, result) ⇒ Object



4175
4176
4177
4178
4179
4180
4181
4182
# File 'lib/parser/ruby28.rb', line 4175

def _reduce_43(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.index(
                                    val[0], val[1], val[2], val[3]),
                                  val[4], val[5])
                    
    result
end

#_reduce_430(val, _values, result) ⇒ Object



6330
6331
6332
6333
6334
6335
6336
# File 'lib/parser/ruby28.rb', line 6330

def _reduce_430(val, _values, result)
                      lparen_t, args, rparen_t = val[1]
                      result = @builder.keyword_cmd(:super, val[0],
                                  lparen_t, args, rparen_t)
                    
    result
end

#_reduce_431(val, _values, result) ⇒ Object



6338
6339
6340
6341
6342
# File 'lib/parser/ruby28.rb', line 6338

def _reduce_431(val, _values, result)
                      result = @builder.keyword_cmd(:zsuper, val[0])
                    
    result
end

#_reduce_432(val, _values, result) ⇒ Object



6344
6345
6346
6347
6348
# File 'lib/parser/ruby28.rb', line 6344

def _reduce_432(val, _values, result)
                      result = @builder.index(val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_433(val, _values, result) ⇒ Object



6350
6351
6352
6353
6354
# File 'lib/parser/ruby28.rb', line 6350

def _reduce_433(val, _values, result)
                      @context.push(:block)
                    
    result
end

#_reduce_434(val, _values, result) ⇒ Object



6356
6357
6358
6359
6360
6361
# File 'lib/parser/ruby28.rb', line 6356

def _reduce_434(val, _values, result)
                      result = [ val[0], *val[2], val[3] ]
                      @context.pop
                    
    result
end

#_reduce_435(val, _values, result) ⇒ Object



6363
6364
6365
6366
6367
# File 'lib/parser/ruby28.rb', line 6363

def _reduce_435(val, _values, result)
                      @context.push(:block)
                    
    result
end

#_reduce_436(val, _values, result) ⇒ Object



6369
6370
6371
6372
6373
6374
# File 'lib/parser/ruby28.rb', line 6369

def _reduce_436(val, _values, result)
                      result = [ val[0], *val[2], val[3] ]
                      @context.pop
                    
    result
end

#_reduce_437(val, _values, result) ⇒ Object



6376
6377
6378
6379
6380
6381
# File 'lib/parser/ruby28.rb', line 6376

def _reduce_437(val, _values, result)
                      @static_env.extend_dynamic
                      @max_numparam_stack.push
                    
    result
end

#_reduce_438(val, _values, result) ⇒ Object



6383
6384
6385
6386
6387
6388
6389
6390
6391
# File 'lib/parser/ruby28.rb', line 6383

def _reduce_438(val, _values, result)
                      args = @max_numparam_stack.has_numparams? ? @builder.numargs(@max_numparam_stack.top) : val[1]
                      result = [ args, val[2] ]

                      @max_numparam_stack.pop
                      @static_env.unextend
                    
    result
end

#_reduce_439(val, _values, result) ⇒ Object



6393
6394
6395
6396
6397
6398
# File 'lib/parser/ruby28.rb', line 6393

def _reduce_439(val, _values, result)
                      @static_env.extend_dynamic
                      @max_numparam_stack.push
                    
    result
end

#_reduce_44(val, _values, result) ⇒ Object



4184
4185
4186
4187
4188
4189
4190
4191
# File 'lib/parser/ruby28.rb', line 4184

def _reduce_44(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.call_method(
                                    val[0], val[1], val[2]),
                                  val[3], val[4])
                    
    result
end

#_reduce_440(val, _values, result) ⇒ Object



6400
6401
6402
6403
6404
# File 'lib/parser/ruby28.rb', line 6400

def _reduce_440(val, _values, result)
                      @lexer.cmdarg.push(false)
                    
    result
end

#_reduce_441(val, _values, result) ⇒ Object



6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
# File 'lib/parser/ruby28.rb', line 6406

def _reduce_441(val, _values, result)
                      args = @max_numparam_stack.has_numparams? ? @builder.numargs(@max_numparam_stack.top) : val[2]
                      result = [ args, val[3] ]

                      @max_numparam_stack.pop
                      @static_env.unextend
                      @lexer.cmdarg.pop
                    
    result
end

#_reduce_442(val, _values, result) ⇒ Object



6417
6418
6419
6420
6421
6422
# File 'lib/parser/ruby28.rb', line 6417

def _reduce_442(val, _values, result)
                      result = [ @builder.when(val[0], val[1], val[2], val[3]),
                                 *val[4] ]
                    
    result
end

#_reduce_443(val, _values, result) ⇒ Object



6424
6425
6426
6427
6428
# File 'lib/parser/ruby28.rb', line 6424

def _reduce_443(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_445(val, _values, result) ⇒ Object

reduce 444 omitted



6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
# File 'lib/parser/ruby28.rb', line 6432

def _reduce_445(val, _values, result)
                      @lexer.state = :expr_beg
                      @lexer.command_start = false
                      @pattern_variables.push
                      @pattern_hash_keys.push

                      result = @lexer.in_kwarg
                      @lexer.in_kwarg = true
                    
    result
end

#_reduce_446(val, _values, result) ⇒ Object



6444
6445
6446
6447
6448
# File 'lib/parser/ruby28.rb', line 6444

def _reduce_446(val, _values, result)
                      @lexer.in_kwarg = val[1]
                    
    result
end

#_reduce_447(val, _values, result) ⇒ Object



6450
6451
6452
6453
6454
6455
# File 'lib/parser/ruby28.rb', line 6450

def _reduce_447(val, _values, result)
                      result = [ @builder.in_pattern(val[0], *val[2], val[3], val[5]),
                                 *val[6] ]
                    
    result
end

#_reduce_448(val, _values, result) ⇒ Object



6457
6458
6459
6460
6461
# File 'lib/parser/ruby28.rb', line 6457

def _reduce_448(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_45(val, _values, result) ⇒ Object



4193
4194
4195
4196
4197
4198
4199
4200
# File 'lib/parser/ruby28.rb', line 4193

def _reduce_45(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.call_method(
                                    val[0], val[1], val[2]),
                                  val[3], val[4])
                    
    result
end

#_reduce_450(val, _values, result) ⇒ Object

reduce 449 omitted



6465
6466
6467
6468
6469
# File 'lib/parser/ruby28.rb', line 6465

def _reduce_450(val, _values, result)
                      result = [ val[0], nil ]
                    
    result
end

#_reduce_451(val, _values, result) ⇒ Object



6471
6472
6473
6474
6475
# File 'lib/parser/ruby28.rb', line 6471

def _reduce_451(val, _values, result)
                      result = [ val[0], @builder.if_guard(val[1], val[2]) ]
                    
    result
end

#_reduce_452(val, _values, result) ⇒ Object



6477
6478
6479
6480
6481
# File 'lib/parser/ruby28.rb', line 6477

def _reduce_452(val, _values, result)
                      result = [ val[0], @builder.unless_guard(val[1], val[2]) ]
                    
    result
end

#_reduce_454(val, _values, result) ⇒ Object

reduce 453 omitted



6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'lib/parser/ruby28.rb', line 6485

def _reduce_454(val, _values, result)
                      # array patterns that end with comma
                      # like 1, 2,
                      # must be emitted as `array_pattern_with_tail`
                      item = @builder.match_with_trailing_comma(val[0], val[1])
                      result = @builder.array_pattern(nil, [ item ], nil)
                    
    result
end

#_reduce_455(val, _values, result) ⇒ Object



6495
6496
6497
6498
6499
# File 'lib/parser/ruby28.rb', line 6495

def _reduce_455(val, _values, result)
                      result = @builder.array_pattern(nil, [val[0]].concat(val[2]), nil)
                    
    result
end

#_reduce_456(val, _values, result) ⇒ Object



6501
6502
6503
6504
6505
# File 'lib/parser/ruby28.rb', line 6501

def _reduce_456(val, _values, result)
                      result = @builder.find_pattern(nil, val[0], nil)
                    
    result
end

#_reduce_457(val, _values, result) ⇒ Object



6507
6508
6509
6510
6511
# File 'lib/parser/ruby28.rb', line 6507

def _reduce_457(val, _values, result)
                      result = @builder.array_pattern(nil, val[0], nil)
                    
    result
end

#_reduce_458(val, _values, result) ⇒ Object



6513
6514
6515
6516
6517
# File 'lib/parser/ruby28.rb', line 6513

def _reduce_458(val, _values, result)
                      result = @builder.hash_pattern(nil, val[0], nil)
                    
    result
end

#_reduce_46(val, _values, result) ⇒ Object



4202
4203
4204
4205
4206
4207
4208
# File 'lib/parser/ruby28.rb', line 4202

def _reduce_46(val, _values, result)
                      const  = @builder.const_op_assignable(
                                  @builder.const_fetch(val[0], val[1], val[2]))
                      result = @builder.op_assign(const, val[3], val[4])
                    
    result
end

#_reduce_460(val, _values, result) ⇒ Object

reduce 459 omitted



6521
6522
6523
6524
6525
# File 'lib/parser/ruby28.rb', line 6521

def _reduce_460(val, _values, result)
                      result = @builder.match_as(val[0], val[1], val[2])
                    
    result
end

#_reduce_462(val, _values, result) ⇒ Object

reduce 461 omitted



6529
6530
6531
6532
6533
# File 'lib/parser/ruby28.rb', line 6529

def _reduce_462(val, _values, result)
                      result = @builder.match_alt(val[0], val[1], val[2])
                    
    result
end

#_reduce_464(val, _values, result) ⇒ Object

reduce 463 omitted



6537
6538
6539
6540
6541
6542
# File 'lib/parser/ruby28.rb', line 6537

def _reduce_464(val, _values, result)
                      result = val[0]
                      @pattern_hash_keys.push
                    
    result
end

#_reduce_465(val, _values, result) ⇒ Object



6544
6545
6546
6547
6548
6549
# File 'lib/parser/ruby28.rb', line 6544

def _reduce_465(val, _values, result)
                      result = val[0]
                      @pattern_hash_keys.push
                    
    result
end

#_reduce_467(val, _values, result) ⇒ Object

reduce 466 omitted



6553
6554
6555
6556
6557
6558
6559
# File 'lib/parser/ruby28.rb', line 6553

def _reduce_467(val, _values, result)
                      @pattern_hash_keys.pop
                      pattern = @builder.array_pattern(nil, val[2], nil)
                      result = @builder.const_pattern(val[0], val[1], pattern, val[3])
                    
    result
end

#_reduce_468(val, _values, result) ⇒ Object



6561
6562
6563
6564
6565
6566
6567
# File 'lib/parser/ruby28.rb', line 6561

def _reduce_468(val, _values, result)
                      @pattern_hash_keys.pop
                      pattern = @builder.find_pattern(nil, val[2], nil)
                      result = @builder.const_pattern(val[0], val[1], pattern, val[3])
                    
    result
end

#_reduce_469(val, _values, result) ⇒ Object



6569
6570
6571
6572
6573
6574
6575
# File 'lib/parser/ruby28.rb', line 6569

def _reduce_469(val, _values, result)
                      @pattern_hash_keys.pop
                      pattern = @builder.hash_pattern(nil, val[2], nil)
                      result = @builder.const_pattern(val[0], val[1], pattern, val[3])
                    
    result
end

#_reduce_47(val, _values, result) ⇒ Object



4210
4211
4212
4213
4214
4215
4216
4217
# File 'lib/parser/ruby28.rb', line 4210

def _reduce_47(val, _values, result)
                      result = @builder.op_assign(
                                  @builder.call_method(
                                    val[0], val[1], val[2]),
                                  val[3], val[4])
                    
    result
end

#_reduce_470(val, _values, result) ⇒ Object



6577
6578
6579
6580
6581
6582
# File 'lib/parser/ruby28.rb', line 6577

def _reduce_470(val, _values, result)
                      pattern = @builder.array_pattern(val[1], nil, val[2])
                      result = @builder.const_pattern(val[0], val[1], pattern, val[2])
                    
    result
end

#_reduce_471(val, _values, result) ⇒ Object



6584
6585
6586
6587
6588
6589
6590
# File 'lib/parser/ruby28.rb', line 6584

def _reduce_471(val, _values, result)
                      @pattern_hash_keys.pop
                      pattern = @builder.array_pattern(nil, val[2], nil)
                      result = @builder.const_pattern(val[0], val[1], pattern, val[3])
                    
    result
end

#_reduce_472(val, _values, result) ⇒ Object



6592
6593
6594
6595
6596
6597
6598
# File 'lib/parser/ruby28.rb', line 6592

def _reduce_472(val, _values, result)
                      @pattern_hash_keys.pop
                      pattern = @builder.find_pattern(nil, val[2], nil)
                      result = @builder.const_pattern(val[0], val[1], pattern, val[3])
                    
    result
end

#_reduce_473(val, _values, result) ⇒ Object



6600
6601
6602
6603
6604
6605
6606
# File 'lib/parser/ruby28.rb', line 6600

def _reduce_473(val, _values, result)
                      @pattern_hash_keys.pop
                      pattern = @builder.hash_pattern(nil, val[2], nil)
                      result = @builder.const_pattern(val[0], val[1], pattern, val[3])
                    
    result
end

#_reduce_474(val, _values, result) ⇒ Object



6608
6609
6610
6611
6612
6613
# File 'lib/parser/ruby28.rb', line 6608

def _reduce_474(val, _values, result)
                      pattern = @builder.array_pattern(val[1], nil, val[2])
                      result = @builder.const_pattern(val[0], val[1], pattern, val[2])
                    
    result
end

#_reduce_475(val, _values, result) ⇒ Object



6615
6616
6617
6618
6619
# File 'lib/parser/ruby28.rb', line 6615

def _reduce_475(val, _values, result)
                      result = @builder.array_pattern(val[0], val[1], val[2])
                    
    result
end

#_reduce_476(val, _values, result) ⇒ Object



6621
6622
6623
6624
6625
# File 'lib/parser/ruby28.rb', line 6621

def _reduce_476(val, _values, result)
                      result = @builder.find_pattern(val[0], val[1], val[2])
                    
    result
end

#_reduce_477(val, _values, result) ⇒ Object



6627
6628
6629
6630
6631
# File 'lib/parser/ruby28.rb', line 6627

def _reduce_477(val, _values, result)
                      result = @builder.array_pattern(val[0], [], val[1])
                    
    result
end

#_reduce_478(val, _values, result) ⇒ Object



6633
6634
6635
6636
6637
6638
6639
# File 'lib/parser/ruby28.rb', line 6633

def _reduce_478(val, _values, result)
                      @pattern_hash_keys.push
                      result = @lexer.in_kwarg
                      @lexer.in_kwarg = false
                    
    result
end

#_reduce_479(val, _values, result) ⇒ Object



6641
6642
6643
6644
6645
6646
6647
# File 'lib/parser/ruby28.rb', line 6641

def _reduce_479(val, _values, result)
                      @pattern_hash_keys.pop
                      @lexer.in_kwarg = val[1]
                      result = @builder.hash_pattern(val[0], val[2], val[3])
                    
    result
end

#_reduce_48(val, _values, result) ⇒ Object



4219
4220
4221
4222
4223
# File 'lib/parser/ruby28.rb', line 4219

def _reduce_48(val, _values, result)
                      @builder.op_assign(val[0], val[1], val[2])
                    
    result
end

#_reduce_480(val, _values, result) ⇒ Object



6649
6650
6651
6652
6653
# File 'lib/parser/ruby28.rb', line 6649

def _reduce_480(val, _values, result)
                      result = @builder.hash_pattern(val[0], [], val[1])
                    
    result
end

#_reduce_481(val, _values, result) ⇒ Object



6655
6656
6657
6658
6659
# File 'lib/parser/ruby28.rb', line 6655

def _reduce_481(val, _values, result)
                      @pattern_hash_keys.push
                    
    result
end

#_reduce_482(val, _values, result) ⇒ Object



6661
6662
6663
6664
6665
6666
# File 'lib/parser/ruby28.rb', line 6661

def _reduce_482(val, _values, result)
                      @pattern_hash_keys.pop
                      result = @builder.begin(val[0], val[2], val[3])
                    
    result
end

#_reduce_483(val, _values, result) ⇒ Object



6668
6669
6670
6671
6672
# File 'lib/parser/ruby28.rb', line 6668

def _reduce_483(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_484(val, _values, result) ⇒ Object



6674
6675
6676
6677
6678
# File 'lib/parser/ruby28.rb', line 6674

def _reduce_484(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_485(val, _values, result) ⇒ Object



6680
6681
6682
6683
6684
# File 'lib/parser/ruby28.rb', line 6680

def _reduce_485(val, _values, result)
                      result = [ *val[0], val[1] ]
                    
    result
end

#_reduce_486(val, _values, result) ⇒ Object



6686
6687
6688
6689
6690
6691
# File 'lib/parser/ruby28.rb', line 6686

def _reduce_486(val, _values, result)
                      match_rest = @builder.match_rest(val[1], val[2])
                      result = [ *val[0], match_rest ]
                    
    result
end

#_reduce_487(val, _values, result) ⇒ Object



6693
6694
6695
6696
6697
6698
# File 'lib/parser/ruby28.rb', line 6693

def _reduce_487(val, _values, result)
                      match_rest = @builder.match_rest(val[1], val[2])
                      result = [ *val[0], match_rest, *val[4] ]
                    
    result
end

#_reduce_488(val, _values, result) ⇒ Object



6700
6701
6702
6703
6704
# File 'lib/parser/ruby28.rb', line 6700

def _reduce_488(val, _values, result)
                      result = [ *val[0], @builder.match_rest(val[1]) ]
                    
    result
end

#_reduce_489(val, _values, result) ⇒ Object



6706
6707
6708
6709
6710
# File 'lib/parser/ruby28.rb', line 6706

def _reduce_489(val, _values, result)
                      result = [ *val[0], @builder.match_rest(val[1]), *val[3] ]
                    
    result
end

#_reduce_491(val, _values, result) ⇒ Object

reduce 490 omitted



6714
6715
6716
6717
6718
6719
6720
6721
6722
# File 'lib/parser/ruby28.rb', line 6714

def _reduce_491(val, _values, result)
                      # array patterns that end with comma
                      # like [1, 2,]
                      # must be emitted as `array_pattern_with_tail`
                      item = @builder.match_with_trailing_comma(val[0], val[1])
                      result = [ item ]
                    
    result
end

#_reduce_492(val, _values, result) ⇒ Object



6724
6725
6726
6727
6728
6729
6730
6731
6732
# File 'lib/parser/ruby28.rb', line 6724

def _reduce_492(val, _values, result)
                      # array patterns that end with comma
                      # like [1, 2,]
                      # must be emitted as `array_pattern_with_tail`
                      last_item = @builder.match_with_trailing_comma(val[1], val[2])
                      result = [ *val[0], last_item ]
                    
    result
end

#_reduce_493(val, _values, result) ⇒ Object



6734
6735
6736
6737
6738
# File 'lib/parser/ruby28.rb', line 6734

def _reduce_493(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_494(val, _values, result) ⇒ Object



6740
6741
6742
6743
6744
# File 'lib/parser/ruby28.rb', line 6740

def _reduce_494(val, _values, result)
                      result = [ val[0], *val[2] ]
                    
    result
end

#_reduce_495(val, _values, result) ⇒ Object



6746
6747
6748
6749
6750
# File 'lib/parser/ruby28.rb', line 6746

def _reduce_495(val, _values, result)
                      result = [ val[0], *val[2], val[4] ]
                    
    result
end

#_reduce_496(val, _values, result) ⇒ Object



6752
6753
6754
6755
6756
# File 'lib/parser/ruby28.rb', line 6752

def _reduce_496(val, _values, result)
                      result = @builder.match_rest(val[0], val[1])
                    
    result
end

#_reduce_497(val, _values, result) ⇒ Object



6758
6759
6760
6761
6762
# File 'lib/parser/ruby28.rb', line 6758

def _reduce_497(val, _values, result)
                      result = @builder.match_rest(val[0])
                    
    result
end

#_reduce_498(val, _values, result) ⇒ Object



6764
6765
6766
6767
6768
# File 'lib/parser/ruby28.rb', line 6764

def _reduce_498(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_499(val, _values, result) ⇒ Object



6770
6771
6772
6773
6774
# File 'lib/parser/ruby28.rb', line 6770

def _reduce_499(val, _values, result)
                      result = [ *val[0], val[2] ]
                    
    result
end

#_reduce_5(val, _values, result) ⇒ Object



3940
3941
3942
3943
3944
# File 'lib/parser/ruby28.rb', line 3940

def _reduce_5(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_50(val, _values, result) ⇒ Object

reduce 49 omitted



4227
4228
4229
4230
4231
4232
4233
4234
4235
# File 'lib/parser/ruby28.rb', line 4227

def _reduce_50(val, _values, result)
                      rescue_body = @builder.rescue_body(val[1],
                                        nil, nil, nil,
                                        nil, val[2])

                      result = @builder.begin_body(val[0], [ rescue_body ])
                    
    result
end

#_reduce_501(val, _values, result) ⇒ Object

reduce 500 omitted



6778
6779
6780
6781
6782
# File 'lib/parser/ruby28.rb', line 6778

def _reduce_501(val, _values, result)
                      result = [ *val[0], *val[2] ]
                    
    result
end

#_reduce_502(val, _values, result) ⇒ Object



6784
6785
6786
6787
6788
# File 'lib/parser/ruby28.rb', line 6784

def _reduce_502(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_503(val, _values, result) ⇒ Object



6790
6791
6792
6793
6794
# File 'lib/parser/ruby28.rb', line 6790

def _reduce_503(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_504(val, _values, result) ⇒ Object



6796
6797
6798
6799
6800
# File 'lib/parser/ruby28.rb', line 6796

def _reduce_504(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_505(val, _values, result) ⇒ Object



6802
6803
6804
6805
6806
# File 'lib/parser/ruby28.rb', line 6802

def _reduce_505(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_506(val, _values, result) ⇒ Object



6808
6809
6810
6811
6812
# File 'lib/parser/ruby28.rb', line 6808

def _reduce_506(val, _values, result)
                      result = [ *val[0], val[2] ]
                    
    result
end

#_reduce_507(val, _values, result) ⇒ Object



6814
6815
6816
6817
6818
# File 'lib/parser/ruby28.rb', line 6814

def _reduce_507(val, _values, result)
                      result = @builder.match_pair(*val[0], val[1])
                    
    result
end

#_reduce_508(val, _values, result) ⇒ Object



6820
6821
6822
6823
6824
# File 'lib/parser/ruby28.rb', line 6820

def _reduce_508(val, _values, result)
                      result = @builder.match_label(*val[0])
                    
    result
end

#_reduce_509(val, _values, result) ⇒ Object



6826
6827
6828
6829
6830
6831
# File 'lib/parser/ruby28.rb', line 6826

def _reduce_509(val, _values, result)
                    check_kwarg_name(val[0])
                    result = [:label, val[0]]
                  
    result
end

#_reduce_510(val, _values, result) ⇒ Object



6833
6834
6835
6836
6837
# File 'lib/parser/ruby28.rb', line 6833

def _reduce_510(val, _values, result)
                    result = [:quoted, [val[0], val[1], val[2]]]
                  
    result
end

#_reduce_511(val, _values, result) ⇒ Object



6839
6840
6841
6842
6843
# File 'lib/parser/ruby28.rb', line 6839

def _reduce_511(val, _values, result)
                      result = [ @builder.match_rest(val[0], val[1]) ]
                    
    result
end

#_reduce_512(val, _values, result) ⇒ Object



6845
6846
6847
6848
6849
# File 'lib/parser/ruby28.rb', line 6845

def _reduce_512(val, _values, result)
                      result = [ @builder.match_rest(val[0], nil) ]
                    
    result
end

#_reduce_513(val, _values, result) ⇒ Object



6851
6852
6853
6854
6855
# File 'lib/parser/ruby28.rb', line 6851

def _reduce_513(val, _values, result)
                      result = [ @builder.match_nil_pattern(val[0], val[1]) ]
                    
    result
end

#_reduce_517(val, _values, result) ⇒ Object

reduce 516 omitted



6863
6864
6865
6866
6867
# File 'lib/parser/ruby28.rb', line 6863

def _reduce_517(val, _values, result)
                      result = @builder.range_inclusive(val[0], val[1], val[2])
                    
    result
end

#_reduce_518(val, _values, result) ⇒ Object



6869
6870
6871
6872
6873
# File 'lib/parser/ruby28.rb', line 6869

def _reduce_518(val, _values, result)
                      result = @builder.range_exclusive(val[0], val[1], val[2])
                    
    result
end

#_reduce_519(val, _values, result) ⇒ Object



6875
6876
6877
6878
6879
# File 'lib/parser/ruby28.rb', line 6875

def _reduce_519(val, _values, result)
                      result = @builder.range_inclusive(val[0], val[1], nil)
                    
    result
end

#_reduce_520(val, _values, result) ⇒ Object



6881
6882
6883
6884
6885
# File 'lib/parser/ruby28.rb', line 6881

def _reduce_520(val, _values, result)
                      result = @builder.range_exclusive(val[0], val[1], nil)
                    
    result
end

#_reduce_524(val, _values, result) ⇒ Object

reduce 523 omitted



6893
6894
6895
6896
6897
# File 'lib/parser/ruby28.rb', line 6893

def _reduce_524(val, _values, result)
                      result = @builder.range_inclusive(nil, val[0], val[1])
                    
    result
end

#_reduce_525(val, _values, result) ⇒ Object



6899
6900
6901
6902
6903
# File 'lib/parser/ruby28.rb', line 6899

def _reduce_525(val, _values, result)
                      result = @builder.range_exclusive(nil, val[0], val[1])
                    
    result
end

#_reduce_53(val, _values, result) ⇒ Object

reduce 52 omitted



4241
4242
4243
4244
4245
# File 'lib/parser/ruby28.rb', line 4241

def _reduce_53(val, _values, result)
                      result = @builder.logical_op(:and, val[0], val[1], val[2])
                    
    result
end

#_reduce_534(val, _values, result) ⇒ Object

reduce 533 omitted



6921
6922
6923
6924
6925
# File 'lib/parser/ruby28.rb', line 6921

def _reduce_534(val, _values, result)
                      result = @builder.accessible(val[0])
                    
    result
end

#_reduce_536(val, _values, result) ⇒ Object

reduce 535 omitted



6929
6930
6931
6932
6933
# File 'lib/parser/ruby28.rb', line 6929

def _reduce_536(val, _values, result)
                      result = @builder.match_var(val[0])
                    
    result
end

#_reduce_537(val, _values, result) ⇒ Object



6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
# File 'lib/parser/ruby28.rb', line 6935

def _reduce_537(val, _values, result)
                      name = val[1][0]
                      unless static_env.declared?(name)
                        diagnostic :error, :undefined_lvar, { :name => name }, val[1]
                      end

                      lvar = @builder.accessible(@builder.ident(val[1]))
                      result = @builder.pin(val[0], lvar)
                    
    result
end

#_reduce_538(val, _values, result) ⇒ Object



6947
6948
6949
6950
6951
# File 'lib/parser/ruby28.rb', line 6947

def _reduce_538(val, _values, result)
                      result = @builder.const_global(val[0], val[1])
                    
    result
end

#_reduce_539(val, _values, result) ⇒ Object



6953
6954
6955
6956
6957
# File 'lib/parser/ruby28.rb', line 6953

def _reduce_539(val, _values, result)
                      result = @builder.const_fetch(val[0], val[1], val[2])
                    
    result
end

#_reduce_54(val, _values, result) ⇒ Object



4247
4248
4249
4250
4251
# File 'lib/parser/ruby28.rb', line 4247

def _reduce_54(val, _values, result)
                      result = @builder.logical_op(:or, val[0], val[1], val[2])
                    
    result
end

#_reduce_540(val, _values, result) ⇒ Object



6959
6960
6961
6962
6963
# File 'lib/parser/ruby28.rb', line 6959

def _reduce_540(val, _values, result)
                      result = @builder.const(val[0])
                   
    result
end

#_reduce_541(val, _values, result) ⇒ Object



6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
# File 'lib/parser/ruby28.rb', line 6965

def _reduce_541(val, _values, result)
                      assoc_t, exc_var = val[2]

                      if val[1]
                        exc_list = @builder.array(nil, val[1], nil)
                      end

                      result = [ @builder.rescue_body(val[0],
                                      exc_list, assoc_t, exc_var,
                                      val[3], val[4]),
                                 *val[5] ]
                    
    result
end

#_reduce_542(val, _values, result) ⇒ Object



6980
6981
6982
6983
6984
# File 'lib/parser/ruby28.rb', line 6980

def _reduce_542(val, _values, result)
                      result = []
                    
    result
end

#_reduce_543(val, _values, result) ⇒ Object



6986
6987
6988
6989
6990
# File 'lib/parser/ruby28.rb', line 6986

def _reduce_543(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_546(val, _values, result) ⇒ Object

reduce 545 omitted



6996
6997
6998
6999
7000
# File 'lib/parser/ruby28.rb', line 6996

def _reduce_546(val, _values, result)
                      result = [ val[0], val[1] ]
                    
    result
end

#_reduce_548(val, _values, result) ⇒ Object

reduce 547 omitted



7004
7005
7006
7007
7008
# File 'lib/parser/ruby28.rb', line 7004

def _reduce_548(val, _values, result)
                      result = [ val[0], val[1] ]
                    
    result
end

#_reduce_55(val, _values, result) ⇒ Object



4253
4254
4255
4256
4257
# File 'lib/parser/ruby28.rb', line 4253

def _reduce_55(val, _values, result)
                      result = @builder.not_op(val[0], nil, val[2], nil)
                    
    result
end

#_reduce_552(val, _values, result) ⇒ Object

reduce 551 omitted



7016
7017
7018
7019
7020
# File 'lib/parser/ruby28.rb', line 7016

def _reduce_552(val, _values, result)
                      result = @builder.string_compose(nil, val[0], nil)
                    
    result
end

#_reduce_553(val, _values, result) ⇒ Object



7022
7023
7024
7025
7026
# File 'lib/parser/ruby28.rb', line 7022

def _reduce_553(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_554(val, _values, result) ⇒ Object



7028
7029
7030
7031
7032
# File 'lib/parser/ruby28.rb', line 7028

def _reduce_554(val, _values, result)
                      result = val[0] << val[1]
                    
    result
end

#_reduce_555(val, _values, result) ⇒ Object



7034
7035
7036
7037
7038
7039
# File 'lib/parser/ruby28.rb', line 7034

def _reduce_555(val, _values, result)
                      string = @builder.string_compose(val[0], val[1], val[2])
                      result = @builder.dedent_string(string, @lexer.dedent_level)
                    
    result
end

#_reduce_556(val, _values, result) ⇒ Object



7041
7042
7043
7044
7045
7046
# File 'lib/parser/ruby28.rb', line 7041

def _reduce_556(val, _values, result)
                      string = @builder.string(val[0])
                      result = @builder.dedent_string(string, @lexer.dedent_level)
                    
    result
end

#_reduce_557(val, _values, result) ⇒ Object



7048
7049
7050
7051
7052
# File 'lib/parser/ruby28.rb', line 7048

def _reduce_557(val, _values, result)
                      result = @builder.character(val[0])
                    
    result
end

#_reduce_558(val, _values, result) ⇒ Object



7054
7055
7056
7057
7058
7059
# File 'lib/parser/ruby28.rb', line 7054

def _reduce_558(val, _values, result)
                      string = @builder.xstring_compose(val[0], val[1], val[2])
                      result = @builder.dedent_string(string, @lexer.dedent_level)
                    
    result
end

#_reduce_559(val, _values, result) ⇒ Object



7061
7062
7063
7064
7065
7066
# File 'lib/parser/ruby28.rb', line 7061

def _reduce_559(val, _values, result)
                      opts   = @builder.regexp_options(val[3])
                      result = @builder.regexp_compose(val[0], val[1], val[2], opts)
                    
    result
end

#_reduce_56(val, _values, result) ⇒ Object



4259
4260
4261
4262
4263
# File 'lib/parser/ruby28.rb', line 4259

def _reduce_56(val, _values, result)
                      result = @builder.not_op(val[0], nil, val[1], nil)
                    
    result
end

#_reduce_560(val, _values, result) ⇒ Object



7068
7069
7070
7071
7072
# File 'lib/parser/ruby28.rb', line 7068

def _reduce_560(val, _values, result)
                      result = @builder.words_compose(val[0], val[1], val[2])
                    
    result
end

#_reduce_561(val, _values, result) ⇒ Object



7074
7075
7076
7077
7078
# File 'lib/parser/ruby28.rb', line 7074

def _reduce_561(val, _values, result)
                      result = []
                    
    result
end

#_reduce_562(val, _values, result) ⇒ Object



7080
7081
7082
7083
7084
# File 'lib/parser/ruby28.rb', line 7080

def _reduce_562(val, _values, result)
                      result = val[0] << @builder.word(val[1])
                    
    result
end

#_reduce_563(val, _values, result) ⇒ Object



7086
7087
7088
7089
7090
# File 'lib/parser/ruby28.rb', line 7086

def _reduce_563(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_564(val, _values, result) ⇒ Object



7092
7093
7094
7095
7096
# File 'lib/parser/ruby28.rb', line 7092

def _reduce_564(val, _values, result)
                      result = val[0] << val[1]
                    
    result
end

#_reduce_565(val, _values, result) ⇒ Object



7098
7099
7100
7101
7102
# File 'lib/parser/ruby28.rb', line 7098

def _reduce_565(val, _values, result)
                      result = @builder.symbols_compose(val[0], val[1], val[2])
                    
    result
end

#_reduce_566(val, _values, result) ⇒ Object



7104
7105
7106
7107
7108
# File 'lib/parser/ruby28.rb', line 7104

def _reduce_566(val, _values, result)
                      result = []
                    
    result
end

#_reduce_567(val, _values, result) ⇒ Object



7110
7111
7112
7113
7114
# File 'lib/parser/ruby28.rb', line 7110

def _reduce_567(val, _values, result)
                      result = val[0] << @builder.word(val[1])
                    
    result
end

#_reduce_568(val, _values, result) ⇒ Object



7116
7117
7118
7119
7120
# File 'lib/parser/ruby28.rb', line 7116

def _reduce_568(val, _values, result)
                      result = @builder.words_compose(val[0], val[1], val[2])
                    
    result
end

#_reduce_569(val, _values, result) ⇒ Object



7122
7123
7124
7125
7126
# File 'lib/parser/ruby28.rb', line 7122

def _reduce_569(val, _values, result)
                      result = @builder.symbols_compose(val[0], val[1], val[2])
                    
    result
end

#_reduce_57(val, _values, result) ⇒ Object



4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
# File 'lib/parser/ruby28.rb', line 4265

def _reduce_57(val, _values, result)
                      @lexer.state = :expr_beg
                      @lexer.command_start = false
                      pattern_variables.push

                      result = @lexer.in_kwarg
                      @lexer.in_kwarg = true
                    
    result
end

#_reduce_570(val, _values, result) ⇒ Object



7128
7129
7130
7131
7132
# File 'lib/parser/ruby28.rb', line 7128

def _reduce_570(val, _values, result)
                      result = []
                    
    result
end

#_reduce_571(val, _values, result) ⇒ Object



7134
7135
7136
7137
7138
# File 'lib/parser/ruby28.rb', line 7134

def _reduce_571(val, _values, result)
                      result = val[0] << @builder.string_internal(val[1])
                    
    result
end

#_reduce_572(val, _values, result) ⇒ Object



7140
7141
7142
7143
7144
# File 'lib/parser/ruby28.rb', line 7140

def _reduce_572(val, _values, result)
                      result = []
                    
    result
end

#_reduce_573(val, _values, result) ⇒ Object



7146
7147
7148
7149
7150
# File 'lib/parser/ruby28.rb', line 7146

def _reduce_573(val, _values, result)
                      result = val[0] << @builder.symbol_internal(val[1])
                    
    result
end

#_reduce_574(val, _values, result) ⇒ Object



7152
7153
7154
7155
7156
# File 'lib/parser/ruby28.rb', line 7152

def _reduce_574(val, _values, result)
                      result = []
                    
    result
end

#_reduce_575(val, _values, result) ⇒ Object



7158
7159
7160
7161
7162
# File 'lib/parser/ruby28.rb', line 7158

def _reduce_575(val, _values, result)
                      result = val[0] << val[1]
                    
    result
end

#_reduce_576(val, _values, result) ⇒ Object



7164
7165
7166
7167
7168
# File 'lib/parser/ruby28.rb', line 7164

def _reduce_576(val, _values, result)
                      result = []
                    
    result
end

#_reduce_577(val, _values, result) ⇒ Object



7170
7171
7172
7173
7174
# File 'lib/parser/ruby28.rb', line 7170

def _reduce_577(val, _values, result)
                      result = val[0] << val[1]
                    
    result
end

#_reduce_578(val, _values, result) ⇒ Object



7176
7177
7178
7179
7180
# File 'lib/parser/ruby28.rb', line 7176

def _reduce_578(val, _values, result)
                      result = []
                    
    result
end

#_reduce_579(val, _values, result) ⇒ Object



7182
7183
7184
7185
7186
# File 'lib/parser/ruby28.rb', line 7182

def _reduce_579(val, _values, result)
                      result = val[0] << val[1]
                    
    result
end

#_reduce_58(val, _values, result) ⇒ Object



4276
4277
4278
4279
4280
4281
# File 'lib/parser/ruby28.rb', line 4276

def _reduce_58(val, _values, result)
                      @lexer.in_kwarg = val[2]
                      result = @builder.in_match(val[0], val[1], val[3])
                    
    result
end

#_reduce_580(val, _values, result) ⇒ Object



7188
7189
7190
7191
7192
# File 'lib/parser/ruby28.rb', line 7188

def _reduce_580(val, _values, result)
                      result = @builder.string_internal(val[0])
                    
    result
end

#_reduce_581(val, _values, result) ⇒ Object



7194
7195
7196
7197
7198
# File 'lib/parser/ruby28.rb', line 7194

def _reduce_581(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_582(val, _values, result) ⇒ Object



7200
7201
7202
7203
7204
7205
# File 'lib/parser/ruby28.rb', line 7200

def _reduce_582(val, _values, result)
                      @lexer.cmdarg.push(false)
                      @lexer.cond.push(false)
                    
    result
end

#_reduce_583(val, _values, result) ⇒ Object



7207
7208
7209
7210
7211
7212
7213
7214
# File 'lib/parser/ruby28.rb', line 7207

def _reduce_583(val, _values, result)
                      @lexer.cmdarg.pop
                      @lexer.cond.pop

                      result = @builder.begin(val[0], val[2], val[3])
                    
    result
end

#_reduce_584(val, _values, result) ⇒ Object



7216
7217
7218
7219
7220
# File 'lib/parser/ruby28.rb', line 7216

def _reduce_584(val, _values, result)
                      result = @builder.gvar(val[0])
                    
    result
end

#_reduce_585(val, _values, result) ⇒ Object



7222
7223
7224
7225
7226
# File 'lib/parser/ruby28.rb', line 7222

def _reduce_585(val, _values, result)
                      result = @builder.ivar(val[0])
                    
    result
end

#_reduce_586(val, _values, result) ⇒ Object



7228
7229
7230
7231
7232
# File 'lib/parser/ruby28.rb', line 7228

def _reduce_586(val, _values, result)
                      result = @builder.cvar(val[0])
                    
    result
end

#_reduce_590(val, _values, result) ⇒ Object

reduce 589 omitted



7240
7241
7242
7243
7244
7245
# File 'lib/parser/ruby28.rb', line 7240

def _reduce_590(val, _values, result)
                      @lexer.state = :expr_end
                      result = @builder.symbol(val[0])
                    
    result
end

#_reduce_591(val, _values, result) ⇒ Object



7247
7248
7249
7250
7251
7252
# File 'lib/parser/ruby28.rb', line 7247

def _reduce_591(val, _values, result)
                      @lexer.state = :expr_end
                      result = @builder.symbol_compose(val[0], val[1], val[2])
                    
    result
end

#_reduce_592(val, _values, result) ⇒ Object



7254
7255
7256
7257
7258
# File 'lib/parser/ruby28.rb', line 7254

def _reduce_592(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_593(val, _values, result) ⇒ Object



7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
# File 'lib/parser/ruby28.rb', line 7260

def _reduce_593(val, _values, result)
                      if @builder.respond_to? :negate
                        # AST builder interface compatibility
                        result = @builder.negate(val[0], val[1])
                      else
                        result = @builder.unary_num(val[0], val[1])
                      end
                    
    result
end

#_reduce_594(val, _values, result) ⇒ Object



7271
7272
7273
7274
7275
7276
# File 'lib/parser/ruby28.rb', line 7271

def _reduce_594(val, _values, result)
                      @lexer.state = :expr_end
                      result = @builder.integer(val[0])
                    
    result
end

#_reduce_595(val, _values, result) ⇒ Object



7278
7279
7280
7281
7282
7283
# File 'lib/parser/ruby28.rb', line 7278

def _reduce_595(val, _values, result)
                      @lexer.state = :expr_end
                      result = @builder.float(val[0])
                    
    result
end

#_reduce_596(val, _values, result) ⇒ Object



7285
7286
7287
7288
7289
7290
# File 'lib/parser/ruby28.rb', line 7285

def _reduce_596(val, _values, result)
                      @lexer.state = :expr_end
                      result = @builder.rational(val[0])
                    
    result
end

#_reduce_597(val, _values, result) ⇒ Object



7292
7293
7294
7295
7296
7297
# File 'lib/parser/ruby28.rb', line 7292

def _reduce_597(val, _values, result)
                      @lexer.state = :expr_end
                      result = @builder.complex(val[0])
                    
    result
end

#_reduce_598(val, _values, result) ⇒ Object



7299
7300
7301
7302
7303
# File 'lib/parser/ruby28.rb', line 7299

def _reduce_598(val, _values, result)
                      result = @builder.ident(val[0])
                    
    result
end

#_reduce_599(val, _values, result) ⇒ Object



7305
7306
7307
7308
7309
# File 'lib/parser/ruby28.rb', line 7305

def _reduce_599(val, _values, result)
                      result = @builder.ivar(val[0])
                    
    result
end

#_reduce_6(val, _values, result) ⇒ Object



3946
3947
3948
3949
3950
# File 'lib/parser/ruby28.rb', line 3946

def _reduce_6(val, _values, result)
                      result = [ val[1] ]
                    
    result
end

#_reduce_600(val, _values, result) ⇒ Object



7311
7312
7313
7314
7315
# File 'lib/parser/ruby28.rb', line 7311

def _reduce_600(val, _values, result)
                      result = @builder.gvar(val[0])
                    
    result
end

#_reduce_601(val, _values, result) ⇒ Object



7317
7318
7319
7320
7321
# File 'lib/parser/ruby28.rb', line 7317

def _reduce_601(val, _values, result)
                      result = @builder.const(val[0])
                    
    result
end

#_reduce_602(val, _values, result) ⇒ Object



7323
7324
7325
7326
7327
# File 'lib/parser/ruby28.rb', line 7323

def _reduce_602(val, _values, result)
                      result = @builder.cvar(val[0])
                    
    result
end

#_reduce_603(val, _values, result) ⇒ Object



7329
7330
7331
7332
7333
# File 'lib/parser/ruby28.rb', line 7329

def _reduce_603(val, _values, result)
                      result = @builder.nil(val[0])
                    
    result
end

#_reduce_604(val, _values, result) ⇒ Object



7335
7336
7337
7338
7339
# File 'lib/parser/ruby28.rb', line 7335

def _reduce_604(val, _values, result)
                      result = @builder.self(val[0])
                    
    result
end

#_reduce_605(val, _values, result) ⇒ Object



7341
7342
7343
7344
7345
# File 'lib/parser/ruby28.rb', line 7341

def _reduce_605(val, _values, result)
                      result = @builder.true(val[0])
                    
    result
end

#_reduce_606(val, _values, result) ⇒ Object



7347
7348
7349
7350
7351
# File 'lib/parser/ruby28.rb', line 7347

def _reduce_606(val, _values, result)
                      result = @builder.false(val[0])
                    
    result
end

#_reduce_607(val, _values, result) ⇒ Object



7353
7354
7355
7356
7357
# File 'lib/parser/ruby28.rb', line 7353

def _reduce_607(val, _values, result)
                      result = @builder.__FILE__(val[0])
                    
    result
end

#_reduce_608(val, _values, result) ⇒ Object



7359
7360
7361
7362
7363
# File 'lib/parser/ruby28.rb', line 7359

def _reduce_608(val, _values, result)
                      result = @builder.__LINE__(val[0])
                    
    result
end

#_reduce_609(val, _values, result) ⇒ Object



7365
7366
7367
7368
7369
# File 'lib/parser/ruby28.rb', line 7365

def _reduce_609(val, _values, result)
                      result = @builder.__ENCODING__(val[0])
                    
    result
end

#_reduce_61(val, _values, result) ⇒ Object

reduce 60 omitted



4287
4288
4289
4290
4291
# File 'lib/parser/ruby28.rb', line 4287

def _reduce_61(val, _values, result)
                      @lexer.cond.push(true)
                    
    result
end

#_reduce_610(val, _values, result) ⇒ Object



7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
# File 'lib/parser/ruby28.rb', line 7371

def _reduce_610(val, _values, result)
                      if (node = val[0]) && node.type == :ident
                        name = node.children[0]

                        if name =~ /\A_[1-9]\z/ && !static_env.declared?(name) && context.in_dynamic_block?
                          # definitely an implicit param
                          location = node.loc.expression

                          if max_numparam_stack.has_ordinary_params?
                            diagnostic :error, :ordinary_param_defined, nil, [nil, location]
                          end

                          raw_context = context.stack.dup
                          raw_max_numparam_stack = max_numparam_stack.stack.dup

                          # ignore current block scope
                          raw_context.pop
                          raw_max_numparam_stack.pop

                          raw_context.reverse_each do |outer_scope|
                            if outer_scope == :block || outer_scope == :lambda
                              outer_scope_has_numparams = raw_max_numparam_stack.pop > 0

                              if outer_scope_has_numparams
                                diagnostic :error, :numparam_used_in_outer_scope, nil, [nil, location]
                              else
                                # for now it's ok, but an outer scope can also be a block
                                # with numparams, so we need to continue
                              end
                            else
                              # found an outer scope that can't have numparams
                              # like def/class/etc
                              break
                            end
                          end

                          static_env.declare(name)
                          max_numparam_stack.register(name[1].to_i)
                        end
                      end

                      result = @builder.accessible(val[0])
                    
    result
end

#_reduce_611(val, _values, result) ⇒ Object



7417
7418
7419
7420
7421
# File 'lib/parser/ruby28.rb', line 7417

def _reduce_611(val, _values, result)
                      result = @builder.accessible(val[0])
                    
    result
end

#_reduce_612(val, _values, result) ⇒ Object



7423
7424
7425
7426
7427
# File 'lib/parser/ruby28.rb', line 7423

def _reduce_612(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_613(val, _values, result) ⇒ Object



7429
7430
7431
7432
7433
# File 'lib/parser/ruby28.rb', line 7429

def _reduce_613(val, _values, result)
                      result = @builder.assignable(val[0])
                    
    result
end

#_reduce_614(val, _values, result) ⇒ Object



7435
7436
7437
7438
7439
# File 'lib/parser/ruby28.rb', line 7435

def _reduce_614(val, _values, result)
                      result = @builder.nth_ref(val[0])
                    
    result
end

#_reduce_615(val, _values, result) ⇒ Object



7441
7442
7443
7444
7445
# File 'lib/parser/ruby28.rb', line 7441

def _reduce_615(val, _values, result)
                      result = @builder.back_ref(val[0])
                    
    result
end

#_reduce_616(val, _values, result) ⇒ Object



7447
7448
7449
7450
7451
# File 'lib/parser/ruby28.rb', line 7447

def _reduce_616(val, _values, result)
                      @lexer.state = :expr_value
                    
    result
end

#_reduce_617(val, _values, result) ⇒ Object



7453
7454
7455
7456
7457
# File 'lib/parser/ruby28.rb', line 7453

def _reduce_617(val, _values, result)
                      result = [ val[0], val[2] ]
                    
    result
end

#_reduce_618(val, _values, result) ⇒ Object



7459
7460
7461
7462
7463
# File 'lib/parser/ruby28.rb', line 7459

def _reduce_618(val, _values, result)
                      result = nil
                    
    result
end

#_reduce_619(val, _values, result) ⇒ Object



7465
7466
7467
7468
7469
7470
7471
# File 'lib/parser/ruby28.rb', line 7465

def _reduce_619(val, _values, result)
                      result = @builder.args(val[0], val[1], val[2])

                      @lexer.state = :expr_value
                    
    result
end

#_reduce_62(val, _values, result) ⇒ Object



4293
4294
4295
4296
4297
4298
# File 'lib/parser/ruby28.rb', line 4293

def _reduce_62(val, _values, result)
                      @lexer.cond.pop
                      result = [ val[1], val[2] ]
                    
    result
end

#_reduce_620(val, _values, result) ⇒ Object



7473
7474
7475
7476
7477
7478
7479
7480
# File 'lib/parser/ruby28.rb', line 7473

def _reduce_620(val, _values, result)
                      args = [ *val[1], @builder.forward_arg(val[3]) ]
                      result = @builder.args(val[0], args, val[4])

                      @static_env.declare_forward_args
                    
    result
end

#_reduce_621(val, _values, result) ⇒ Object



7482
7483
7484
7485
7486
7487
7488
7489
# File 'lib/parser/ruby28.rb', line 7482

def _reduce_621(val, _values, result)
                      result = @builder.forward_only_args(val[0], val[1], val[2])
                      @static_env.declare_forward_args

                      @lexer.state = :expr_value
                    
    result
end

#_reduce_623(val, _values, result) ⇒ Object

reduce 622 omitted



7493
7494
7495
7496
7497
7498
# File 'lib/parser/ruby28.rb', line 7493

def _reduce_623(val, _values, result)
                      result = @lexer.in_kwarg
                      @lexer.in_kwarg = true
                    
    result
end

#_reduce_624(val, _values, result) ⇒ Object



7500
7501
7502
7503
7504
7505
# File 'lib/parser/ruby28.rb', line 7500

def _reduce_624(val, _values, result)
                      @lexer.in_kwarg = val[0]
                      result = @builder.args(nil, val[1], nil)
                    
    result
end

#_reduce_625(val, _values, result) ⇒ Object



7507
7508
7509
7510
7511
# File 'lib/parser/ruby28.rb', line 7507

def _reduce_625(val, _values, result)
                      result = val[0].concat(val[2]).concat(val[3])
                    
    result
end

#_reduce_626(val, _values, result) ⇒ Object



7513
7514
7515
7516
7517
# File 'lib/parser/ruby28.rb', line 7513

def _reduce_626(val, _values, result)
                      result = val[0].concat(val[1])
                    
    result
end

#_reduce_627(val, _values, result) ⇒ Object



7519
7520
7521
7522
7523
# File 'lib/parser/ruby28.rb', line 7519

def _reduce_627(val, _values, result)
                      result = val[0].concat(val[1])
                    
    result
end

#_reduce_628(val, _values, result) ⇒ Object



7525
7526
7527
7528
7529
# File 'lib/parser/ruby28.rb', line 7525

def _reduce_628(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_629(val, _values, result) ⇒ Object



7531
7532
7533
7534
7535
# File 'lib/parser/ruby28.rb', line 7531

def _reduce_629(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_63(val, _values, result) ⇒ Object



4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
# File 'lib/parser/ruby28.rb', line 4300

def _reduce_63(val, _values, result)
                      @static_env.extend_static
                      @lexer.cmdarg.push(false)
                      @lexer.cond.push(false)
                      @current_arg_stack.push(nil)

                      result = val[0]
                    
    result
end

#_reduce_630(val, _values, result) ⇒ Object



7537
7538
7539
7540
7541
# File 'lib/parser/ruby28.rb', line 7537

def _reduce_630(val, _values, result)
                      result = []
                    
    result
end

#_reduce_631(val, _values, result) ⇒ Object



7543
7544
7545
7546
7547
7548
7549
7550
# File 'lib/parser/ruby28.rb', line 7543

def _reduce_631(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_632(val, _values, result) ⇒ Object



7552
7553
7554
7555
7556
7557
7558
7559
7560
# File 'lib/parser/ruby28.rb', line 7552

def _reduce_632(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[6]).
                                  concat(val[7])
                    
    result
end

#_reduce_633(val, _values, result) ⇒ Object



7562
7563
7564
7565
7566
7567
7568
# File 'lib/parser/ruby28.rb', line 7562

def _reduce_633(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_634(val, _values, result) ⇒ Object



7570
7571
7572
7573
7574
7575
7576
7577
# File 'lib/parser/ruby28.rb', line 7570

def _reduce_634(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_635(val, _values, result) ⇒ Object



7579
7580
7581
7582
7583
7584
7585
# File 'lib/parser/ruby28.rb', line 7579

def _reduce_635(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_636(val, _values, result) ⇒ Object



7587
7588
7589
7590
7591
7592
7593
7594
# File 'lib/parser/ruby28.rb', line 7587

def _reduce_636(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_637(val, _values, result) ⇒ Object



7596
7597
7598
7599
7600
7601
# File 'lib/parser/ruby28.rb', line 7596

def _reduce_637(val, _values, result)
                      result = val[0].
                                  concat(val[1])
                    
    result
end

#_reduce_638(val, _values, result) ⇒ Object



7603
7604
7605
7606
7607
7608
7609
# File 'lib/parser/ruby28.rb', line 7603

def _reduce_638(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_639(val, _values, result) ⇒ Object



7611
7612
7613
7614
7615
7616
7617
7618
# File 'lib/parser/ruby28.rb', line 7611

def _reduce_639(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[4]).
                                  concat(val[5])
                    
    result
end

#_reduce_64(val, _values, result) ⇒ Object



4311
4312
4313
4314
4315
4316
4317
# File 'lib/parser/ruby28.rb', line 4311

def _reduce_64(val, _values, result)
                      @context.push(:def)

                      result = [ val[0], val[1] ]
                    
    result
end

#_reduce_640(val, _values, result) ⇒ Object



7620
7621
7622
7623
7624
7625
# File 'lib/parser/ruby28.rb', line 7620

def _reduce_640(val, _values, result)
                      result = val[0].
                                  concat(val[1])
                    
    result
end

#_reduce_641(val, _values, result) ⇒ Object



7627
7628
7629
7630
7631
7632
7633
# File 'lib/parser/ruby28.rb', line 7627

def _reduce_641(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_642(val, _values, result) ⇒ Object



7635
7636
7637
7638
7639
7640
# File 'lib/parser/ruby28.rb', line 7635

def _reduce_642(val, _values, result)
                      result = val[0].
                                  concat(val[1])
                    
    result
end

#_reduce_643(val, _values, result) ⇒ Object



7642
7643
7644
7645
7646
7647
7648
# File 'lib/parser/ruby28.rb', line 7642

def _reduce_643(val, _values, result)
                      result = val[0].
                                  concat(val[2]).
                                  concat(val[3])
                    
    result
end

#_reduce_644(val, _values, result) ⇒ Object



7650
7651
7652
7653
7654
# File 'lib/parser/ruby28.rb', line 7650

def _reduce_644(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_645(val, _values, result) ⇒ Object



7656
7657
7658
7659
7660
# File 'lib/parser/ruby28.rb', line 7656

def _reduce_645(val, _values, result)
                      result = []
                    
    result
end

#_reduce_646(val, _values, result) ⇒ Object



7662
7663
7664
7665
7666
# File 'lib/parser/ruby28.rb', line 7662

def _reduce_646(val, _values, result)
                      result = val[0]
                    
    result
end

#_reduce_647(val, _values, result) ⇒ Object



7668
7669
7670
7671
7672
# File 'lib/parser/ruby28.rb', line 7668

def _reduce_647(val, _values, result)
                      diagnostic :error, :argument_const, nil, val[0]
                    
    result
end

#_reduce_648(val, _values, result) ⇒ Object



7674
7675
7676
7677
7678
# File 'lib/parser/ruby28.rb', line 7674

def _reduce_648(val, _values, result)
                      diagnostic :error, :argument_ivar, nil, val[0]
                    
    result
end

#_reduce_649(val, _values, result) ⇒ Object



7680
7681
7682
7683
7684
# File 'lib/parser/ruby28.rb', line 7680

def _reduce_649(val, _values, result)
                      diagnostic :error, :argument_gvar, nil, val[0]
                    
    result
end

#_reduce_65(val, _values, result) ⇒ Object



4319
4320
4321
4322
4323
# File 'lib/parser/ruby28.rb', line 4319

def _reduce_65(val, _values, result)
                      @lexer.state = :expr_fname
                    
    result
end

#_reduce_650(val, _values, result) ⇒ Object



7686
7687
7688
7689
7690
# File 'lib/parser/ruby28.rb', line 7686

def _reduce_650(val, _values, result)
                      diagnostic :error, :argument_cvar, nil, val[0]
                    
    result
end

#_reduce_652(val, _values, result) ⇒ Object

reduce 651 omitted



7694
7695
7696
7697
7698
7699
7700
7701
7702
# File 'lib/parser/ruby28.rb', line 7694

def _reduce_652(val, _values, result)
                      @static_env.declare val[0][0]

                      @max_numparam_stack.has_ordinary_params!

                      result = val[0]
                    
    result
end

#_reduce_653(val, _values, result) ⇒ Object



7704
7705
7706
7707
7708
7709
# File 'lib/parser/ruby28.rb', line 7704

def _reduce_653(val, _values, result)
                      @current_arg_stack.set(val[0][0])
                      result = val[0]
                    
    result
end

#_reduce_654(val, _values, result) ⇒ Object



7711
7712
7713
7714
7715
7716
# File 'lib/parser/ruby28.rb', line 7711

def _reduce_654(val, _values, result)
                      @current_arg_stack.set(0)
                      result = @builder.arg(val[0])
                    
    result
end

#_reduce_655(val, _values, result) ⇒ Object



7718
7719
7720
7721
7722
# File 'lib/parser/ruby28.rb', line 7718

def _reduce_655(val, _values, result)
                      result = @builder.multi_lhs(val[0], val[1], val[2])
                    
    result
end

#_reduce_656(val, _values, result) ⇒ Object



7724
7725
7726
7727
7728
# File 'lib/parser/ruby28.rb', line 7724

def _reduce_656(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_657(val, _values, result) ⇒ Object



7730
7731
7732
7733
7734
# File 'lib/parser/ruby28.rb', line 7730

def _reduce_657(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_658(val, _values, result) ⇒ Object



7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
# File 'lib/parser/ruby28.rb', line 7736

def _reduce_658(val, _values, result)
                      check_kwarg_name(val[0])

                      @static_env.declare val[0][0]

                      @max_numparam_stack.has_ordinary_params!

                      @current_arg_stack.set(val[0][0])

                      result = val[0]
                    
    result
end

#_reduce_659(val, _values, result) ⇒ Object



7750
7751
7752
7753
7754
7755
# File 'lib/parser/ruby28.rb', line 7750

def _reduce_659(val, _values, result)
                      @current_arg_stack.set(nil)
                      result = @builder.kwoptarg(val[0], val[1])
                    
    result
end

#_reduce_66(val, _values, result) ⇒ Object



4325
4326
4327
4328
4329
4330
4331
# File 'lib/parser/ruby28.rb', line 4325

def _reduce_66(val, _values, result)
                      @context.push(:defs)

                      result = [ val[0], val[1], val[2], val[4] ]
                    
    result
end

#_reduce_660(val, _values, result) ⇒ Object



7757
7758
7759
7760
7761
7762
# File 'lib/parser/ruby28.rb', line 7757

def _reduce_660(val, _values, result)
                      @current_arg_stack.set(nil)
                      result = @builder.kwarg(val[0])
                    
    result
end

#_reduce_661(val, _values, result) ⇒ Object



7764
7765
7766
7767
7768
# File 'lib/parser/ruby28.rb', line 7764

def _reduce_661(val, _values, result)
                      result = @builder.kwoptarg(val[0], val[1])
                    
    result
end

#_reduce_662(val, _values, result) ⇒ Object



7770
7771
7772
7773
7774
# File 'lib/parser/ruby28.rb', line 7770

def _reduce_662(val, _values, result)
                      result = @builder.kwarg(val[0])
                    
    result
end

#_reduce_663(val, _values, result) ⇒ Object



7776
7777
7778
7779
7780
# File 'lib/parser/ruby28.rb', line 7776

def _reduce_663(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_664(val, _values, result) ⇒ Object



7782
7783
7784
7785
7786
# File 'lib/parser/ruby28.rb', line 7782

def _reduce_664(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_665(val, _values, result) ⇒ Object



7788
7789
7790
7791
7792
# File 'lib/parser/ruby28.rb', line 7788

def _reduce_665(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_666(val, _values, result) ⇒ Object



7794
7795
7796
7797
7798
# File 'lib/parser/ruby28.rb', line 7794

def _reduce_666(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_669(val, _values, result) ⇒ Object

reduce 668 omitted



7804
7805
7806
7807
7808
# File 'lib/parser/ruby28.rb', line 7804

def _reduce_669(val, _values, result)
                      result = [ @builder.kwnilarg(val[0], val[1]) ]
                    
    result
end

#_reduce_670(val, _values, result) ⇒ Object



7810
7811
7812
7813
7814
7815
7816
# File 'lib/parser/ruby28.rb', line 7810

def _reduce_670(val, _values, result)
                      @static_env.declare val[1][0]

                      result = [ @builder.kwrestarg(val[0], val[1]) ]
                    
    result
end

#_reduce_671(val, _values, result) ⇒ Object



7818
7819
7820
7821
7822
# File 'lib/parser/ruby28.rb', line 7818

def _reduce_671(val, _values, result)
                      result = [ @builder.kwrestarg(val[0]) ]
                    
    result
end

#_reduce_672(val, _values, result) ⇒ Object



7824
7825
7826
7827
7828
7829
# File 'lib/parser/ruby28.rb', line 7824

def _reduce_672(val, _values, result)
                      @current_arg_stack.set(0)
                      result = @builder.optarg(val[0], val[1], val[2])
                    
    result
end

#_reduce_673(val, _values, result) ⇒ Object



7831
7832
7833
7834
7835
7836
# File 'lib/parser/ruby28.rb', line 7831

def _reduce_673(val, _values, result)
                      @current_arg_stack.set(0)
                      result = @builder.optarg(val[0], val[1], val[2])
                    
    result
end

#_reduce_674(val, _values, result) ⇒ Object



7838
7839
7840
7841
7842
# File 'lib/parser/ruby28.rb', line 7838

def _reduce_674(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_675(val, _values, result) ⇒ Object



7844
7845
7846
7847
7848
# File 'lib/parser/ruby28.rb', line 7844

def _reduce_675(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_676(val, _values, result) ⇒ Object



7850
7851
7852
7853
7854
# File 'lib/parser/ruby28.rb', line 7850

def _reduce_676(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_677(val, _values, result) ⇒ Object



7856
7857
7858
7859
7860
# File 'lib/parser/ruby28.rb', line 7856

def _reduce_677(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_680(val, _values, result) ⇒ Object

reduce 679 omitted



7866
7867
7868
7869
7870
7871
7872
# File 'lib/parser/ruby28.rb', line 7866

def _reduce_680(val, _values, result)
                      @static_env.declare val[1][0]

                      result = [ @builder.restarg(val[0], val[1]) ]
                    
    result
end

#_reduce_681(val, _values, result) ⇒ Object



7874
7875
7876
7877
7878
# File 'lib/parser/ruby28.rb', line 7874

def _reduce_681(val, _values, result)
                      result = [ @builder.restarg(val[0]) ]
                    
    result
end

#_reduce_684(val, _values, result) ⇒ Object

reduce 683 omitted



7884
7885
7886
7887
7888
7889
7890
# File 'lib/parser/ruby28.rb', line 7884

def _reduce_684(val, _values, result)
                      @static_env.declare val[1][0]

                      result = @builder.blockarg(val[0], val[1])
                    
    result
end

#_reduce_685(val, _values, result) ⇒ Object



7892
7893
7894
7895
7896
# File 'lib/parser/ruby28.rb', line 7892

def _reduce_685(val, _values, result)
                      result = [ val[1] ]
                    
    result
end

#_reduce_686(val, _values, result) ⇒ Object



7898
7899
7900
7901
7902
# File 'lib/parser/ruby28.rb', line 7898

def _reduce_686(val, _values, result)
                      result = []
                    
    result
end

#_reduce_688(val, _values, result) ⇒ Object

reduce 687 omitted



7906
7907
7908
7909
7910
# File 'lib/parser/ruby28.rb', line 7906

def _reduce_688(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_689(val, _values, result) ⇒ Object



7912
7913
7914
7915
7916
# File 'lib/parser/ruby28.rb', line 7912

def _reduce_689(val, _values, result)
                      result = []
                    
    result
end

#_reduce_691(val, _values, result) ⇒ Object

reduce 690 omitted



7920
7921
7922
7923
7924
# File 'lib/parser/ruby28.rb', line 7920

def _reduce_691(val, _values, result)
                      result = [ val[0] ]
                    
    result
end

#_reduce_692(val, _values, result) ⇒ Object



7926
7927
7928
7929
7930
# File 'lib/parser/ruby28.rb', line 7926

def _reduce_692(val, _values, result)
                      result = val[0] << val[2]
                    
    result
end

#_reduce_693(val, _values, result) ⇒ Object



7932
7933
7934
7935
7936
# File 'lib/parser/ruby28.rb', line 7932

def _reduce_693(val, _values, result)
                      result = @builder.pair(val[0], val[1], val[2])
                    
    result
end

#_reduce_694(val, _values, result) ⇒ Object



7938
7939
7940
7941
7942
# File 'lib/parser/ruby28.rb', line 7938

def _reduce_694(val, _values, result)
                      result = @builder.pair_keyword(val[0], val[1])
                    
    result
end

#_reduce_695(val, _values, result) ⇒ Object



7944
7945
7946
7947
7948
# File 'lib/parser/ruby28.rb', line 7944

def _reduce_695(val, _values, result)
                      result = @builder.pair_quoted(val[0], val[1], val[2], val[3])
                    
    result
end

#_reduce_696(val, _values, result) ⇒ Object



7950
7951
7952
7953
7954
# File 'lib/parser/ruby28.rb', line 7950

def _reduce_696(val, _values, result)
                      result = @builder.kwsplat(val[0], val[1])
                    
    result
end

#_reduce_70(val, _values, result) ⇒ Object

reduce 69 omitted



4339
4340
4341
4342
4343
4344
# File 'lib/parser/ruby28.rb', line 4339

def _reduce_70(val, _values, result)
                      result = @builder.call_method(val[0], val[1], val[2],
                                  nil, val[3], nil)
                    
    result
end

#_reduce_709(val, _values, result) ⇒ Object

reduce 708 omitted



7980
7981
7982
7983
7984
# File 'lib/parser/ruby28.rb', line 7980

def _reduce_709(val, _values, result)
                      result = [:dot, val[0][1]]
                    
    result
end

#_reduce_71(val, _values, result) ⇒ Object



4346
4347
4348
4349
4350
# File 'lib/parser/ruby28.rb', line 4346

def _reduce_71(val, _values, result)
                      @context.push(:block)
                    
    result
end

#_reduce_710(val, _values, result) ⇒ Object



7986
7987
7988
7989
7990
# File 'lib/parser/ruby28.rb', line 7986

def _reduce_710(val, _values, result)
                      result = [:anddot, val[0][1]]
                    
    result
end

#_reduce_715(val, _values, result) ⇒ Object

reduce 714 omitted



8000
8001
8002
8003
8004
# File 'lib/parser/ruby28.rb', line 8000

def _reduce_715(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_716(val, _values, result) ⇒ Object



8006
8007
8008
8009
8010
# File 'lib/parser/ruby28.rb', line 8006

def _reduce_716(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_717(val, _values, result) ⇒ Object



8012
8013
8014
8015
8016
# File 'lib/parser/ruby28.rb', line 8012

def _reduce_717(val, _values, result)
                      result = val[1]
                    
    result
end

#_reduce_72(val, _values, result) ⇒ Object



4352
4353
4354
4355
4356
4357
# File 'lib/parser/ruby28.rb', line 4352

def _reduce_72(val, _values, result)
                      result = [ val[0], *val[2], val[3] ]
                      @context.pop
                    
    result
end

#_reduce_721(val, _values, result) ⇒ Object

reduce 720 omitted



8024
8025
8026
8027
8028
# File 'lib/parser/ruby28.rb', line 8024

def _reduce_721(val, _values, result)
                    yyerrok
                  
    result
end

#_reduce_725(val, _values, result) ⇒ Object

reduce 724 omitted



8036
8037
8038
8039
8040
# File 'lib/parser/ruby28.rb', line 8036

def _reduce_725(val, _values, result)
                    result = nil
                  
    result
end

#_reduce_74(val, _values, result) ⇒ Object

reduce 73 omitted



4361
4362
4363
4364
4365
4366
# File 'lib/parser/ruby28.rb', line 4361

def _reduce_74(val, _values, result)
                      result = @builder.call_method(nil, nil, val[0],
                                  nil, val[1], nil)
                    
    result
end

#_reduce_75(val, _values, result) ⇒ Object



4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
# File 'lib/parser/ruby28.rb', line 4368

def _reduce_75(val, _values, result)
                      method_call = @builder.call_method(nil, nil, val[0],
                                        nil, val[1], nil)

                      begin_t, args, body, end_t = val[2]
                      result      = @builder.block(method_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_76(val, _values, result) ⇒ Object



4379
4380
4381
4382
4383
4384
# File 'lib/parser/ruby28.rb', line 4379

def _reduce_76(val, _values, result)
                      result = @builder.call_method(val[0], val[1], val[2],
                                  nil, val[3], nil)
                    
    result
end

#_reduce_77(val, _values, result) ⇒ Object



4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
# File 'lib/parser/ruby28.rb', line 4386

def _reduce_77(val, _values, result)
                      method_call = @builder.call_method(val[0], val[1], val[2],
                                        nil, val[3], nil)

                      begin_t, args, body, end_t = val[4]
                      result      = @builder.block(method_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_78(val, _values, result) ⇒ Object



4397
4398
4399
4400
4401
4402
# File 'lib/parser/ruby28.rb', line 4397

def _reduce_78(val, _values, result)
                      result = @builder.call_method(val[0], val[1], val[2],
                                  nil, val[3], nil)
                    
    result
end

#_reduce_79(val, _values, result) ⇒ Object



4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
# File 'lib/parser/ruby28.rb', line 4404

def _reduce_79(val, _values, result)
                      method_call = @builder.call_method(val[0], val[1], val[2],
                                        nil, val[3], nil)

                      begin_t, args, body, end_t = val[4]
                      result      = @builder.block(method_call,
                                      begin_t, args, body, end_t)
                    
    result
end

#_reduce_8(val, _values, result) ⇒ Object

reduce 7 omitted



3954
3955
3956
3957
3958
# File 'lib/parser/ruby28.rb', line 3954

def _reduce_8(val, _values, result)
                      result = @builder.preexe(val[0], *val[1])
                    
    result
end

#_reduce_80(val, _values, result) ⇒ Object



4415
4416
4417
4418
4419
4420
# File 'lib/parser/ruby28.rb', line 4415

def _reduce_80(val, _values, result)
                      result = @builder.keyword_cmd(:super, val[0],
                                  nil, val[1], nil)
                    
    result
end

#_reduce_81(val, _values, result) ⇒ Object



4422
4423
4424
4425
4426
4427
# File 'lib/parser/ruby28.rb', line 4422

def _reduce_81(val, _values, result)
                      result = @builder.keyword_cmd(:yield, val[0],
                                  nil, val[1], nil)
                    
    result
end

#_reduce_82(val, _values, result) ⇒ Object



4429
4430
4431
4432
4433
4434
# File 'lib/parser/ruby28.rb', line 4429

def _reduce_82(val, _values, result)
                      result = @builder.keyword_cmd(:return, val[0],
                                  nil, val[1], nil)
                    
    result
end

#_reduce_83(val, _values, result) ⇒ Object



4436
4437
4438
4439
4440
4441
# File 'lib/parser/ruby28.rb', line 4436

def _reduce_83(val, _values, result)
                      result = @builder.keyword_cmd(:break, val[0],
                                  nil, val[1], nil)
                    
    result
end

#_reduce_84(val, _values, result) ⇒ Object



4443
4444
4445
4446
4447
4448
# File 'lib/parser/ruby28.rb', line 4443

def _reduce_84(val, _values, result)
                      result = @builder.keyword_cmd(:next, val[0],
                                  nil, val[1], nil)
                    
    result
end

#_reduce_85(val, _values, result) ⇒ Object



4450
4451
4452
4453
4454
# File 'lib/parser/ruby28.rb', line 4450

def _reduce_85(val, _values, result)
                      result = @builder.multi_lhs(nil, val[0], nil)
                    
    result
end

#_reduce_86(val, _values, result) ⇒ Object



4456
4457
4458
4459
4460
# File 'lib/parser/ruby28.rb', line 4456

def _reduce_86(val, _values, result)
                      result = @builder.begin(val[0], val[1], val[2])
                    
    result
end

#_reduce_87(val, _values, result) ⇒ Object



4462
4463
4464
4465
4466
# File 'lib/parser/ruby28.rb', line 4462

def _reduce_87(val, _values, result)
                      result = @builder.multi_lhs(nil, val[0], nil)
                    
    result
end

#_reduce_88(val, _values, result) ⇒ Object



4468
4469
4470
4471
4472
# File 'lib/parser/ruby28.rb', line 4468

def _reduce_88(val, _values, result)
                      result = @builder.multi_lhs(val[0], val[1], val[2])
                    
    result
end

#_reduce_9(val, _values, result) ⇒ Object



3960
3961
3962
3963
3964
# File 'lib/parser/ruby28.rb', line 3960

def _reduce_9(val, _values, result)
                      result = val
                    
    result
end

#_reduce_90(val, _values, result) ⇒ Object

reduce 89 omitted



4476
4477
4478
4479
4480
4481
# File 'lib/parser/ruby28.rb', line 4476

def _reduce_90(val, _values, result)
                      result = val[0].
                                  push(val[1])
                    
    result
end

#_reduce_91(val, _values, result) ⇒ Object



4483
4484
4485
4486
4487
4488
# File 'lib/parser/ruby28.rb', line 4483

def _reduce_91(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1], val[2]))
                    
    result
end

#_reduce_92(val, _values, result) ⇒ Object



4490
4491
4492
4493
4494
4495
4496
# File 'lib/parser/ruby28.rb', line 4490

def _reduce_92(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1], val[2])).
                                  concat(val[4])
                    
    result
end

#_reduce_93(val, _values, result) ⇒ Object



4498
4499
4500
4501
4502
4503
# File 'lib/parser/ruby28.rb', line 4498

def _reduce_93(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1]))
                    
    result
end

#_reduce_94(val, _values, result) ⇒ Object



4505
4506
4507
4508
4509
4510
4511
# File 'lib/parser/ruby28.rb', line 4505

def _reduce_94(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1])).
                                  concat(val[3])
                    
    result
end

#_reduce_95(val, _values, result) ⇒ Object



4513
4514
4515
4516
4517
# File 'lib/parser/ruby28.rb', line 4513

def _reduce_95(val, _values, result)
                      result = [ @builder.splat(val[0], val[1]) ]
                    
    result
end

#_reduce_96(val, _values, result) ⇒ Object



4519
4520
4521
4522
4523
4524
# File 'lib/parser/ruby28.rb', line 4519

def _reduce_96(val, _values, result)
                      result = [ @builder.splat(val[0], val[1]),
                                 *val[3] ]
                    
    result
end

#_reduce_97(val, _values, result) ⇒ Object



4526
4527
4528
4529
4530
# File 'lib/parser/ruby28.rb', line 4526

def _reduce_97(val, _values, result)
                      result = [ @builder.splat(val[0]) ]
                    
    result
end

#_reduce_98(val, _values, result) ⇒ Object



4532
4533
4534
4535
4536
4537
# File 'lib/parser/ruby28.rb', line 4532

def _reduce_98(val, _values, result)
                      result = [ @builder.splat(val[0]),
                                 *val[2] ]
                    
    result
end

#_reduce_none(val, _values, result) ⇒ Object



8042
8043
8044
# File 'lib/parser/ruby28.rb', line 8042

def _reduce_none(val, _values, result)
  val[0]
end

#default_encodingObject



21
22
23
# File 'lib/parser/ruby28.rb', line 21

def default_encoding
  Encoding::UTF_8
end

#versionObject



17
18
19
# File 'lib/parser/ruby28.rb', line 17

def version
  28
end