Class: Parser::Ruby22

Inherits:
Base
  • Object
show all
Defined in:
lib/parser/ruby22.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",
"tEQL",
"tLOWEST",
"$start",
"program",
"top_compstmt",
"top_stmts",
"opt_terms",
"top_stmt",
"terms",
"stmt",
"bodystmt",
"compstmt",
"opt_rescue",
"opt_else",
"opt_ensure",
"stmts",
"stmt_or_begin",
"fitem",
"undef_list",
"expr_value",
"command_asgn",
"mlhs",
"command_call",
"var_lhs",
"primary_value",
"opt_call_args",
"rbracket",
"backref",
"lhs",
"mrhs",
"mrhs_arg",
"expr",
"@1",
"opt_nl",
"arg",
"command",
"block_command",
"block_call",
"dot_or_colon",
"operation2",
"command_args",
"cmd_brace_block",
"opt_block_param",
"fcall",
"@2",
"operation",
"call_args",
"mlhs_basic",
"mlhs_inner",
"rparen",
"mlhs_head",
"mlhs_item",
"mlhs_node",
"mlhs_post",
"user_variable",
"keyword_variable",
"cname",
"cpath",
"fname",
"op",
"reswords",
"fsym",
"symbol",
"dsym",
"@3",
"simple_numeric",
"primary",
"arg_value",
"aref_args",
"none",
"args",
"trailer",
"assocs",
"paren_args",
"opt_paren_args",
"opt_block_arg",
"block_arg",
"@4",
"literal",
"strings",
"xstring",
"regexp",
"words",
"qwords",
"symbols",
"qsymbols",
"var_ref",
"assoc_list",
"brace_block",
"method_call",
"lambda",
"then",
"if_tail",
"do",
"case_body",
"for_var",
"k_class",
"superclass",
"term",
"k_module",
"f_arglist",
"singleton",
"@5",
"@6",
"@7",
"@8",
"@9",
"@10",
"@11",
"@12",
"@13",
"@14",
"@15",
"@16",
"@17",
"@18",
"@19",
"@20",
"@21",
"f_marg",
"f_norm_arg",
"f_margs",
"f_marg_list",
"block_args_tail",
"f_block_kwarg",
"f_kwrest",
"opt_f_block_arg",
"f_block_arg",
"opt_block_args_tail",
"block_param",
"f_arg",
"f_block_optarg",
"f_rest_arg",
"block_param_def",
"opt_bv_decl",
"bv_decls",
"bvar",
"f_bad_arg",
"f_larglist",
"lambda_body",
"@22",
"@23",
"f_args",
"do_block",
"@24",
"@25",
"@26",
"operation3",
"@27",
"@28",
"cases",
"exc_list",
"exc_var",
"numeric",
"string",
"string1",
"string_contents",
"xstring_contents",
"regexp_contents",
"word_list",
"word",
"string_content",
"symbol_list",
"qword_list",
"qsym_list",
"string_dvar",
"@29",
"@30",
"args_tail",
"@31",
"f_kwarg",
"opt_args_tail",
"f_optarg",
"f_arg_asgn",
"f_arg_item",
"f_label",
"f_kw",
"f_block_kw",
"kwrest_mark",
"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



7065
7066
7067
7068
7069
# File 'lib/parser/ruby22.rb', line 7065

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

    result
end

#_reduce_100(val, _values, result) ⇒ Object



7622
7623
7624
7625
7626
# File 'lib/parser/ruby22.rb', line 7622

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

    result
end

#_reduce_101(val, _values, result) ⇒ Object



7628
7629
7630
7631
7632
# File 'lib/parser/ruby22.rb', line 7628

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

    result
end

#_reduce_102(val, _values, result) ⇒ Object



7634
7635
7636
7637
7638
# File 'lib/parser/ruby22.rb', line 7634

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

    result
end

#_reduce_103(val, _values, result) ⇒ Object



7640
7641
7642
7643
7644
7645
# File 'lib/parser/ruby22.rb', line 7640

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

    result
end

#_reduce_104(val, _values, result) ⇒ Object



7647
7648
7649
7650
7651
7652
# File 'lib/parser/ruby22.rb', line 7647

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

    result
end

#_reduce_105(val, _values, result) ⇒ Object



7654
7655
7656
7657
7658
# File 'lib/parser/ruby22.rb', line 7654

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

    result
end

#_reduce_106(val, _values, result) ⇒ Object



7660
7661
7662
7663
7664
# File 'lib/parser/ruby22.rb', line 7660

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

    result
end

#_reduce_108(val, _values, result) ⇒ Object

reduce 107 omitted



7668
7669
7670
7671
7672
# File 'lib/parser/ruby22.rb', line 7668

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

    result
end

#_reduce_109(val, _values, result) ⇒ Object



7674
7675
7676
7677
7678
# File 'lib/parser/ruby22.rb', line 7674

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

    result
end

#_reduce_11(val, _values, result) ⇒ Object



7071
7072
7073
7074
7075
# File 'lib/parser/ruby22.rb', line 7071

def _reduce_11(val, _values, result)
                      result = []

    result
end

#_reduce_110(val, _values, result) ⇒ Object



7680
7681
7682
7683
7684
# File 'lib/parser/ruby22.rb', line 7680

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

    result
end

#_reduce_116(val, _values, result) ⇒ Object

reduce 115 omitted



7696
7697
7698
7699
7700
# File 'lib/parser/ruby22.rb', line 7696

def _reduce_116(val, _values, result)
                      result = @builder.symbol_internal(val[0])

    result
end

#_reduce_12(val, _values, result) ⇒ Object



7077
7078
7079
7080
7081
# File 'lib/parser/ruby22.rb', line 7077

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

    result
end

#_reduce_120(val, _values, result) ⇒ Object

reduce 119 omitted



7708
7709
7710
7711
7712
# File 'lib/parser/ruby22.rb', line 7708

def _reduce_120(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_121(val, _values, result) ⇒ Object



7714
7715
7716
7717
7718
# File 'lib/parser/ruby22.rb', line 7714

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

    result
end

#_reduce_122(val, _values, result) ⇒ Object



7720
7721
7722
7723
7724
# File 'lib/parser/ruby22.rb', line 7720

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

    result
end

#_reduce_13(val, _values, result) ⇒ Object



7083
7084
7085
7086
7087
# File 'lib/parser/ruby22.rb', line 7083

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

    result
end

#_reduce_14(val, _values, result) ⇒ Object



7089
7090
7091
7092
7093
# File 'lib/parser/ruby22.rb', line 7089

def _reduce_14(val, _values, result)
                      result = [ val[1] ]

    result
end

#_reduce_16(val, _values, result) ⇒ Object

reduce 15 omitted



7097
7098
7099
7100
7101
# File 'lib/parser/ruby22.rb', line 7097

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

    result
end

#_reduce_17(val, _values, result) ⇒ Object



7103
7104
7105
7106
7107
# File 'lib/parser/ruby22.rb', line 7103

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

    result
end

#_reduce_18(val, _values, result) ⇒ Object



7109
7110
7111
7112
7113
# File 'lib/parser/ruby22.rb', line 7109

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

    result
end

#_reduce_19(val, _values, result) ⇒ Object



7115
7116
7117
7118
7119
7120
7121
# File 'lib/parser/ruby22.rb', line 7115

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

    result
end

#_reduce_194(val, _values, result) ⇒ Object

reduce 193 omitted



7868
7869
7870
7871
7872
# File 'lib/parser/ruby22.rb', line 7868

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

    result
end

#_reduce_195(val, _values, result) ⇒ Object



7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
# File 'lib/parser/ruby22.rb', line 7874

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

                      rescue_ = @builder.begin_body(val[2], [ rescue_body ])

                      result  = @builder.assign(val[0], val[1], rescue_)

    result
end

#_reduce_196(val, _values, result) ⇒ Object



7886
7887
7888
7889
7890
# File 'lib/parser/ruby22.rb', line 7886

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

    result
end

#_reduce_197(val, _values, result) ⇒ Object



7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
# File 'lib/parser/ruby22.rb', line 7892

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

                      rescue_ = @builder.begin_body(val[2], [ rescue_body ])

                      result = @builder.op_assign(val[0], val[1], rescue_)

    result
end

#_reduce_198(val, _values, result) ⇒ Object



7904
7905
7906
7907
7908
7909
7910
7911
# File 'lib/parser/ruby22.rb', line 7904

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

    result
end

#_reduce_199(val, _values, result) ⇒ Object



7913
7914
7915
7916
7917
7918
7919
7920
# File 'lib/parser/ruby22.rb', line 7913

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

    result
end

#_reduce_2(val, _values, result) ⇒ Object

reduce 1 omitted



7010
7011
7012
7013
7014
# File 'lib/parser/ruby22.rb', line 7010

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

    result
end

#_reduce_20(val, _values, result) ⇒ Object



7123
7124
7125
7126
7127
7128
7129
# File 'lib/parser/ruby22.rb', line 7123

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

    result
end

#_reduce_200(val, _values, result) ⇒ Object



7922
7923
7924
7925
7926
7927
7928
7929
# File 'lib/parser/ruby22.rb', line 7922

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

    result
end

#_reduce_201(val, _values, result) ⇒ Object



7931
7932
7933
7934
7935
7936
7937
7938
# File 'lib/parser/ruby22.rb', line 7931

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

    result
end

#_reduce_202(val, _values, result) ⇒ Object



7940
7941
7942
7943
7944
7945
7946
# File 'lib/parser/ruby22.rb', line 7940

def _reduce_202(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_203(val, _values, result) ⇒ Object



7948
7949
7950
7951
7952
7953
7954
# File 'lib/parser/ruby22.rb', line 7948

def _reduce_203(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_204(val, _values, result) ⇒ Object



7956
7957
7958
7959
7960
# File 'lib/parser/ruby22.rb', line 7956

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

    result
end

#_reduce_205(val, _values, result) ⇒ Object



7962
7963
7964
7965
7966
# File 'lib/parser/ruby22.rb', line 7962

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

    result
end

#_reduce_206(val, _values, result) ⇒ Object



7968
7969
7970
7971
7972
# File 'lib/parser/ruby22.rb', line 7968

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

    result
end

#_reduce_207(val, _values, result) ⇒ Object



7974
7975
7976
7977
7978
# File 'lib/parser/ruby22.rb', line 7974

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

    result
end

#_reduce_208(val, _values, result) ⇒ Object



7980
7981
7982
7983
7984
# File 'lib/parser/ruby22.rb', line 7980

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

    result
end

#_reduce_209(val, _values, result) ⇒ Object



7986
7987
7988
7989
7990
# File 'lib/parser/ruby22.rb', line 7986

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

    result
end

#_reduce_21(val, _values, result) ⇒ Object



7131
7132
7133
7134
7135
# File 'lib/parser/ruby22.rb', line 7131

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

    result
end

#_reduce_210(val, _values, result) ⇒ Object



7992
7993
7994
7995
7996
# File 'lib/parser/ruby22.rb', line 7992

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

    result
end

#_reduce_211(val, _values, result) ⇒ Object



7998
7999
8000
8001
8002
# File 'lib/parser/ruby22.rb', line 7998

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

    result
end

#_reduce_212(val, _values, result) ⇒ Object



8004
8005
8006
8007
8008
# File 'lib/parser/ruby22.rb', line 8004

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

    result
end

#_reduce_213(val, _values, result) ⇒ Object



8010
8011
8012
8013
8014
8015
8016
# File 'lib/parser/ruby22.rb', line 8010

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

    result
end

#_reduce_214(val, _values, result) ⇒ Object



8018
8019
8020
8021
8022
# File 'lib/parser/ruby22.rb', line 8018

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

    result
end

#_reduce_215(val, _values, result) ⇒ Object



8024
8025
8026
8027
8028
# File 'lib/parser/ruby22.rb', line 8024

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

    result
end

#_reduce_216(val, _values, result) ⇒ Object



8030
8031
8032
8033
8034
# File 'lib/parser/ruby22.rb', line 8030

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

    result
end

#_reduce_217(val, _values, result) ⇒ Object



8036
8037
8038
8039
8040
# File 'lib/parser/ruby22.rb', line 8036

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

    result
end

#_reduce_218(val, _values, result) ⇒ Object



8042
8043
8044
8045
8046
# File 'lib/parser/ruby22.rb', line 8042

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

    result
end

#_reduce_219(val, _values, result) ⇒ Object



8048
8049
8050
8051
8052
# File 'lib/parser/ruby22.rb', line 8048

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

    result
end

#_reduce_22(val, _values, result) ⇒ Object



7137
7138
7139
7140
7141
# File 'lib/parser/ruby22.rb', line 7137

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

    result
end

#_reduce_220(val, _values, result) ⇒ Object



8054
8055
8056
8057
8058
# File 'lib/parser/ruby22.rb', line 8054

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

    result
end

#_reduce_221(val, _values, result) ⇒ Object



8060
8061
8062
8063
8064
# File 'lib/parser/ruby22.rb', line 8060

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

    result
end

#_reduce_222(val, _values, result) ⇒ Object



8066
8067
8068
8069
8070
# File 'lib/parser/ruby22.rb', line 8066

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

    result
end

#_reduce_223(val, _values, result) ⇒ Object



8072
8073
8074
8075
8076
# File 'lib/parser/ruby22.rb', line 8072

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

    result
end

#_reduce_224(val, _values, result) ⇒ Object



8078
8079
8080
8081
8082
# File 'lib/parser/ruby22.rb', line 8078

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

    result
end

#_reduce_225(val, _values, result) ⇒ Object



8084
8085
8086
8087
8088
# File 'lib/parser/ruby22.rb', line 8084

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

    result
end

#_reduce_226(val, _values, result) ⇒ Object



8090
8091
8092
8093
8094
# File 'lib/parser/ruby22.rb', line 8090

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

    result
end

#_reduce_227(val, _values, result) ⇒ Object



8096
8097
8098
8099
8100
# File 'lib/parser/ruby22.rb', line 8096

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

    result
end

#_reduce_228(val, _values, result) ⇒ Object



8102
8103
8104
8105
8106
# File 'lib/parser/ruby22.rb', line 8102

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

    result
end

#_reduce_229(val, _values, result) ⇒ Object



8108
8109
8110
8111
8112
# File 'lib/parser/ruby22.rb', line 8108

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

    result
end

#_reduce_23(val, _values, result) ⇒ Object



7143
7144
7145
7146
7147
7148
# File 'lib/parser/ruby22.rb', line 7143

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

    result
end

#_reduce_230(val, _values, result) ⇒ Object



8114
8115
8116
8117
8118
# File 'lib/parser/ruby22.rb', line 8114

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

    result
end

#_reduce_231(val, _values, result) ⇒ Object



8120
8121
8122
8123
8124
# File 'lib/parser/ruby22.rb', line 8120

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

    result
end

#_reduce_232(val, _values, result) ⇒ Object



8126
8127
8128
8129
8130
# File 'lib/parser/ruby22.rb', line 8126

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

    result
end

#_reduce_233(val, _values, result) ⇒ Object



8132
8133
8134
8135
8136
# File 'lib/parser/ruby22.rb', line 8132

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

    result
end

#_reduce_234(val, _values, result) ⇒ Object



8138
8139
8140
8141
8142
# File 'lib/parser/ruby22.rb', line 8138

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

    result
end

#_reduce_235(val, _values, result) ⇒ Object



8144
8145
8146
8147
8148
# File 'lib/parser/ruby22.rb', line 8144

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

    result
end

#_reduce_236(val, _values, result) ⇒ Object



8150
8151
8152
8153
8154
8155
# File 'lib/parser/ruby22.rb', line 8150

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

    result
end

#_reduce_24(val, _values, result) ⇒ Object



7150
7151
7152
7153
7154
7155
# File 'lib/parser/ruby22.rb', line 7150

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

    result
end

#_reduce_241(val, _values, result) ⇒ Object

reduce 240 omitted



8165
8166
8167
8168
8169
# File 'lib/parser/ruby22.rb', line 8165

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

    result
end

#_reduce_242(val, _values, result) ⇒ Object



8171
8172
8173
8174
8175
# File 'lib/parser/ruby22.rb', line 8171

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

    result
end

#_reduce_243(val, _values, result) ⇒ Object



8177
8178
8179
8180
8181
# File 'lib/parser/ruby22.rb', line 8177

def _reduce_243(val, _values, result)
                      result = val

    result
end

#_reduce_244(val, _values, result) ⇒ Object



8183
8184
8185
8186
8187
# File 'lib/parser/ruby22.rb', line 8183

def _reduce_244(val, _values, result)
                      result = [ nil, [], nil ]

    result
end

#_reduce_246(val, _values, result) ⇒ Object

reduce 245 omitted



8191
8192
8193
8194
8195
# File 'lib/parser/ruby22.rb', line 8191

def _reduce_246(val, _values, result)
                      result = []

    result
end

#_reduce_249(val, _values, result) ⇒ Object

reduce 248 omitted



8201
8202
8203
8204
8205
# File 'lib/parser/ruby22.rb', line 8201

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

    result
end

#_reduce_25(val, _values, result) ⇒ Object



7157
7158
7159
7160
7161
# File 'lib/parser/ruby22.rb', line 7157

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

    result
end

#_reduce_250(val, _values, result) ⇒ Object



8207
8208
8209
8210
8211
# File 'lib/parser/ruby22.rb', line 8207

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

    result
end

#_reduce_251(val, _values, result) ⇒ Object



8213
8214
8215
8216
8217
# File 'lib/parser/ruby22.rb', line 8213

def _reduce_251(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_252(val, _values, result) ⇒ Object



8219
8220
8221
8222
8223
# File 'lib/parser/ruby22.rb', line 8219

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

    result
end

#_reduce_253(val, _values, result) ⇒ Object



8225
8226
8227
8228
8229
8230
# File 'lib/parser/ruby22.rb', line 8225

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

    result
end

#_reduce_254(val, _values, result) ⇒ Object



8232
8233
8234
8235
8236
8237
8238
# File 'lib/parser/ruby22.rb', line 8232

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

    result
end

#_reduce_255(val, _values, result) ⇒ Object



8240
8241
8242
8243
8244
# File 'lib/parser/ruby22.rb', line 8240

def _reduce_255(val, _values, result)
                      result =  [ val[0] ]

    result
end

#_reduce_256(val, _values, result) ⇒ Object



8246
8247
8248
8249
8250
8251
# File 'lib/parser/ruby22.rb', line 8246

def _reduce_256(val, _values, result)
                      result = @lexer.cmdarg.dup
                      @lexer.cmdarg.push(true)

    result
end

#_reduce_257(val, _values, result) ⇒ Object



8253
8254
8255
8256
8257
8258
8259
# File 'lib/parser/ruby22.rb', line 8253

def _reduce_257(val, _values, result)
                      @lexer.cmdarg = val[0]

                      result = val[1]

    result
end

#_reduce_258(val, _values, result) ⇒ Object



8261
8262
8263
8264
8265
# File 'lib/parser/ruby22.rb', line 8261

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

    result
end

#_reduce_259(val, _values, result) ⇒ Object



8267
8268
8269
8270
8271
# File 'lib/parser/ruby22.rb', line 8267

def _reduce_259(val, _values, result)
                      result = [ val[1] ]

    result
end

#_reduce_26(val, _values, result) ⇒ Object



7163
7164
7165
7166
7167
# File 'lib/parser/ruby22.rb', line 7163

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

    result
end

#_reduce_260(val, _values, result) ⇒ Object



8273
8274
8275
8276
8277
# File 'lib/parser/ruby22.rb', line 8273

def _reduce_260(val, _values, result)
                      result = []

    result
end

#_reduce_261(val, _values, result) ⇒ Object



8279
8280
8281
8282
8283
# File 'lib/parser/ruby22.rb', line 8279

def _reduce_261(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_262(val, _values, result) ⇒ Object



8285
8286
8287
8288
8289
# File 'lib/parser/ruby22.rb', line 8285

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

    result
end

#_reduce_263(val, _values, result) ⇒ Object



8291
8292
8293
8294
8295
# File 'lib/parser/ruby22.rb', line 8291

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

    result
end

#_reduce_264(val, _values, result) ⇒ Object



8297
8298
8299
8300
8301
# File 'lib/parser/ruby22.rb', line 8297

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

    result
end

#_reduce_265(val, _values, result) ⇒ Object



8303
8304
8305
8306
8307
# File 'lib/parser/ruby22.rb', line 8303

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

    result
end

#_reduce_267(val, _values, result) ⇒ Object

reduce 266 omitted



8311
8312
8313
8314
8315
# File 'lib/parser/ruby22.rb', line 8311

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

    result
end

#_reduce_268(val, _values, result) ⇒ Object



8317
8318
8319
8320
8321
# File 'lib/parser/ruby22.rb', line 8317

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

    result
end

#_reduce_269(val, _values, result) ⇒ Object



8323
8324
8325
8326
8327
# File 'lib/parser/ruby22.rb', line 8323

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

    result
end

#_reduce_27(val, _values, result) ⇒ Object



7169
7170
7171
7172
7173
7174
7175
7176
7177
# File 'lib/parser/ruby22.rb', line 7169

def _reduce_27(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_28(val, _values, result) ⇒ Object



7179
7180
7181
7182
7183
# File 'lib/parser/ruby22.rb', line 7179

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

    result
end

#_reduce_280(val, _values, result) ⇒ Object

reduce 279 omitted



8349
8350
8351
8352
8353
# File 'lib/parser/ruby22.rb', line 8349

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

    result
end

#_reduce_281(val, _values, result) ⇒ Object



8355
8356
8357
8358
8359
8360
# File 'lib/parser/ruby22.rb', line 8355

def _reduce_281(val, _values, result)
                      result = @lexer.cmdarg.dup
                      @lexer.cmdarg.clear

    result
end

#_reduce_282(val, _values, result) ⇒ Object



8362
8363
8364
8365
8366
8367
8368
# File 'lib/parser/ruby22.rb', line 8362

def _reduce_282(val, _values, result)
                      @lexer.cmdarg = val[1]

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

    result
end

#_reduce_283(val, _values, result) ⇒ Object



8370
8371
8372
8373
8374
8375
# File 'lib/parser/ruby22.rb', line 8370

def _reduce_283(val, _values, result)
                      result = @lexer.cmdarg.dup
                      @lexer.cmdarg.clear

    result
end

#_reduce_284(val, _values, result) ⇒ Object



8377
8378
8379
8380
8381
# File 'lib/parser/ruby22.rb', line 8377

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

    result
end

#_reduce_285(val, _values, result) ⇒ Object



8383
8384
8385
8386
8387
8388
8389
# File 'lib/parser/ruby22.rb', line 8383

def _reduce_285(val, _values, result)
                      @lexer.cmdarg = val[1]

                      result = @builder.begin(val[0], val[2], val[5])

    result
end

#_reduce_286(val, _values, result) ⇒ Object



8391
8392
8393
8394
8395
# File 'lib/parser/ruby22.rb', line 8391

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

    result
end

#_reduce_287(val, _values, result) ⇒ Object



8397
8398
8399
8400
8401
# File 'lib/parser/ruby22.rb', line 8397

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

    result
end

#_reduce_288(val, _values, result) ⇒ Object



8403
8404
8405
8406
8407
# File 'lib/parser/ruby22.rb', line 8403

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

    result
end

#_reduce_289(val, _values, result) ⇒ Object



8409
8410
8411
8412
8413
# File 'lib/parser/ruby22.rb', line 8409

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

    result
end

#_reduce_290(val, _values, result) ⇒ Object



8415
8416
8417
8418
8419
# File 'lib/parser/ruby22.rb', line 8415

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

    result
end

#_reduce_291(val, _values, result) ⇒ Object



8421
8422
8423
8424
8425
# File 'lib/parser/ruby22.rb', line 8421

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

    result
end

#_reduce_292(val, _values, result) ⇒ Object



8427
8428
8429
8430
8431
# File 'lib/parser/ruby22.rb', line 8427

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

    result
end

#_reduce_293(val, _values, result) ⇒ Object



8433
8434
8435
8436
8437
# File 'lib/parser/ruby22.rb', line 8433

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

    result
end

#_reduce_294(val, _values, result) ⇒ Object



8439
8440
8441
8442
8443
# File 'lib/parser/ruby22.rb', line 8439

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

    result
end

#_reduce_295(val, _values, result) ⇒ Object



8445
8446
8447
8448
8449
# File 'lib/parser/ruby22.rb', line 8445

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

    result
end

#_reduce_296(val, _values, result) ⇒ Object



8451
8452
8453
8454
8455
# File 'lib/parser/ruby22.rb', line 8451

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

    result
end

#_reduce_297(val, _values, result) ⇒ Object



8457
8458
8459
8460
8461
8462
# File 'lib/parser/ruby22.rb', line 8457

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

    result
end

#_reduce_298(val, _values, result) ⇒ Object



8464
8465
8466
8467
8468
# File 'lib/parser/ruby22.rb', line 8464

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

    result
end

#_reduce_299(val, _values, result) ⇒ Object



8470
8471
8472
8473
8474
# File 'lib/parser/ruby22.rb', line 8470

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

    result
end

#_reduce_3(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_30(val, _values, result) ⇒ Object

reduce 29 omitted



7187
7188
7189
7190
7191
# File 'lib/parser/ruby22.rb', line 7187

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

    result
end

#_reduce_300(val, _values, result) ⇒ Object



8476
8477
8478
8479
8480
8481
8482
8483
8484
# File 'lib/parser/ruby22.rb', line 8476

def _reduce_300(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_302(val, _values, result) ⇒ Object

reduce 301 omitted



8488
8489
8490
8491
8492
8493
8494
# File 'lib/parser/ruby22.rb', line 8488

def _reduce_302(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_303(val, _values, result) ⇒ Object



8496
8497
8498
8499
8500
8501
# File 'lib/parser/ruby22.rb', line 8496

def _reduce_303(val, _values, result)
                      result = @context.dup
                      @context.in_lambda = true

    result
end

#_reduce_304(val, _values, result) ⇒ Object



8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
# File 'lib/parser/ruby22.rb', line 8503

def _reduce_304(val, _values, result)
                      lambda_call = @builder.call_lambda(val[0])

                      args, (begin_t, body, end_t) = val[2]
                      result      = @builder.block(lambda_call,
                                      begin_t, args, body, end_t)

                      @context.in_lambda = val[1].in_lambda

    result
end

#_reduce_305(val, _values, result) ⇒ Object



8515
8516
8517
8518
8519
8520
8521
8522
# File 'lib/parser/ruby22.rb', line 8515

def _reduce_305(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_306(val, _values, result) ⇒ Object



8524
8525
8526
8527
8528
8529
8530
8531
# File 'lib/parser/ruby22.rb', line 8524

def _reduce_306(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_307(val, _values, result) ⇒ Object



8533
8534
8535
8536
8537
# File 'lib/parser/ruby22.rb', line 8533

def _reduce_307(val, _values, result)
                      @lexer.cond.push(true)

    result
end

#_reduce_308(val, _values, result) ⇒ Object



8539
8540
8541
8542
8543
# File 'lib/parser/ruby22.rb', line 8539

def _reduce_308(val, _values, result)
                      @lexer.cond.pop

    result
end

#_reduce_309(val, _values, result) ⇒ Object



8545
8546
8547
8548
8549
8550
# File 'lib/parser/ruby22.rb', line 8545

def _reduce_309(val, _values, result)
                      result = @builder.loop(:while, val[0], val[2], val[3],
                                             val[5], val[6])

    result
end

#_reduce_31(val, _values, result) ⇒ Object



7193
7194
7195
7196
7197
# File 'lib/parser/ruby22.rb', line 7193

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

    result
end

#_reduce_310(val, _values, result) ⇒ Object



8552
8553
8554
8555
8556
# File 'lib/parser/ruby22.rb', line 8552

def _reduce_310(val, _values, result)
                      @lexer.cond.push(true)

    result
end

#_reduce_311(val, _values, result) ⇒ Object



8558
8559
8560
8561
8562
# File 'lib/parser/ruby22.rb', line 8558

def _reduce_311(val, _values, result)
                      @lexer.cond.pop

    result
end

#_reduce_312(val, _values, result) ⇒ Object



8564
8565
8566
8567
8568
8569
# File 'lib/parser/ruby22.rb', line 8564

def _reduce_312(val, _values, result)
                      result = @builder.loop(:until, val[0], val[2], val[3],
                                             val[5], val[6])

    result
end

#_reduce_313(val, _values, result) ⇒ Object



8571
8572
8573
8574
8575
8576
8577
8578
8579
# File 'lib/parser/ruby22.rb', line 8571

def _reduce_313(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_314(val, _values, result) ⇒ Object



8581
8582
8583
8584
8585
8586
8587
8588
8589
# File 'lib/parser/ruby22.rb', line 8581

def _reduce_314(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_315(val, _values, result) ⇒ Object



8591
8592
8593
8594
8595
# File 'lib/parser/ruby22.rb', line 8591

def _reduce_315(val, _values, result)
                      @lexer.cond.push(true)

    result
end

#_reduce_316(val, _values, result) ⇒ Object



8597
8598
8599
8600
8601
# File 'lib/parser/ruby22.rb', line 8597

def _reduce_316(val, _values, result)
                      @lexer.cond.pop

    result
end

#_reduce_317(val, _values, result) ⇒ Object



8603
8604
8605
8606
8607
8608
8609
# File 'lib/parser/ruby22.rb', line 8603

def _reduce_317(val, _values, result)
                      result = @builder.for(val[0], val[1],
                                            val[2], val[4],
                                            val[5], val[7], val[8])

    result
end

#_reduce_318(val, _values, result) ⇒ Object



8611
8612
8613
8614
8615
8616
# File 'lib/parser/ruby22.rb', line 8611

def _reduce_318(val, _values, result)
                      local_push
                      @context.in_class = true

    result
end

#_reduce_319(val, _values, result) ⇒ Object



8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
# File 'lib/parser/ruby22.rb', line 8618

def _reduce_319(val, _values, result)
                      k_class, ctx = val[0]
                      if @context.in_def
                        diagnostic :error, :class_in_def, nil, k_class
                      end

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

                      local_pop
                      @context.in_class = ctx.in_class

    result
end

#_reduce_32(val, _values, result) ⇒ Object



7199
7200
7201
7202
7203
7204
7205
7206
# File 'lib/parser/ruby22.rb', line 7199

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

    result
end

#_reduce_320(val, _values, result) ⇒ Object



8635
8636
8637
8638
8639
8640
8641
# File 'lib/parser/ruby22.rb', line 8635

def _reduce_320(val, _values, result)
                      @context.in_def = false
                      @context.in_class = false
                      local_push

    result
end

#_reduce_321(val, _values, result) ⇒ Object



8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
# File 'lib/parser/ruby22.rb', line 8643

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

                      local_pop
                      @context.in_def = ctx.in_def
                      @context.in_class = ctx.in_class

    result
end

#_reduce_322(val, _values, result) ⇒ Object



8655
8656
8657
8658
8659
8660
# File 'lib/parser/ruby22.rb', line 8655

def _reduce_322(val, _values, result)
                      @context.in_class = true
                      local_push

    result
end

#_reduce_323(val, _values, result) ⇒ Object



8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
# File 'lib/parser/ruby22.rb', line 8662

def _reduce_323(val, _values, result)
                      k_mod, ctx = val[0]
                      if @context.in_def
                        diagnostic :error, :module_in_def, nil, k_mod
                      end

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

                      local_pop
                      @context.in_class = ctx.in_class

    result
end

#_reduce_324(val, _values, result) ⇒ Object



8677
8678
8679
8680
8681
8682
8683
# File 'lib/parser/ruby22.rb', line 8677

def _reduce_324(val, _values, result)
                      local_push
                      result = context.dup
                      @context.in_def = true

    result
end

#_reduce_325(val, _values, result) ⇒ Object



8685
8686
8687
8688
8689
8690
8691
8692
8693
# File 'lib/parser/ruby22.rb', line 8685

def _reduce_325(val, _values, result)
                      result = @builder.def_method(val[0], val[1],
                                  val[3], val[4], val[5])

                      local_pop
                      @context.in_def = val[2].in_def

    result
end

#_reduce_326(val, _values, result) ⇒ Object



8695
8696
8697
8698
8699
# File 'lib/parser/ruby22.rb', line 8695

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

    result
end

#_reduce_327(val, _values, result) ⇒ Object



8701
8702
8703
8704
8705
8706
8707
# File 'lib/parser/ruby22.rb', line 8701

def _reduce_327(val, _values, result)
                      local_push
                      result = context.dup
                      @context.in_def = true

    result
end

#_reduce_328(val, _values, result) ⇒ Object



8709
8710
8711
8712
8713
8714
8715
8716
8717
# File 'lib/parser/ruby22.rb', line 8709

def _reduce_328(val, _values, result)
                      result = @builder.def_singleton(val[0], val[1], val[2],
                                  val[4], val[6], val[7], val[8])

                      local_pop
                      @context.in_def = val[5].in_def

    result
end

#_reduce_329(val, _values, result) ⇒ Object



8719
8720
8721
8722
8723
# File 'lib/parser/ruby22.rb', line 8719

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

    result
end

#_reduce_33(val, _values, result) ⇒ Object



7208
7209
7210
7211
7212
7213
7214
7215
# File 'lib/parser/ruby22.rb', line 7208

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

    result
end

#_reduce_330(val, _values, result) ⇒ Object



8725
8726
8727
8728
8729
# File 'lib/parser/ruby22.rb', line 8725

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

    result
end

#_reduce_331(val, _values, result) ⇒ Object



8731
8732
8733
8734
8735
# File 'lib/parser/ruby22.rb', line 8731

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

    result
end

#_reduce_332(val, _values, result) ⇒ Object



8737
8738
8739
8740
8741
# File 'lib/parser/ruby22.rb', line 8737

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

    result
end

#_reduce_334(val, _values, result) ⇒ Object

reduce 333 omitted



8745
8746
8747
8748
8749
# File 'lib/parser/ruby22.rb', line 8745

def _reduce_334(val, _values, result)
                      result = [ val[0], @context.dup ]

    result
end

#_reduce_335(val, _values, result) ⇒ Object



8751
8752
8753
8754
8755
# File 'lib/parser/ruby22.rb', line 8751

def _reduce_335(val, _values, result)
                      result = [ val[0], @context.dup ]

    result
end

#_reduce_338(val, _values, result) ⇒ Object

reduce 337 omitted



8761
8762
8763
8764
8765
# File 'lib/parser/ruby22.rb', line 8761

def _reduce_338(val, _values, result)
                      result = val[1]

    result
end

#_reduce_34(val, _values, result) ⇒ Object



7217
7218
7219
7220
7221
7222
7223
7224
# File 'lib/parser/ruby22.rb', line 7217

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

    result
end

#_reduce_342(val, _values, result) ⇒ Object

reduce 341 omitted



8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
# File 'lib/parser/ruby22.rb', line 8773

def _reduce_342(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_344(val, _values, result) ⇒ Object

reduce 343 omitted



8786
8787
8788
8789
8790
# File 'lib/parser/ruby22.rb', line 8786

def _reduce_344(val, _values, result)
                      result = val

    result
end

#_reduce_347(val, _values, result) ⇒ Object

reduce 346 omitted



8796
8797
8798
8799
8800
# File 'lib/parser/ruby22.rb', line 8796

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

    result
end

#_reduce_348(val, _values, result) ⇒ Object



8802
8803
8804
8805
8806
# File 'lib/parser/ruby22.rb', line 8802

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

    result
end

#_reduce_349(val, _values, result) ⇒ Object



8808
8809
8810
8811
8812
# File 'lib/parser/ruby22.rb', line 8808

def _reduce_349(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_35(val, _values, result) ⇒ Object



7226
7227
7228
7229
7230
7231
7232
# File 'lib/parser/ruby22.rb', line 7226

def _reduce_35(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_350(val, _values, result) ⇒ Object



8814
8815
8816
8817
8818
# File 'lib/parser/ruby22.rb', line 8814

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

    result
end

#_reduce_352(val, _values, result) ⇒ Object

reduce 351 omitted



8822
8823
8824
8825
8826
8827
# File 'lib/parser/ruby22.rb', line 8822

def _reduce_352(val, _values, result)
                      result = val[0].
                                  push(@builder.restarg(val[2], val[3]))

    result
end

#_reduce_353(val, _values, result) ⇒ Object



8829
8830
8831
8832
8833
8834
8835
# File 'lib/parser/ruby22.rb', line 8829

def _reduce_353(val, _values, result)
                      result = val[0].
                                  push(@builder.restarg(val[2], val[3])).
                                  concat(val[5])

    result
end

#_reduce_354(val, _values, result) ⇒ Object



8837
8838
8839
8840
8841
8842
# File 'lib/parser/ruby22.rb', line 8837

def _reduce_354(val, _values, result)
                      result = val[0].
                                  push(@builder.restarg(val[2]))

    result
end

#_reduce_355(val, _values, result) ⇒ Object



8844
8845
8846
8847
8848
8849
8850
# File 'lib/parser/ruby22.rb', line 8844

def _reduce_355(val, _values, result)
                      result = val[0].
                                  push(@builder.restarg(val[2])).
                                  concat(val[4])

    result
end

#_reduce_356(val, _values, result) ⇒ Object



8852
8853
8854
8855
8856
# File 'lib/parser/ruby22.rb', line 8852

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

    result
end

#_reduce_357(val, _values, result) ⇒ Object



8858
8859
8860
8861
8862
8863
# File 'lib/parser/ruby22.rb', line 8858

def _reduce_357(val, _values, result)
                      result = [ @builder.restarg(val[0], val[1]),
                                 *val[3] ]

    result
end

#_reduce_358(val, _values, result) ⇒ Object



8865
8866
8867
8868
8869
# File 'lib/parser/ruby22.rb', line 8865

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

    result
end

#_reduce_359(val, _values, result) ⇒ Object



8871
8872
8873
8874
8875
8876
# File 'lib/parser/ruby22.rb', line 8871

def _reduce_359(val, _values, result)
                      result = [ @builder.restarg(val[0]),
                                 *val[2] ]

    result
end

#_reduce_36(val, _values, result) ⇒ Object



7234
7235
7236
7237
7238
7239
7240
7241
# File 'lib/parser/ruby22.rb', line 7234

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

    result
end

#_reduce_360(val, _values, result) ⇒ Object



8878
8879
8880
8881
8882
# File 'lib/parser/ruby22.rb', line 8878

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

    result
end

#_reduce_361(val, _values, result) ⇒ Object



8884
8885
8886
8887
8888
# File 'lib/parser/ruby22.rb', line 8884

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

    result
end

#_reduce_362(val, _values, result) ⇒ Object



8890
8891
8892
8893
8894
# File 'lib/parser/ruby22.rb', line 8890

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

    result
end

#_reduce_363(val, _values, result) ⇒ Object



8896
8897
8898
8899
8900
# File 'lib/parser/ruby22.rb', line 8896

def _reduce_363(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_364(val, _values, result) ⇒ Object



8902
8903
8904
8905
8906
# File 'lib/parser/ruby22.rb', line 8902

def _reduce_364(val, _values, result)
                      result = val[1]

    result
end

#_reduce_365(val, _values, result) ⇒ Object



8908
8909
8910
8911
8912
# File 'lib/parser/ruby22.rb', line 8908

def _reduce_365(val, _values, result)
                      result = []

    result
end

#_reduce_366(val, _values, result) ⇒ Object



8914
8915
8916
8917
8918
8919
8920
8921
# File 'lib/parser/ruby22.rb', line 8914

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

    result
end

#_reduce_367(val, _values, result) ⇒ Object



8923
8924
8925
8926
8927
8928
8929
8930
8931
# File 'lib/parser/ruby22.rb', line 8923

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

    result
end

#_reduce_368(val, _values, result) ⇒ Object



8933
8934
8935
8936
8937
8938
8939
# File 'lib/parser/ruby22.rb', line 8933

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

    result
end

#_reduce_369(val, _values, result) ⇒ Object



8941
8942
8943
8944
8945
8946
8947
8948
# File 'lib/parser/ruby22.rb', line 8941

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

    result
end

#_reduce_37(val, _values, result) ⇒ Object



7243
7244
7245
7246
7247
# File 'lib/parser/ruby22.rb', line 7243

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

    result
end

#_reduce_370(val, _values, result) ⇒ Object



8950
8951
8952
8953
8954
8955
8956
# File 'lib/parser/ruby22.rb', line 8950

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

    result
end

#_reduce_372(val, _values, result) ⇒ Object

reduce 371 omitted



8960
8961
8962
8963
8964
8965
8966
8967
# File 'lib/parser/ruby22.rb', line 8960

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

    result
end

#_reduce_373(val, _values, result) ⇒ Object



8969
8970
8971
8972
8973
8974
8975
8976
8977
# File 'lib/parser/ruby22.rb', line 8969

def _reduce_373(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_374(val, _values, result) ⇒ Object



8979
8980
8981
8982
8983
8984
8985
# File 'lib/parser/ruby22.rb', line 8979

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

    result
end

#_reduce_375(val, _values, result) ⇒ Object



8987
8988
8989
8990
8991
8992
8993
8994
# File 'lib/parser/ruby22.rb', line 8987

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

    result
end

#_reduce_376(val, _values, result) ⇒ Object



8996
8997
8998
8999
9000
9001
# File 'lib/parser/ruby22.rb', line 8996

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

    result
end

#_reduce_377(val, _values, result) ⇒ Object



9003
9004
9005
9006
9007
9008
9009
# File 'lib/parser/ruby22.rb', line 9003

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

    result
end

#_reduce_378(val, _values, result) ⇒ Object



9011
9012
9013
9014
9015
9016
# File 'lib/parser/ruby22.rb', line 9011

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

    result
end

#_reduce_379(val, _values, result) ⇒ Object



9018
9019
9020
9021
9022
9023
9024
# File 'lib/parser/ruby22.rb', line 9018

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

    result
end

#_reduce_38(val, _values, result) ⇒ Object



7249
7250
7251
7252
7253
7254
# File 'lib/parser/ruby22.rb', line 7249

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

    result
end

#_reduce_381(val, _values, result) ⇒ Object

reduce 380 omitted



9028
9029
9030
9031
9032
# File 'lib/parser/ruby22.rb', line 9028

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

    result
end

#_reduce_382(val, _values, result) ⇒ Object



9034
9035
9036
9037
9038
# File 'lib/parser/ruby22.rb', line 9034

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

    result
end

#_reduce_383(val, _values, result) ⇒ Object



9040
9041
9042
9043
9044
# File 'lib/parser/ruby22.rb', line 9040

def _reduce_383(val, _values, result)
                      result = @builder.args(val[0], val[1], val[2])

    result
end

#_reduce_384(val, _values, result) ⇒ Object



9046
9047
9048
9049
9050
# File 'lib/parser/ruby22.rb', line 9046

def _reduce_384(val, _values, result)
                      result = @builder.args(val[0], [], val[0])

    result
end

#_reduce_385(val, _values, result) ⇒ Object



9052
9053
9054
9055
9056
# File 'lib/parser/ruby22.rb', line 9052

def _reduce_385(val, _values, result)
                      result = @builder.args(val[0], val[1].concat(val[2]), val[3])

    result
end

#_reduce_386(val, _values, result) ⇒ Object



9058
9059
9060
9061
9062
# File 'lib/parser/ruby22.rb', line 9058

def _reduce_386(val, _values, result)
                      result = []

    result
end

#_reduce_387(val, _values, result) ⇒ Object



9064
9065
9066
9067
9068
# File 'lib/parser/ruby22.rb', line 9064

def _reduce_387(val, _values, result)
                      result = val[2]

    result
end

#_reduce_388(val, _values, result) ⇒ Object



9070
9071
9072
9073
9074
# File 'lib/parser/ruby22.rb', line 9070

def _reduce_388(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_389(val, _values, result) ⇒ Object



9076
9077
9078
9079
9080
# File 'lib/parser/ruby22.rb', line 9076

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

    result
end

#_reduce_39(val, _values, result) ⇒ Object



7256
7257
7258
7259
7260
# File 'lib/parser/ruby22.rb', line 7256

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

    result
end

#_reduce_390(val, _values, result) ⇒ Object



9082
9083
9084
9085
9086
9087
# File 'lib/parser/ruby22.rb', line 9082

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

    result
end

#_reduce_392(val, _values, result) ⇒ Object

reduce 391 omitted



9091
9092
9093
9094
9095
# File 'lib/parser/ruby22.rb', line 9091

def _reduce_392(val, _values, result)
                      @static_env.extend_dynamic

    result
end

#_reduce_393(val, _values, result) ⇒ Object



9097
9098
9099
9100
9101
9102
# File 'lib/parser/ruby22.rb', line 9097

def _reduce_393(val, _values, result)
                      result = @lexer.cmdarg.dup
                      @lexer.cmdarg.clear

    result
end

#_reduce_394(val, _values, result) ⇒ Object



9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
# File 'lib/parser/ruby22.rb', line 9104

def _reduce_394(val, _values, result)
                      @lexer.cmdarg = val[2]
                      @lexer.cmdarg.lexpop

                      result = [ val[1], val[3] ]

                      @static_env.unextend

    result
end

#_reduce_395(val, _values, result) ⇒ Object



9115
9116
9117
9118
9119
# File 'lib/parser/ruby22.rb', line 9115

def _reduce_395(val, _values, result)
                      result = @builder.args(val[0], val[1].concat(val[2]), val[3])

    result
end

#_reduce_396(val, _values, result) ⇒ Object



9121
9122
9123
9124
9125
# File 'lib/parser/ruby22.rb', line 9121

def _reduce_396(val, _values, result)
                      result = @builder.args(nil, val[0], nil)

    result
end

#_reduce_397(val, _values, result) ⇒ Object



9127
9128
9129
9130
9131
9132
# File 'lib/parser/ruby22.rb', line 9127

def _reduce_397(val, _values, result)
                      result = @context.dup
                      @context.in_lambda = true

    result
end

#_reduce_398(val, _values, result) ⇒ Object



9134
9135
9136
9137
9138
9139
# File 'lib/parser/ruby22.rb', line 9134

def _reduce_398(val, _values, result)
                      result = [ val[0], val[2], val[3] ]
                      @context.in_lambda = val[1].in_lambda

    result
end

#_reduce_399(val, _values, result) ⇒ Object



9141
9142
9143
9144
9145
9146
# File 'lib/parser/ruby22.rb', line 9141

def _reduce_399(val, _values, result)
                      result = @context.dup
                      @context.in_lambda = true

    result
end

#_reduce_4(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_400(val, _values, result) ⇒ Object



9148
9149
9150
9151
9152
9153
# File 'lib/parser/ruby22.rb', line 9148

def _reduce_400(val, _values, result)
                      result = [ val[0], val[2], val[3] ]
                      @context.in_lambda = val[1].in_lambda

    result
end

#_reduce_401(val, _values, result) ⇒ Object



9155
9156
9157
9158
9159
9160
9161
# File 'lib/parser/ruby22.rb', line 9155

def _reduce_401(val, _values, result)
                      @static_env.extend_dynamic
                      result = @context.dup
                      @context.in_block = true

    result
end

#_reduce_402(val, _values, result) ⇒ Object



9163
9164
9165
9166
9167
9168
9169
9170
# File 'lib/parser/ruby22.rb', line 9163

def _reduce_402(val, _values, result)
                      result = [ val[0], val[2], val[3], val[4] ]

                      @static_env.unextend
                      @context.in_block = val[1].in_block

    result
end

#_reduce_403(val, _values, result) ⇒ Object



9172
9173
9174
9175
9176
9177
9178
# File 'lib/parser/ruby22.rb', line 9172

def _reduce_403(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_404(val, _values, result) ⇒ Object



9180
9181
9182
9183
9184
9185
9186
# File 'lib/parser/ruby22.rb', line 9180

def _reduce_404(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_405(val, _values, result) ⇒ Object



9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
# File 'lib/parser/ruby22.rb', line 9188

def _reduce_405(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_406(val, _values, result) ⇒ Object



9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
# File 'lib/parser/ruby22.rb', line 9200

def _reduce_406(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_407(val, _values, result) ⇒ Object



9211
9212
9213
9214
9215
9216
9217
# File 'lib/parser/ruby22.rb', line 9211

def _reduce_407(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_408(val, _values, result) ⇒ Object



9219
9220
9221
9222
9223
9224
9225
# File 'lib/parser/ruby22.rb', line 9219

def _reduce_408(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_409(val, _values, result) ⇒ Object



9227
9228
9229
9230
9231
9232
9233
# File 'lib/parser/ruby22.rb', line 9227

def _reduce_409(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_41(val, _values, result) ⇒ Object

reduce 40 omitted



7264
7265
7266
7267
7268
# File 'lib/parser/ruby22.rb', line 7264

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

    result
end

#_reduce_410(val, _values, result) ⇒ Object



9235
9236
9237
9238
9239
# File 'lib/parser/ruby22.rb', line 9235

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

    result
end

#_reduce_411(val, _values, result) ⇒ Object



9241
9242
9243
9244
9245
9246
9247
# File 'lib/parser/ruby22.rb', line 9241

def _reduce_411(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_412(val, _values, result) ⇒ Object



9249
9250
9251
9252
9253
9254
9255
# File 'lib/parser/ruby22.rb', line 9249

def _reduce_412(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_413(val, _values, result) ⇒ Object



9257
9258
9259
9260
9261
9262
9263
# File 'lib/parser/ruby22.rb', line 9257

def _reduce_413(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_414(val, _values, result) ⇒ Object



9265
9266
9267
9268
9269
# File 'lib/parser/ruby22.rb', line 9265

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

    result
end

#_reduce_415(val, _values, result) ⇒ Object



9271
9272
9273
9274
9275
# File 'lib/parser/ruby22.rb', line 9271

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

    result
end

#_reduce_416(val, _values, result) ⇒ Object



9277
9278
9279
9280
9281
9282
9283
# File 'lib/parser/ruby22.rb', line 9277

def _reduce_416(val, _values, result)
                      @static_env.extend_dynamic
                      result = @context.dup
                      @context.in_block = true

    result
end

#_reduce_417(val, _values, result) ⇒ Object



9285
9286
9287
9288
9289
9290
9291
9292
# File 'lib/parser/ruby22.rb', line 9285

def _reduce_417(val, _values, result)
                      result = [ val[0], val[2], val[3], val[4] ]

                      @static_env.unextend
                      @context.in_block = val[1].in_block

    result
end

#_reduce_418(val, _values, result) ⇒ Object



9294
9295
9296
9297
9298
9299
9300
# File 'lib/parser/ruby22.rb', line 9294

def _reduce_418(val, _values, result)
                      @static_env.extend_dynamic
                      result = @context.dup
                      @context.in_block = true

    result
end

#_reduce_419(val, _values, result) ⇒ Object



9302
9303
9304
9305
9306
9307
9308
9309
# File 'lib/parser/ruby22.rb', line 9302

def _reduce_419(val, _values, result)
                      result = [ val[0], val[2], val[3], val[4] ]

                      @static_env.unextend
                      @context.in_block = val[1].in_block

    result
end

#_reduce_42(val, _values, result) ⇒ Object



7270
7271
7272
7273
7274
# File 'lib/parser/ruby22.rb', line 7270

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

    result
end

#_reduce_420(val, _values, result) ⇒ Object



9311
9312
9313
9314
9315
9316
# File 'lib/parser/ruby22.rb', line 9311

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

    result
end

#_reduce_421(val, _values, result) ⇒ Object



9318
9319
9320
9321
9322
# File 'lib/parser/ruby22.rb', line 9318

def _reduce_421(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_423(val, _values, result) ⇒ Object

reduce 422 omitted



9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
# File 'lib/parser/ruby22.rb', line 9326

def _reduce_423(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_424(val, _values, result) ⇒ Object



9341
9342
9343
9344
9345
# File 'lib/parser/ruby22.rb', line 9341

def _reduce_424(val, _values, result)
                      result = []

    result
end

#_reduce_425(val, _values, result) ⇒ Object



9347
9348
9349
9350
9351
# File 'lib/parser/ruby22.rb', line 9347

def _reduce_425(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_428(val, _values, result) ⇒ Object

reduce 427 omitted



9357
9358
9359
9360
9361
# File 'lib/parser/ruby22.rb', line 9357

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

    result
end

#_reduce_430(val, _values, result) ⇒ Object

reduce 429 omitted



9365
9366
9367
9368
9369
# File 'lib/parser/ruby22.rb', line 9365

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

    result
end

#_reduce_435(val, _values, result) ⇒ Object

reduce 434 omitted



9379
9380
9381
9382
9383
# File 'lib/parser/ruby22.rb', line 9379

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

    result
end

#_reduce_436(val, _values, result) ⇒ Object



9385
9386
9387
9388
9389
# File 'lib/parser/ruby22.rb', line 9385

def _reduce_436(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_437(val, _values, result) ⇒ Object



9391
9392
9393
9394
9395
# File 'lib/parser/ruby22.rb', line 9391

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

    result
end

#_reduce_438(val, _values, result) ⇒ Object



9397
9398
9399
9400
9401
# File 'lib/parser/ruby22.rb', line 9397

def _reduce_438(val, _values, result)
                      result = @builder.string_compose(val[0], val[1], val[2])

    result
end

#_reduce_439(val, _values, result) ⇒ Object



9403
9404
9405
9406
9407
# File 'lib/parser/ruby22.rb', line 9403

def _reduce_439(val, _values, result)
                      result = @builder.string(val[0])

    result
end

#_reduce_44(val, _values, result) ⇒ Object

reduce 43 omitted



7278
7279
7280
7281
7282
# File 'lib/parser/ruby22.rb', line 7278

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

    result
end

#_reduce_440(val, _values, result) ⇒ Object



9409
9410
9411
9412
9413
# File 'lib/parser/ruby22.rb', line 9409

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

    result
end

#_reduce_441(val, _values, result) ⇒ Object



9415
9416
9417
9418
9419
# File 'lib/parser/ruby22.rb', line 9415

def _reduce_441(val, _values, result)
                      result = @builder.xstring_compose(val[0], val[1], val[2])

    result
end

#_reduce_442(val, _values, result) ⇒ Object



9421
9422
9423
9424
9425
9426
# File 'lib/parser/ruby22.rb', line 9421

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

    result
end

#_reduce_443(val, _values, result) ⇒ Object



9428
9429
9430
9431
9432
# File 'lib/parser/ruby22.rb', line 9428

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

    result
end

#_reduce_444(val, _values, result) ⇒ Object



9434
9435
9436
9437
9438
# File 'lib/parser/ruby22.rb', line 9434

def _reduce_444(val, _values, result)
                      result = []

    result
end

#_reduce_445(val, _values, result) ⇒ Object



9440
9441
9442
9443
9444
# File 'lib/parser/ruby22.rb', line 9440

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

    result
end

#_reduce_446(val, _values, result) ⇒ Object



9446
9447
9448
9449
9450
# File 'lib/parser/ruby22.rb', line 9446

def _reduce_446(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_447(val, _values, result) ⇒ Object



9452
9453
9454
9455
9456
# File 'lib/parser/ruby22.rb', line 9452

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

    result
end

#_reduce_448(val, _values, result) ⇒ Object



9458
9459
9460
9461
9462
# File 'lib/parser/ruby22.rb', line 9458

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

    result
end

#_reduce_449(val, _values, result) ⇒ Object



9464
9465
9466
9467
9468
# File 'lib/parser/ruby22.rb', line 9464

def _reduce_449(val, _values, result)
                      result = []

    result
end

#_reduce_45(val, _values, result) ⇒ Object



7284
7285
7286
7287
7288
# File 'lib/parser/ruby22.rb', line 7284

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

    result
end

#_reduce_450(val, _values, result) ⇒ Object



9470
9471
9472
9473
9474
# File 'lib/parser/ruby22.rb', line 9470

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

    result
end

#_reduce_451(val, _values, result) ⇒ Object



9476
9477
9478
9479
9480
# File 'lib/parser/ruby22.rb', line 9476

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

    result
end

#_reduce_452(val, _values, result) ⇒ Object



9482
9483
9484
9485
9486
# File 'lib/parser/ruby22.rb', line 9482

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

    result
end

#_reduce_453(val, _values, result) ⇒ Object



9488
9489
9490
9491
9492
# File 'lib/parser/ruby22.rb', line 9488

def _reduce_453(val, _values, result)
                      result = []

    result
end

#_reduce_454(val, _values, result) ⇒ Object



9494
9495
9496
9497
9498
# File 'lib/parser/ruby22.rb', line 9494

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

    result
end

#_reduce_455(val, _values, result) ⇒ Object



9500
9501
9502
9503
9504
# File 'lib/parser/ruby22.rb', line 9500

def _reduce_455(val, _values, result)
                      result = []

    result
end

#_reduce_456(val, _values, result) ⇒ Object



9506
9507
9508
9509
9510
# File 'lib/parser/ruby22.rb', line 9506

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

    result
end

#_reduce_457(val, _values, result) ⇒ Object



9512
9513
9514
9515
9516
# File 'lib/parser/ruby22.rb', line 9512

def _reduce_457(val, _values, result)
                      result = []

    result
end

#_reduce_458(val, _values, result) ⇒ Object



9518
9519
9520
9521
9522
# File 'lib/parser/ruby22.rb', line 9518

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

    result
end

#_reduce_459(val, _values, result) ⇒ Object



9524
9525
9526
9527
9528
# File 'lib/parser/ruby22.rb', line 9524

def _reduce_459(val, _values, result)
                      result = []

    result
end

#_reduce_46(val, _values, result) ⇒ Object



7290
7291
7292
7293
7294
# File 'lib/parser/ruby22.rb', line 7290

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

    result
end

#_reduce_460(val, _values, result) ⇒ Object



9530
9531
9532
9533
9534
# File 'lib/parser/ruby22.rb', line 9530

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

    result
end

#_reduce_461(val, _values, result) ⇒ Object



9536
9537
9538
9539
9540
# File 'lib/parser/ruby22.rb', line 9536

def _reduce_461(val, _values, result)
                      result = []

    result
end

#_reduce_462(val, _values, result) ⇒ Object



9542
9543
9544
9545
9546
# File 'lib/parser/ruby22.rb', line 9542

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

    result
end

#_reduce_463(val, _values, result) ⇒ Object



9548
9549
9550
9551
9552
# File 'lib/parser/ruby22.rb', line 9548

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

    result
end

#_reduce_464(val, _values, result) ⇒ Object



9554
9555
9556
9557
9558
# File 'lib/parser/ruby22.rb', line 9554

def _reduce_464(val, _values, result)
                      result = val[1]

    result
end

#_reduce_465(val, _values, result) ⇒ Object



9560
9561
9562
9563
9564
9565
# File 'lib/parser/ruby22.rb', line 9560

def _reduce_465(val, _values, result)
                      @lexer.cond.push(false)
                      @lexer.cmdarg.push(false)

    result
end

#_reduce_466(val, _values, result) ⇒ Object



9567
9568
9569
9570
9571
9572
9573
9574
# File 'lib/parser/ruby22.rb', line 9567

def _reduce_466(val, _values, result)
                      @lexer.cond.lexpop
                      @lexer.cmdarg.lexpop

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

    result
end

#_reduce_467(val, _values, result) ⇒ Object



9576
9577
9578
9579
9580
# File 'lib/parser/ruby22.rb', line 9576

def _reduce_467(val, _values, result)
                      result = @builder.gvar(val[0])

    result
end

#_reduce_468(val, _values, result) ⇒ Object



9582
9583
9584
9585
9586
# File 'lib/parser/ruby22.rb', line 9582

def _reduce_468(val, _values, result)
                      result = @builder.ivar(val[0])

    result
end

#_reduce_469(val, _values, result) ⇒ Object



9588
9589
9590
9591
9592
# File 'lib/parser/ruby22.rb', line 9588

def _reduce_469(val, _values, result)
                      result = @builder.cvar(val[0])

    result
end

#_reduce_47(val, _values, result) ⇒ Object



7296
7297
7298
7299
7300
# File 'lib/parser/ruby22.rb', line 7296

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

    result
end

#_reduce_471(val, _values, result) ⇒ Object

reduce 470 omitted



9596
9597
9598
9599
9600
# File 'lib/parser/ruby22.rb', line 9596

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

    result
end

#_reduce_472(val, _values, result) ⇒ Object



9602
9603
9604
9605
9606
# File 'lib/parser/ruby22.rb', line 9602

def _reduce_472(val, _values, result)
                      result = @builder.symbol_compose(val[0], val[1], val[2])

    result
end

#_reduce_473(val, _values, result) ⇒ Object



9608
9609
9610
9611
9612
# File 'lib/parser/ruby22.rb', line 9608

def _reduce_473(val, _values, result)
                      result = val[0]

    result
end

#_reduce_474(val, _values, result) ⇒ Object



9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
# File 'lib/parser/ruby22.rb', line 9614

def _reduce_474(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_475(val, _values, result) ⇒ Object



9625
9626
9627
9628
9629
# File 'lib/parser/ruby22.rb', line 9625

def _reduce_475(val, _values, result)
                      result = @builder.integer(val[0])

    result
end

#_reduce_476(val, _values, result) ⇒ Object



9631
9632
9633
9634
9635
# File 'lib/parser/ruby22.rb', line 9631

def _reduce_476(val, _values, result)
                      result = @builder.float(val[0])

    result
end

#_reduce_477(val, _values, result) ⇒ Object



9637
9638
9639
9640
9641
# File 'lib/parser/ruby22.rb', line 9637

def _reduce_477(val, _values, result)
                      result = @builder.rational(val[0])

    result
end

#_reduce_478(val, _values, result) ⇒ Object



9643
9644
9645
9646
9647
# File 'lib/parser/ruby22.rb', line 9643

def _reduce_478(val, _values, result)
                      result = @builder.complex(val[0])

    result
end

#_reduce_479(val, _values, result) ⇒ Object



9649
9650
9651
9652
9653
# File 'lib/parser/ruby22.rb', line 9649

def _reduce_479(val, _values, result)
                      result = @builder.ident(val[0])

    result
end

#_reduce_480(val, _values, result) ⇒ Object



9655
9656
9657
9658
9659
# File 'lib/parser/ruby22.rb', line 9655

def _reduce_480(val, _values, result)
                      result = @builder.ivar(val[0])

    result
end

#_reduce_481(val, _values, result) ⇒ Object



9661
9662
9663
9664
9665
# File 'lib/parser/ruby22.rb', line 9661

def _reduce_481(val, _values, result)
                      result = @builder.gvar(val[0])

    result
end

#_reduce_482(val, _values, result) ⇒ Object



9667
9668
9669
9670
9671
# File 'lib/parser/ruby22.rb', line 9667

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

    result
end

#_reduce_483(val, _values, result) ⇒ Object



9673
9674
9675
9676
9677
# File 'lib/parser/ruby22.rb', line 9673

def _reduce_483(val, _values, result)
                      result = @builder.cvar(val[0])

    result
end

#_reduce_484(val, _values, result) ⇒ Object



9679
9680
9681
9682
9683
# File 'lib/parser/ruby22.rb', line 9679

def _reduce_484(val, _values, result)
                      result = @builder.nil(val[0])

    result
end

#_reduce_485(val, _values, result) ⇒ Object



9685
9686
9687
9688
9689
# File 'lib/parser/ruby22.rb', line 9685

def _reduce_485(val, _values, result)
                      result = @builder.self(val[0])

    result
end

#_reduce_486(val, _values, result) ⇒ Object



9691
9692
9693
9694
9695
# File 'lib/parser/ruby22.rb', line 9691

def _reduce_486(val, _values, result)
                      result = @builder.true(val[0])

    result
end

#_reduce_487(val, _values, result) ⇒ Object



9697
9698
9699
9700
9701
# File 'lib/parser/ruby22.rb', line 9697

def _reduce_487(val, _values, result)
                      result = @builder.false(val[0])

    result
end

#_reduce_488(val, _values, result) ⇒ Object



9703
9704
9705
9706
9707
# File 'lib/parser/ruby22.rb', line 9703

def _reduce_488(val, _values, result)
                      result = @builder.__FILE__(val[0])

    result
end

#_reduce_489(val, _values, result) ⇒ Object



9709
9710
9711
9712
9713
# File 'lib/parser/ruby22.rb', line 9709

def _reduce_489(val, _values, result)
                      result = @builder.__LINE__(val[0])

    result
end

#_reduce_490(val, _values, result) ⇒ Object



9715
9716
9717
9718
9719
# File 'lib/parser/ruby22.rb', line 9715

def _reduce_490(val, _values, result)
                      result = @builder.__ENCODING__(val[0])

    result
end

#_reduce_491(val, _values, result) ⇒ Object



9721
9722
9723
9724
9725
# File 'lib/parser/ruby22.rb', line 9721

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

    result
end

#_reduce_492(val, _values, result) ⇒ Object



9727
9728
9729
9730
9731
# File 'lib/parser/ruby22.rb', line 9727

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

    result
end

#_reduce_493(val, _values, result) ⇒ Object



9733
9734
9735
9736
9737
# File 'lib/parser/ruby22.rb', line 9733

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

    result
end

#_reduce_494(val, _values, result) ⇒ Object



9739
9740
9741
9742
9743
# File 'lib/parser/ruby22.rb', line 9739

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

    result
end

#_reduce_495(val, _values, result) ⇒ Object



9745
9746
9747
9748
9749
# File 'lib/parser/ruby22.rb', line 9745

def _reduce_495(val, _values, result)
                      result = @builder.nth_ref(val[0])

    result
end

#_reduce_496(val, _values, result) ⇒ Object



9751
9752
9753
9754
9755
# File 'lib/parser/ruby22.rb', line 9751

def _reduce_496(val, _values, result)
                      result = @builder.back_ref(val[0])

    result
end

#_reduce_497(val, _values, result) ⇒ Object



9757
9758
9759
9760
9761
# File 'lib/parser/ruby22.rb', line 9757

def _reduce_497(val, _values, result)
                      result = nil

    result
end

#_reduce_498(val, _values, result) ⇒ Object



9763
9764
9765
9766
9767
# File 'lib/parser/ruby22.rb', line 9763

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

    result
end

#_reduce_499(val, _values, result) ⇒ Object



9769
9770
9771
9772
9773
# File 'lib/parser/ruby22.rb', line 9769

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

    result
end

#_reduce_5(val, _values, result) ⇒ Object



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

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

    result
end

#_reduce_500(val, _values, result) ⇒ Object



9775
9776
9777
9778
9779
9780
# File 'lib/parser/ruby22.rb', line 9775

def _reduce_500(val, _values, result)
                      yyerrok
                      result = nil

    result
end

#_reduce_501(val, _values, result) ⇒ Object



9782
9783
9784
9785
9786
9787
9788
# File 'lib/parser/ruby22.rb', line 9782

def _reduce_501(val, _values, result)
                      result = @builder.args(val[0], val[1], val[2])

                      @lexer.state = :expr_value

    result
end

#_reduce_502(val, _values, result) ⇒ Object



9790
9791
9792
9793
9794
9795
# File 'lib/parser/ruby22.rb', line 9790

def _reduce_502(val, _values, result)
                      result = @context.in_kwarg
                      @context.in_kwarg = true

    result
end

#_reduce_503(val, _values, result) ⇒ Object



9797
9798
9799
9800
9801
9802
# File 'lib/parser/ruby22.rb', line 9797

def _reduce_503(val, _values, result)
                      @context.in_kwarg = val[0]
                      result = @builder.args(nil, val[1], nil)

    result
end

#_reduce_504(val, _values, result) ⇒ Object



9804
9805
9806
9807
9808
# File 'lib/parser/ruby22.rb', line 9804

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

    result
end

#_reduce_505(val, _values, result) ⇒ Object



9810
9811
9812
9813
9814
# File 'lib/parser/ruby22.rb', line 9810

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

    result
end

#_reduce_506(val, _values, result) ⇒ Object



9816
9817
9818
9819
9820
# File 'lib/parser/ruby22.rb', line 9816

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

    result
end

#_reduce_507(val, _values, result) ⇒ Object



9822
9823
9824
9825
9826
# File 'lib/parser/ruby22.rb', line 9822

def _reduce_507(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_508(val, _values, result) ⇒ Object



9828
9829
9830
9831
9832
# File 'lib/parser/ruby22.rb', line 9828

def _reduce_508(val, _values, result)
                      result = val[1]

    result
end

#_reduce_509(val, _values, result) ⇒ Object



9834
9835
9836
9837
9838
# File 'lib/parser/ruby22.rb', line 9834

def _reduce_509(val, _values, result)
                      result = []

    result
end

#_reduce_510(val, _values, result) ⇒ Object



9840
9841
9842
9843
9844
9845
9846
9847
# File 'lib/parser/ruby22.rb', line 9840

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

    result
end

#_reduce_511(val, _values, result) ⇒ Object



9849
9850
9851
9852
9853
9854
9855
9856
9857
# File 'lib/parser/ruby22.rb', line 9849

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

    result
end

#_reduce_512(val, _values, result) ⇒ Object



9859
9860
9861
9862
9863
9864
9865
# File 'lib/parser/ruby22.rb', line 9859

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

    result
end

#_reduce_513(val, _values, result) ⇒ Object



9867
9868
9869
9870
9871
9872
9873
9874
# File 'lib/parser/ruby22.rb', line 9867

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

    result
end

#_reduce_514(val, _values, result) ⇒ Object



9876
9877
9878
9879
9880
9881
9882
# File 'lib/parser/ruby22.rb', line 9876

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

    result
end

#_reduce_515(val, _values, result) ⇒ Object



9884
9885
9886
9887
9888
9889
9890
9891
# File 'lib/parser/ruby22.rb', line 9884

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

    result
end

#_reduce_516(val, _values, result) ⇒ Object



9893
9894
9895
9896
9897
9898
# File 'lib/parser/ruby22.rb', line 9893

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

    result
end

#_reduce_517(val, _values, result) ⇒ Object



9900
9901
9902
9903
9904
9905
9906
# File 'lib/parser/ruby22.rb', line 9900

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

    result
end

#_reduce_518(val, _values, result) ⇒ Object



9908
9909
9910
9911
9912
9913
9914
9915
# File 'lib/parser/ruby22.rb', line 9908

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

    result
end

#_reduce_519(val, _values, result) ⇒ Object



9917
9918
9919
9920
9921
9922
# File 'lib/parser/ruby22.rb', line 9917

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

    result
end

#_reduce_520(val, _values, result) ⇒ Object



9924
9925
9926
9927
9928
9929
9930
# File 'lib/parser/ruby22.rb', line 9924

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

    result
end

#_reduce_521(val, _values, result) ⇒ Object



9932
9933
9934
9935
9936
9937
# File 'lib/parser/ruby22.rb', line 9932

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

    result
end

#_reduce_522(val, _values, result) ⇒ Object



9939
9940
9941
9942
9943
9944
9945
# File 'lib/parser/ruby22.rb', line 9939

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

    result
end

#_reduce_523(val, _values, result) ⇒ Object



9947
9948
9949
9950
9951
# File 'lib/parser/ruby22.rb', line 9947

def _reduce_523(val, _values, result)
                      result = val[0]

    result
end

#_reduce_524(val, _values, result) ⇒ Object



9953
9954
9955
9956
9957
# File 'lib/parser/ruby22.rb', line 9953

def _reduce_524(val, _values, result)
                      result = []

    result
end

#_reduce_525(val, _values, result) ⇒ Object



9959
9960
9961
9962
9963
# File 'lib/parser/ruby22.rb', line 9959

def _reduce_525(val, _values, result)
                      diagnostic :error, :argument_const, nil, val[0]

    result
end

#_reduce_526(val, _values, result) ⇒ Object



9965
9966
9967
9968
9969
# File 'lib/parser/ruby22.rb', line 9965

def _reduce_526(val, _values, result)
                      diagnostic :error, :argument_ivar, nil, val[0]

    result
end

#_reduce_527(val, _values, result) ⇒ Object



9971
9972
9973
9974
9975
# File 'lib/parser/ruby22.rb', line 9971

def _reduce_527(val, _values, result)
                      diagnostic :error, :argument_gvar, nil, val[0]

    result
end

#_reduce_528(val, _values, result) ⇒ Object



9977
9978
9979
9980
9981
# File 'lib/parser/ruby22.rb', line 9977

def _reduce_528(val, _values, result)
                      diagnostic :error, :argument_cvar, nil, val[0]

    result
end

#_reduce_53(val, _values, result) ⇒ Object

reduce 52 omitted



7312
7313
7314
7315
7316
7317
# File 'lib/parser/ruby22.rb', line 7312

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

    result
end

#_reduce_530(val, _values, result) ⇒ Object

reduce 529 omitted



9985
9986
9987
9988
9989
9990
9991
# File 'lib/parser/ruby22.rb', line 9985

def _reduce_530(val, _values, result)
                      @static_env.declare val[0][0]

                      result = val[0]

    result
end

#_reduce_531(val, _values, result) ⇒ Object



9993
9994
9995
9996
9997
# File 'lib/parser/ruby22.rb', line 9993

def _reduce_531(val, _values, result)
                      result = val[0]

    result
end

#_reduce_532(val, _values, result) ⇒ Object



9999
10000
10001
10002
10003
# File 'lib/parser/ruby22.rb', line 9999

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

    result
end

#_reduce_533(val, _values, result) ⇒ Object



10005
10006
10007
10008
10009
# File 'lib/parser/ruby22.rb', line 10005

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

    result
end

#_reduce_534(val, _values, result) ⇒ Object



10011
10012
10013
10014
10015
# File 'lib/parser/ruby22.rb', line 10011

def _reduce_534(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_535(val, _values, result) ⇒ Object



10017
10018
10019
10020
10021
# File 'lib/parser/ruby22.rb', line 10017

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

    result
end

#_reduce_536(val, _values, result) ⇒ Object



10023
10024
10025
10026
10027
10028
10029
10030
10031
# File 'lib/parser/ruby22.rb', line 10023

def _reduce_536(val, _values, result)
                      check_kwarg_name(val[0])

                      @static_env.declare val[0][0]

                      result = val[0]

    result
end

#_reduce_537(val, _values, result) ⇒ Object



10033
10034
10035
10036
10037
# File 'lib/parser/ruby22.rb', line 10033

def _reduce_537(val, _values, result)
                      result = @builder.kwoptarg(val[0], val[1])

    result
end

#_reduce_538(val, _values, result) ⇒ Object



10039
10040
10041
10042
10043
# File 'lib/parser/ruby22.rb', line 10039

def _reduce_538(val, _values, result)
                      result = @builder.kwarg(val[0])

    result
end

#_reduce_539(val, _values, result) ⇒ Object



10045
10046
10047
10048
10049
# File 'lib/parser/ruby22.rb', line 10045

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

    result
end

#_reduce_54(val, _values, result) ⇒ Object



7319
7320
7321
7322
7323
7324
7325
# File 'lib/parser/ruby22.rb', line 7319

def _reduce_54(val, _values, result)
                      @static_env.extend_dynamic
                      result = @context.dup
                      @context.in_block = true

    result
end

#_reduce_540(val, _values, result) ⇒ Object



10051
10052
10053
10054
10055
# File 'lib/parser/ruby22.rb', line 10051

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

    result
end

#_reduce_541(val, _values, result) ⇒ Object



10057
10058
10059
10060
10061
# File 'lib/parser/ruby22.rb', line 10057

def _reduce_541(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_542(val, _values, result) ⇒ Object



10063
10064
10065
10066
10067
# File 'lib/parser/ruby22.rb', line 10063

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

    result
end

#_reduce_543(val, _values, result) ⇒ Object



10069
10070
10071
10072
10073
# File 'lib/parser/ruby22.rb', line 10069

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

    result
end

#_reduce_544(val, _values, result) ⇒ Object



10075
10076
10077
10078
10079
# File 'lib/parser/ruby22.rb', line 10075

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

    result
end

#_reduce_547(val, _values, result) ⇒ Object

reduce 546 omitted



10085
10086
10087
10088
10089
10090
10091
# File 'lib/parser/ruby22.rb', line 10085

def _reduce_547(val, _values, result)
                      @static_env.declare val[1][0]

                      result = [ @builder.kwrestarg(val[0], val[1]) ]

    result
end

#_reduce_548(val, _values, result) ⇒ Object



10093
10094
10095
10096
10097
# File 'lib/parser/ruby22.rb', line 10093

def _reduce_548(val, _values, result)
                      result = [ @builder.kwrestarg(val[0]) ]

    result
end

#_reduce_549(val, _values, result) ⇒ Object



10099
10100
10101
10102
10103
# File 'lib/parser/ruby22.rb', line 10099

def _reduce_549(val, _values, result)
                      result = @builder.optarg(val[0], val[1], val[2])

    result
end

#_reduce_55(val, _values, result) ⇒ Object



7327
7328
7329
7330
7331
7332
7333
7334
# File 'lib/parser/ruby22.rb', line 7327

def _reduce_55(val, _values, result)
                      result = [ val[0], val[2], val[3], val[4] ]

                      @static_env.unextend
                      @context.in_block = val[1].in_block

    result
end

#_reduce_550(val, _values, result) ⇒ Object



10105
10106
10107
10108
10109
# File 'lib/parser/ruby22.rb', line 10105

def _reduce_550(val, _values, result)
                      result = @builder.optarg(val[0], val[1], val[2])

    result
end

#_reduce_551(val, _values, result) ⇒ Object



10111
10112
10113
10114
10115
# File 'lib/parser/ruby22.rb', line 10111

def _reduce_551(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_552(val, _values, result) ⇒ Object



10117
10118
10119
10120
10121
# File 'lib/parser/ruby22.rb', line 10117

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

    result
end

#_reduce_553(val, _values, result) ⇒ Object



10123
10124
10125
10126
10127
# File 'lib/parser/ruby22.rb', line 10123

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

    result
end

#_reduce_554(val, _values, result) ⇒ Object



10129
10130
10131
10132
10133
# File 'lib/parser/ruby22.rb', line 10129

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

    result
end

#_reduce_557(val, _values, result) ⇒ Object

reduce 556 omitted



10139
10140
10141
10142
10143
10144
10145
# File 'lib/parser/ruby22.rb', line 10139

def _reduce_557(val, _values, result)
                      @static_env.declare val[1][0]

                      result = [ @builder.restarg(val[0], val[1]) ]

    result
end

#_reduce_558(val, _values, result) ⇒ Object



10147
10148
10149
10150
10151
# File 'lib/parser/ruby22.rb', line 10147

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

    result
end

#_reduce_561(val, _values, result) ⇒ Object

reduce 560 omitted



10157
10158
10159
10160
10161
10162
10163
# File 'lib/parser/ruby22.rb', line 10157

def _reduce_561(val, _values, result)
                      @static_env.declare val[1][0]

                      result = @builder.blockarg(val[0], val[1])

    result
end

#_reduce_562(val, _values, result) ⇒ Object



10165
10166
10167
10168
10169
# File 'lib/parser/ruby22.rb', line 10165

def _reduce_562(val, _values, result)
                      result = [ val[1] ]

    result
end

#_reduce_563(val, _values, result) ⇒ Object



10171
10172
10173
10174
10175
# File 'lib/parser/ruby22.rb', line 10171

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

    result
end

#_reduce_565(val, _values, result) ⇒ Object

reduce 564 omitted



10179
10180
10181
10182
10183
# File 'lib/parser/ruby22.rb', line 10179

def _reduce_565(val, _values, result)
                      result = val[1]

    result
end

#_reduce_566(val, _values, result) ⇒ Object



10185
10186
10187
10188
10189
# File 'lib/parser/ruby22.rb', line 10185

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

    result
end

#_reduce_568(val, _values, result) ⇒ Object

reduce 567 omitted



10193
10194
10195
10196
10197
# File 'lib/parser/ruby22.rb', line 10193

def _reduce_568(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_569(val, _values, result) ⇒ Object



10199
10200
10201
10202
10203
# File 'lib/parser/ruby22.rb', line 10199

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

    result
end

#_reduce_57(val, _values, result) ⇒ Object

reduce 56 omitted



7338
7339
7340
7341
7342
7343
# File 'lib/parser/ruby22.rb', line 7338

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

    result
end

#_reduce_570(val, _values, result) ⇒ Object



10205
10206
10207
10208
10209
# File 'lib/parser/ruby22.rb', line 10205

def _reduce_570(val, _values, result)
                      result = @builder.pair(val[0], val[1], val[2])

    result
end

#_reduce_571(val, _values, result) ⇒ Object



10211
10212
10213
10214
10215
# File 'lib/parser/ruby22.rb', line 10211

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

    result
end

#_reduce_572(val, _values, result) ⇒ Object



10217
10218
10219
10220
10221
# File 'lib/parser/ruby22.rb', line 10217

def _reduce_572(val, _values, result)
                      result = @builder.pair_quoted(val[0], val[1], val[2], val[3])

    result
end

#_reduce_573(val, _values, result) ⇒ Object



10223
10224
10225
10226
10227
# File 'lib/parser/ruby22.rb', line 10223

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

    result
end

#_reduce_58(val, _values, result) ⇒ Object



7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
# File 'lib/parser/ruby22.rb', line 7345

def _reduce_58(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_59(val, _values, result) ⇒ Object



7356
7357
7358
7359
7360
7361
# File 'lib/parser/ruby22.rb', line 7356

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

    result
end

#_reduce_590(val, _values, result) ⇒ Object

reduce 589 omitted



10261
10262
10263
10264
10265
# File 'lib/parser/ruby22.rb', line 10261

def _reduce_590(val, _values, result)
                      result = val[1]

    result
end

#_reduce_591(val, _values, result) ⇒ Object



10267
10268
10269
10270
10271
# File 'lib/parser/ruby22.rb', line 10267

def _reduce_591(val, _values, result)
                      result = val[1]

    result
end

#_reduce_595(val, _values, result) ⇒ Object

reduce 594 omitted



10279
10280
10281
10282
10283
# File 'lib/parser/ruby22.rb', line 10279

def _reduce_595(val, _values, result)
                    yyerrok

    result
end

#_reduce_599(val, _values, result) ⇒ Object

reduce 598 omitted



10291
10292
10293
10294
10295
# File 'lib/parser/ruby22.rb', line 10291

def _reduce_599(val, _values, result)
                    result = nil

    result
end

#_reduce_6(val, _values, result) ⇒ Object



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

def _reduce_6(val, _values, result)
                      result = [ val[1] ]

    result
end

#_reduce_60(val, _values, result) ⇒ Object



7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
# File 'lib/parser/ruby22.rb', line 7363

def _reduce_60(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_61(val, _values, result) ⇒ Object



7374
7375
7376
7377
7378
7379
# File 'lib/parser/ruby22.rb', line 7374

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

    result
end

#_reduce_62(val, _values, result) ⇒ Object



7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
# File 'lib/parser/ruby22.rb', line 7381

def _reduce_62(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_63(val, _values, result) ⇒ Object



7392
7393
7394
7395
7396
7397
# File 'lib/parser/ruby22.rb', line 7392

def _reduce_63(val, _values, result)
                      result = @builder.keyword_cmd(:super, val[0],
                                  nil, val[1], nil)

    result
end

#_reduce_64(val, _values, result) ⇒ Object



7399
7400
7401
7402
7403
7404
# File 'lib/parser/ruby22.rb', line 7399

def _reduce_64(val, _values, result)
                      result = @builder.keyword_cmd(:yield, val[0],
                                  nil, val[1], nil)

    result
end

#_reduce_65(val, _values, result) ⇒ Object



7406
7407
7408
7409
7410
7411
# File 'lib/parser/ruby22.rb', line 7406

def _reduce_65(val, _values, result)
                      result = @builder.keyword_cmd(:return, val[0],
                                  nil, val[1], nil)

    result
end

#_reduce_66(val, _values, result) ⇒ Object



7413
7414
7415
7416
7417
7418
# File 'lib/parser/ruby22.rb', line 7413

def _reduce_66(val, _values, result)
                      result = @builder.keyword_cmd(:break, val[0],
                                  nil, val[1], nil)

    result
end

#_reduce_67(val, _values, result) ⇒ Object



7420
7421
7422
7423
7424
7425
# File 'lib/parser/ruby22.rb', line 7420

def _reduce_67(val, _values, result)
                      result = @builder.keyword_cmd(:next, val[0],
                                  nil, val[1], nil)

    result
end

#_reduce_68(val, _values, result) ⇒ Object



7427
7428
7429
7430
7431
# File 'lib/parser/ruby22.rb', line 7427

def _reduce_68(val, _values, result)
                      result = @builder.multi_lhs(nil, val[0], nil)

    result
end

#_reduce_69(val, _values, result) ⇒ Object



7433
7434
7435
7436
7437
# File 'lib/parser/ruby22.rb', line 7433

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

    result
end

#_reduce_70(val, _values, result) ⇒ Object



7439
7440
7441
7442
7443
# File 'lib/parser/ruby22.rb', line 7439

def _reduce_70(val, _values, result)
                      result = @builder.multi_lhs(nil, val[0], nil)

    result
end

#_reduce_71(val, _values, result) ⇒ Object



7445
7446
7447
7448
7449
# File 'lib/parser/ruby22.rb', line 7445

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

    result
end

#_reduce_73(val, _values, result) ⇒ Object

reduce 72 omitted



7453
7454
7455
7456
7457
7458
# File 'lib/parser/ruby22.rb', line 7453

def _reduce_73(val, _values, result)
                      result = val[0].
                                  push(val[1])

    result
end

#_reduce_74(val, _values, result) ⇒ Object



7460
7461
7462
7463
7464
7465
# File 'lib/parser/ruby22.rb', line 7460

def _reduce_74(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1], val[2]))

    result
end

#_reduce_75(val, _values, result) ⇒ Object



7467
7468
7469
7470
7471
7472
7473
# File 'lib/parser/ruby22.rb', line 7467

def _reduce_75(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1], val[2])).
                                  concat(val[4])

    result
end

#_reduce_76(val, _values, result) ⇒ Object



7475
7476
7477
7478
7479
7480
# File 'lib/parser/ruby22.rb', line 7475

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

    result
end

#_reduce_77(val, _values, result) ⇒ Object



7482
7483
7484
7485
7486
7487
7488
# File 'lib/parser/ruby22.rb', line 7482

def _reduce_77(val, _values, result)
                      result = val[0].
                                  push(@builder.splat(val[1])).
                                  concat(val[3])

    result
end

#_reduce_78(val, _values, result) ⇒ Object



7490
7491
7492
7493
7494
# File 'lib/parser/ruby22.rb', line 7490

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

    result
end

#_reduce_79(val, _values, result) ⇒ Object



7496
7497
7498
7499
7500
7501
# File 'lib/parser/ruby22.rb', line 7496

def _reduce_79(val, _values, result)
                      result = [ @builder.splat(val[0], val[1]),
                                 *val[3] ]

    result
end

#_reduce_8(val, _values, result) ⇒ Object

reduce 7 omitted



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

def _reduce_8(val, _values, result)
                      result = @builder.preexe(val[0], val[1], val[2], val[3])

    result
end

#_reduce_80(val, _values, result) ⇒ Object



7503
7504
7505
7506
7507
# File 'lib/parser/ruby22.rb', line 7503

def _reduce_80(val, _values, result)
                      result = [ @builder.splat(val[0]) ]

    result
end

#_reduce_81(val, _values, result) ⇒ Object



7509
7510
7511
7512
7513
7514
# File 'lib/parser/ruby22.rb', line 7509

def _reduce_81(val, _values, result)
                      result = [ @builder.splat(val[0]),
                                 *val[2] ]

    result
end

#_reduce_83(val, _values, result) ⇒ Object

reduce 82 omitted



7518
7519
7520
7521
7522
# File 'lib/parser/ruby22.rb', line 7518

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

    result
end

#_reduce_84(val, _values, result) ⇒ Object



7524
7525
7526
7527
7528
# File 'lib/parser/ruby22.rb', line 7524

def _reduce_84(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_85(val, _values, result) ⇒ Object



7530
7531
7532
7533
7534
# File 'lib/parser/ruby22.rb', line 7530

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

    result
end

#_reduce_86(val, _values, result) ⇒ Object



7536
7537
7538
7539
7540
# File 'lib/parser/ruby22.rb', line 7536

def _reduce_86(val, _values, result)
                      result = [ val[0] ]

    result
end

#_reduce_87(val, _values, result) ⇒ Object



7542
7543
7544
7545
7546
# File 'lib/parser/ruby22.rb', line 7542

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

    result
end

#_reduce_88(val, _values, result) ⇒ Object



7548
7549
7550
7551
7552
# File 'lib/parser/ruby22.rb', line 7548

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

    result
end

#_reduce_89(val, _values, result) ⇒ Object



7554
7555
7556
7557
7558
# File 'lib/parser/ruby22.rb', line 7554

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

    result
end

#_reduce_9(val, _values, result) ⇒ Object



7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
# File 'lib/parser/ruby22.rb', line 7048

def _reduce_9(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 :warning, :useless_else, nil, else_t
                      end

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

    result
end

#_reduce_90(val, _values, result) ⇒ Object



7560
7561
7562
7563
7564
# File 'lib/parser/ruby22.rb', line 7560

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

    result
end

#_reduce_91(val, _values, result) ⇒ Object



7566
7567
7568
7569
7570
# File 'lib/parser/ruby22.rb', line 7566

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

    result
end

#_reduce_92(val, _values, result) ⇒ Object



7572
7573
7574
7575
7576
# File 'lib/parser/ruby22.rb', line 7572

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

    result
end

#_reduce_93(val, _values, result) ⇒ Object



7578
7579
7580
7581
7582
# File 'lib/parser/ruby22.rb', line 7578

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

    result
end

#_reduce_94(val, _values, result) ⇒ Object



7584
7585
7586
7587
7588
7589
# File 'lib/parser/ruby22.rb', line 7584

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

    result
end

#_reduce_95(val, _values, result) ⇒ Object



7591
7592
7593
7594
7595
7596
# File 'lib/parser/ruby22.rb', line 7591

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

    result
end

#_reduce_96(val, _values, result) ⇒ Object



7598
7599
7600
7601
7602
# File 'lib/parser/ruby22.rb', line 7598

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

    result
end

#_reduce_97(val, _values, result) ⇒ Object



7604
7605
7606
7607
7608
# File 'lib/parser/ruby22.rb', line 7604

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

    result
end

#_reduce_98(val, _values, result) ⇒ Object



7610
7611
7612
7613
7614
# File 'lib/parser/ruby22.rb', line 7610

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

    result
end

#_reduce_99(val, _values, result) ⇒ Object



7616
7617
7618
7619
7620
# File 'lib/parser/ruby22.rb', line 7616

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

    result
end

#_reduce_none(val, _values, result) ⇒ Object



10297
10298
10299
# File 'lib/parser/ruby22.rb', line 10297

def _reduce_none(val, _values, result)
  val[0]
end

#default_encodingObject



21
22
23
# File 'lib/parser/ruby22.rb', line 21

def default_encoding
  Encoding::UTF_8
end

#local_popObject



31
32
33
34
35
# File 'lib/parser/ruby22.rb', line 31

def local_pop
  @static_env.unextend
  @lexer.cmdarg.pop
  @lexer.cond.pop
end

#local_pushObject



25
26
27
28
29
# File 'lib/parser/ruby22.rb', line 25

def local_push
  @static_env.extend_static
  @lexer.cmdarg.push(false)
  @lexer.cond.push(false)
end

#versionObject



17
18
19
# File 'lib/parser/ruby22.rb', line 17

def version
  22
end