Class: Parser::Ruby25
Constant Summary collapse
- Racc_arg =
[ racc_action_table, racc_action_check, racc_action_default, racc_action_pointer, racc_goto_table, racc_goto_check, racc_goto_default, racc_goto_pointer, racc_nt_base, racc_reduce_table, racc_token_table, racc_shift_n, racc_reduce_n, racc_use_result_var ]
- Racc_token_to_s_table =
[ "$end", "error", "kCLASS", "kMODULE", "kDEF", "kUNDEF", "kBEGIN", "kRESCUE", "kENSURE", "kEND", "kIF", "kUNLESS", "kTHEN", "kELSIF", "kELSE", "kCASE", "kWHEN", "kWHILE", "kUNTIL", "kFOR", "kBREAK", "kNEXT", "kREDO", "kRETRY", "kIN", "kDO", "kDO_COND", "kDO_BLOCK", "kDO_LAMBDA", "kRETURN", "kYIELD", "kSUPER", "kSELF", "kNIL", "kTRUE", "kFALSE", "kAND", "kOR", "kNOT", "kIF_MOD", "kUNLESS_MOD", "kWHILE_MOD", "kUNTIL_MOD", "kRESCUE_MOD", "kALIAS", "kDEFINED", "klBEGIN", "klEND", "k__LINE__", "k__FILE__", "k__ENCODING__", "tIDENTIFIER", "tFID", "tGVAR", "tIVAR", "tCONSTANT", "tLABEL", "tCVAR", "tNTH_REF", "tBACK_REF", "tSTRING_CONTENT", "tINTEGER", "tFLOAT", "tUPLUS", "tUMINUS", "tUNARY_NUM", "tPOW", "tCMP", "tEQ", "tEQQ", "tNEQ", "tGEQ", "tLEQ", "tANDOP", "tOROP", "tMATCH", "tNMATCH", "tDOT", "tDOT2", "tDOT3", "tAREF", "tASET", "tLSHFT", "tRSHFT", "tCOLON2", "tCOLON3", "tOP_ASGN", "tASSOC", "tLPAREN", "tLPAREN2", "tRPAREN", "tLPAREN_ARG", "tLBRACK", "tLBRACK2", "tRBRACK", "tLBRACE", "tLBRACE_ARG", "tSTAR", "tSTAR2", "tAMPER", "tAMPER2", "tTILDE", "tPERCENT", "tDIVIDE", "tDSTAR", "tPLUS", "tMINUS", "tLT", "tGT", "tPIPE", "tBANG", "tCARET", "tLCURLY", "tRCURLY", "tBACK_REF2", "tSYMBEG", "tSTRING_BEG", "tXSTRING_BEG", "tREGEXP_BEG", "tREGEXP_OPT", "tWORDS_BEG", "tQWORDS_BEG", "tSYMBOLS_BEG", "tQSYMBOLS_BEG", "tSTRING_DBEG", "tSTRING_DVAR", "tSTRING_END", "tSTRING_DEND", "tSTRING", "tSYMBOL", "tNL", "tEH", "tCOLON", "tCOMMA", "tSPACE", "tSEMI", "tLAMBDA", "tLAMBEG", "tCHARACTER", "tRATIONAL", "tIMAGINARY", "tLABEL_END", "tANDDOT", "tEQL", "tLOWEST", "$start", "program", "top_compstmt", "top_stmts", "opt_terms", "top_stmt", "terms", "stmt", "begin_block", "bodystmt", "compstmt", "opt_rescue", "opt_else", "opt_ensure", "stmts", "stmt_or_begin", "fitem", "undef_list", "expr_value", "command_asgn", "mlhs", "command_call", "lhs", "mrhs", "mrhs_arg", "expr", "@1", "command_rhs", "var_lhs", "primary_value", "opt_call_args", "rbracket", "call_op", "backref", "opt_nl", "arg", "expr_value_do", "do", "@2", "command", "block_command", "block_call", "dot_or_colon", "operation2", "command_args", "cmd_brace_block", "brace_body", "fcall", "@3", "operation", "k_return", "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", "@4", "arg_rhs", "simple_numeric", "rel_expr", "primary", "relop", "arg_value", "aref_args", "none", "args", "trailer", "assocs", "paren_args", "opt_paren_args", "opt_block_arg", "block_arg", "@5", "literal", "strings", "xstring", "regexp", "words", "qwords", "symbols", "qsymbols", "var_ref", "assoc_list", "brace_block", "method_call", "lambda", "then", "if_tail", "case_body", "for_var", "k_class", "superclass", "term", "k_module", "f_arglist", "singleton", "@6", "@7", "@8", "@9", "@10", "@11", "@12", "@13", "@14", "@15", "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", "opt_block_param", "block_param_def", "opt_bv_decl", "bv_decls", "bvar", "f_bad_arg", "f_larglist", "lambda_body", "@16", "@17", "f_args", "do_block", "@18", "@19", "do_body", "@20", "operation3", "@21", "@22", "@23", "@24", "@25", "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", "@26", "@27", "args_tail", "@28", "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
- #_reduce_10(val, _values, result) ⇒ Object
- #_reduce_100(val, _values, result) ⇒ Object
- #_reduce_101(val, _values, result) ⇒ Object
- #_reduce_102(val, _values, result) ⇒ Object
- #_reduce_103(val, _values, result) ⇒ Object
- #_reduce_104(val, _values, result) ⇒ Object
- #_reduce_105(val, _values, result) ⇒ Object
- #_reduce_106(val, _values, result) ⇒ Object
- #_reduce_107(val, _values, result) ⇒ Object
- #_reduce_108(val, _values, result) ⇒ Object
- #_reduce_109(val, _values, result) ⇒ Object
- #_reduce_11(val, _values, result) ⇒ Object
- #_reduce_110(val, _values, result) ⇒ Object
- #_reduce_111(val, _values, result) ⇒ Object
-
#_reduce_113(val, _values, result) ⇒ Object
reduce 112 omitted.
- #_reduce_114(val, _values, result) ⇒ Object
- #_reduce_115(val, _values, result) ⇒ Object
- #_reduce_12(val, _values, result) ⇒ Object
-
#_reduce_121(val, _values, result) ⇒ Object
reduce 120 omitted.
-
#_reduce_125(val, _values, result) ⇒ Object
reduce 124 omitted.
- #_reduce_126(val, _values, result) ⇒ Object
- #_reduce_127(val, _values, result) ⇒ Object
- #_reduce_13(val, _values, result) ⇒ Object
- #_reduce_14(val, _values, result) ⇒ Object
- #_reduce_15(val, _values, result) ⇒ Object
-
#_reduce_17(val, _values, result) ⇒ Object
reduce 16 omitted.
- #_reduce_18(val, _values, result) ⇒ Object
- #_reduce_19(val, _values, result) ⇒ Object
-
#_reduce_199(val, _values, result) ⇒ Object
reduce 198 omitted.
-
#_reduce_2(val, _values, result) ⇒ Object
reduce 1 omitted.
- #_reduce_20(val, _values, result) ⇒ Object
- #_reduce_200(val, _values, result) ⇒ Object
- #_reduce_201(val, _values, result) ⇒ Object
- #_reduce_202(val, _values, result) ⇒ Object
- #_reduce_203(val, _values, result) ⇒ Object
- #_reduce_204(val, _values, result) ⇒ Object
- #_reduce_205(val, _values, result) ⇒ Object
- #_reduce_206(val, _values, result) ⇒ Object
- #_reduce_207(val, _values, result) ⇒ Object
- #_reduce_208(val, _values, result) ⇒ Object
- #_reduce_209(val, _values, result) ⇒ Object
- #_reduce_21(val, _values, result) ⇒ Object
- #_reduce_210(val, _values, result) ⇒ Object
- #_reduce_211(val, _values, result) ⇒ Object
- #_reduce_212(val, _values, result) ⇒ Object
- #_reduce_213(val, _values, result) ⇒ Object
- #_reduce_214(val, _values, result) ⇒ Object
- #_reduce_215(val, _values, result) ⇒ Object
- #_reduce_216(val, _values, result) ⇒ Object
- #_reduce_217(val, _values, result) ⇒ Object
- #_reduce_218(val, _values, result) ⇒ Object
- #_reduce_219(val, _values, result) ⇒ Object
- #_reduce_22(val, _values, result) ⇒ Object
- #_reduce_220(val, _values, result) ⇒ Object
- #_reduce_221(val, _values, result) ⇒ Object
- #_reduce_222(val, _values, result) ⇒ Object
-
#_reduce_224(val, _values, result) ⇒ Object
reduce 223 omitted.
- #_reduce_225(val, _values, result) ⇒ Object
- #_reduce_226(val, _values, result) ⇒ Object
- #_reduce_227(val, _values, result) ⇒ Object
- #_reduce_228(val, _values, result) ⇒ Object
- #_reduce_229(val, _values, result) ⇒ Object
- #_reduce_23(val, _values, result) ⇒ Object
- #_reduce_230(val, _values, result) ⇒ Object
- #_reduce_231(val, _values, result) ⇒ Object
- #_reduce_232(val, _values, result) ⇒ Object
- #_reduce_233(val, _values, result) ⇒ Object
- #_reduce_234(val, _values, result) ⇒ Object
- #_reduce_235(val, _values, result) ⇒ Object
- #_reduce_236(val, _values, result) ⇒ Object
- #_reduce_24(val, _values, result) ⇒ Object
-
#_reduce_242(val, _values, result) ⇒ Object
reduce 241 omitted.
- #_reduce_243(val, _values, result) ⇒ Object
-
#_reduce_247(val, _values, result) ⇒ Object
reduce 246 omitted.
- #_reduce_248(val, _values, result) ⇒ Object
- #_reduce_25(val, _values, result) ⇒ Object
-
#_reduce_250(val, _values, result) ⇒ Object
reduce 249 omitted.
- #_reduce_251(val, _values, result) ⇒ Object
- #_reduce_252(val, _values, result) ⇒ Object
-
#_reduce_254(val, _values, result) ⇒ Object
reduce 253 omitted.
-
#_reduce_257(val, _values, result) ⇒ Object
reduce 256 omitted.
- #_reduce_258(val, _values, result) ⇒ Object
- #_reduce_259(val, _values, result) ⇒ Object
- #_reduce_26(val, _values, result) ⇒ Object
- #_reduce_260(val, _values, result) ⇒ Object
- #_reduce_261(val, _values, result) ⇒ Object
- #_reduce_262(val, _values, result) ⇒ Object
- #_reduce_263(val, _values, result) ⇒ Object
- #_reduce_264(val, _values, result) ⇒ Object
- #_reduce_265(val, _values, result) ⇒ Object
- #_reduce_266(val, _values, result) ⇒ Object
- #_reduce_267(val, _values, result) ⇒ Object
- #_reduce_268(val, _values, result) ⇒ Object
- #_reduce_269(val, _values, result) ⇒ Object
- #_reduce_27(val, _values, result) ⇒ Object
- #_reduce_270(val, _values, result) ⇒ Object
- #_reduce_271(val, _values, result) ⇒ Object
- #_reduce_272(val, _values, result) ⇒ Object
- #_reduce_273(val, _values, result) ⇒ Object
-
#_reduce_275(val, _values, result) ⇒ Object
reduce 274 omitted.
- #_reduce_276(val, _values, result) ⇒ Object
- #_reduce_277(val, _values, result) ⇒ Object
- #_reduce_28(val, _values, result) ⇒ Object
-
#_reduce_288(val, _values, result) ⇒ Object
reduce 287 omitted.
- #_reduce_289(val, _values, result) ⇒ Object
- #_reduce_29(val, _values, result) ⇒ Object
- #_reduce_290(val, _values, result) ⇒ Object
- #_reduce_291(val, _values, result) ⇒ Object
- #_reduce_292(val, _values, result) ⇒ Object
- #_reduce_293(val, _values, result) ⇒ Object
- #_reduce_294(val, _values, result) ⇒ Object
- #_reduce_295(val, _values, result) ⇒ Object
- #_reduce_296(val, _values, result) ⇒ Object
- #_reduce_297(val, _values, result) ⇒ Object
- #_reduce_298(val, _values, result) ⇒ Object
- #_reduce_299(val, _values, result) ⇒ Object
- #_reduce_3(val, _values, result) ⇒ Object
- #_reduce_300(val, _values, result) ⇒ Object
- #_reduce_301(val, _values, result) ⇒ Object
- #_reduce_302(val, _values, result) ⇒ Object
- #_reduce_303(val, _values, result) ⇒ Object
- #_reduce_304(val, _values, result) ⇒ Object
- #_reduce_305(val, _values, result) ⇒ Object
- #_reduce_306(val, _values, result) ⇒ Object
- #_reduce_307(val, _values, result) ⇒ Object
-
#_reduce_309(val, _values, result) ⇒ Object
reduce 308 omitted.
-
#_reduce_31(val, _values, result) ⇒ Object
reduce 30 omitted.
- #_reduce_310(val, _values, result) ⇒ Object
- #_reduce_311(val, _values, result) ⇒ Object
- #_reduce_312(val, _values, result) ⇒ Object
- #_reduce_313(val, _values, result) ⇒ Object
- #_reduce_314(val, _values, result) ⇒ Object
- #_reduce_315(val, _values, result) ⇒ Object
- #_reduce_316(val, _values, result) ⇒ Object
- #_reduce_317(val, _values, result) ⇒ Object
- #_reduce_318(val, _values, result) ⇒ Object
- #_reduce_319(val, _values, result) ⇒ Object
- #_reduce_32(val, _values, result) ⇒ Object
- #_reduce_320(val, _values, result) ⇒ Object
- #_reduce_321(val, _values, result) ⇒ Object
- #_reduce_322(val, _values, result) ⇒ Object
- #_reduce_323(val, _values, result) ⇒ Object
- #_reduce_324(val, _values, result) ⇒ Object
- #_reduce_325(val, _values, result) ⇒ Object
- #_reduce_326(val, _values, result) ⇒ Object
- #_reduce_327(val, _values, result) ⇒ Object
- #_reduce_328(val, _values, result) ⇒ Object
- #_reduce_329(val, _values, result) ⇒ Object
- #_reduce_33(val, _values, result) ⇒ Object
- #_reduce_330(val, _values, result) ⇒ Object
- #_reduce_331(val, _values, result) ⇒ Object
- #_reduce_332(val, _values, result) ⇒ Object
- #_reduce_333(val, _values, result) ⇒ Object
-
#_reduce_335(val, _values, result) ⇒ Object
reduce 334 omitted.
- #_reduce_336(val, _values, result) ⇒ Object
- #_reduce_337(val, _values, result) ⇒ Object
-
#_reduce_340(val, _values, result) ⇒ Object
reduce 339 omitted.
-
#_reduce_344(val, _values, result) ⇒ Object
reduce 343 omitted.
-
#_reduce_346(val, _values, result) ⇒ Object
reduce 345 omitted.
-
#_reduce_349(val, _values, result) ⇒ Object
reduce 348 omitted.
-
#_reduce_35(val, _values, result) ⇒ Object
reduce 34 omitted.
- #_reduce_350(val, _values, result) ⇒ Object
- #_reduce_351(val, _values, result) ⇒ Object
- #_reduce_352(val, _values, result) ⇒ Object
-
#_reduce_354(val, _values, result) ⇒ Object
reduce 353 omitted.
- #_reduce_355(val, _values, result) ⇒ Object
- #_reduce_356(val, _values, result) ⇒ Object
- #_reduce_357(val, _values, result) ⇒ Object
- #_reduce_358(val, _values, result) ⇒ Object
- #_reduce_359(val, _values, result) ⇒ Object
- #_reduce_36(val, _values, result) ⇒ Object
- #_reduce_360(val, _values, result) ⇒ Object
- #_reduce_361(val, _values, result) ⇒ Object
- #_reduce_362(val, _values, result) ⇒ Object
- #_reduce_363(val, _values, result) ⇒ Object
- #_reduce_364(val, _values, result) ⇒ Object
- #_reduce_365(val, _values, result) ⇒ Object
- #_reduce_366(val, _values, result) ⇒ Object
- #_reduce_367(val, _values, result) ⇒ Object
- #_reduce_368(val, _values, result) ⇒ Object
- #_reduce_369(val, _values, result) ⇒ Object
- #_reduce_37(val, _values, result) ⇒ Object
- #_reduce_370(val, _values, result) ⇒ Object
- #_reduce_371(val, _values, result) ⇒ Object
- #_reduce_372(val, _values, result) ⇒ Object
-
#_reduce_374(val, _values, result) ⇒ Object
reduce 373 omitted.
- #_reduce_375(val, _values, result) ⇒ Object
- #_reduce_376(val, _values, result) ⇒ Object
- #_reduce_377(val, _values, result) ⇒ Object
- #_reduce_378(val, _values, result) ⇒ Object
- #_reduce_379(val, _values, result) ⇒ Object
- #_reduce_38(val, _values, result) ⇒ Object
- #_reduce_380(val, _values, result) ⇒ Object
- #_reduce_381(val, _values, result) ⇒ Object
-
#_reduce_383(val, _values, result) ⇒ Object
reduce 382 omitted.
- #_reduce_384(val, _values, result) ⇒ Object
- #_reduce_385(val, _values, result) ⇒ Object
- #_reduce_386(val, _values, result) ⇒ Object
- #_reduce_387(val, _values, result) ⇒ Object
- #_reduce_388(val, _values, result) ⇒ Object
- #_reduce_389(val, _values, result) ⇒ Object
- #_reduce_39(val, _values, result) ⇒ Object
- #_reduce_390(val, _values, result) ⇒ Object
- #_reduce_391(val, _values, result) ⇒ Object
- #_reduce_392(val, _values, result) ⇒ Object
-
#_reduce_394(val, _values, result) ⇒ Object
reduce 393 omitted.
- #_reduce_395(val, _values, result) ⇒ Object
- #_reduce_396(val, _values, result) ⇒ Object
- #_reduce_397(val, _values, result) ⇒ Object
- #_reduce_398(val, _values, result) ⇒ Object
- #_reduce_399(val, _values, result) ⇒ Object
- #_reduce_4(val, _values, result) ⇒ Object
- #_reduce_40(val, _values, result) ⇒ Object
- #_reduce_400(val, _values, result) ⇒ Object
- #_reduce_401(val, _values, result) ⇒ Object
- #_reduce_402(val, _values, result) ⇒ Object
- #_reduce_403(val, _values, result) ⇒ Object
- #_reduce_404(val, _values, result) ⇒ Object
- #_reduce_405(val, _values, result) ⇒ Object
- #_reduce_406(val, _values, result) ⇒ Object
- #_reduce_407(val, _values, result) ⇒ Object
- #_reduce_408(val, _values, result) ⇒ Object
- #_reduce_409(val, _values, result) ⇒ Object
- #_reduce_41(val, _values, result) ⇒ Object
- #_reduce_410(val, _values, result) ⇒ Object
- #_reduce_411(val, _values, result) ⇒ Object
- #_reduce_412(val, _values, result) ⇒ Object
- #_reduce_413(val, _values, result) ⇒ Object
- #_reduce_414(val, _values, result) ⇒ Object
- #_reduce_415(val, _values, result) ⇒ Object
- #_reduce_416(val, _values, result) ⇒ Object
- #_reduce_417(val, _values, result) ⇒ Object
- #_reduce_418(val, _values, result) ⇒ Object
- #_reduce_419(val, _values, result) ⇒ Object
- #_reduce_42(val, _values, result) ⇒ Object
- #_reduce_420(val, _values, result) ⇒ Object
- #_reduce_421(val, _values, result) ⇒ Object
- #_reduce_422(val, _values, result) ⇒ Object
- #_reduce_423(val, _values, result) ⇒ Object
- #_reduce_424(val, _values, result) ⇒ Object
- #_reduce_425(val, _values, result) ⇒ Object
- #_reduce_426(val, _values, result) ⇒ Object
- #_reduce_427(val, _values, result) ⇒ Object
- #_reduce_428(val, _values, result) ⇒ Object
-
#_reduce_430(val, _values, result) ⇒ Object
reduce 429 omitted.
- #_reduce_431(val, _values, result) ⇒ Object
- #_reduce_432(val, _values, result) ⇒ Object
-
#_reduce_435(val, _values, result) ⇒ Object
reduce 434 omitted.
-
#_reduce_437(val, _values, result) ⇒ Object
reduce 436 omitted.
-
#_reduce_44(val, _values, result) ⇒ Object
reduce 43 omitted.
-
#_reduce_442(val, _values, result) ⇒ Object
reduce 441 omitted.
- #_reduce_443(val, _values, result) ⇒ Object
- #_reduce_444(val, _values, result) ⇒ Object
- #_reduce_445(val, _values, result) ⇒ Object
- #_reduce_446(val, _values, result) ⇒ Object
- #_reduce_447(val, _values, result) ⇒ Object
- #_reduce_448(val, _values, result) ⇒ Object
- #_reduce_449(val, _values, result) ⇒ Object
- #_reduce_450(val, _values, result) ⇒ Object
- #_reduce_451(val, _values, result) ⇒ Object
- #_reduce_452(val, _values, result) ⇒ Object
- #_reduce_453(val, _values, result) ⇒ Object
- #_reduce_454(val, _values, result) ⇒ Object
- #_reduce_455(val, _values, result) ⇒ Object
- #_reduce_456(val, _values, result) ⇒ Object
- #_reduce_457(val, _values, result) ⇒ Object
- #_reduce_458(val, _values, result) ⇒ Object
- #_reduce_459(val, _values, result) ⇒ Object
- #_reduce_460(val, _values, result) ⇒ Object
- #_reduce_461(val, _values, result) ⇒ Object
- #_reduce_462(val, _values, result) ⇒ Object
- #_reduce_463(val, _values, result) ⇒ Object
- #_reduce_464(val, _values, result) ⇒ Object
- #_reduce_465(val, _values, result) ⇒ Object
- #_reduce_466(val, _values, result) ⇒ Object
- #_reduce_467(val, _values, result) ⇒ Object
- #_reduce_468(val, _values, result) ⇒ Object
- #_reduce_469(val, _values, result) ⇒ Object
-
#_reduce_47(val, _values, result) ⇒ Object
reduce 46 omitted.
- #_reduce_470(val, _values, result) ⇒ Object
- #_reduce_471(val, _values, result) ⇒ Object
- #_reduce_472(val, _values, result) ⇒ Object
- #_reduce_473(val, _values, result) ⇒ Object
- #_reduce_474(val, _values, result) ⇒ Object
- #_reduce_475(val, _values, result) ⇒ Object
- #_reduce_476(val, _values, result) ⇒ Object
-
#_reduce_478(val, _values, result) ⇒ Object
reduce 477 omitted.
- #_reduce_479(val, _values, result) ⇒ Object
- #_reduce_48(val, _values, result) ⇒ Object
- #_reduce_480(val, _values, result) ⇒ Object
- #_reduce_481(val, _values, result) ⇒ Object
- #_reduce_482(val, _values, result) ⇒ Object
- #_reduce_483(val, _values, result) ⇒ Object
- #_reduce_484(val, _values, result) ⇒ Object
- #_reduce_485(val, _values, result) ⇒ Object
- #_reduce_486(val, _values, result) ⇒ Object
- #_reduce_487(val, _values, result) ⇒ Object
- #_reduce_488(val, _values, result) ⇒ Object
- #_reduce_489(val, _values, result) ⇒ Object
- #_reduce_49(val, _values, result) ⇒ Object
- #_reduce_490(val, _values, result) ⇒ Object
- #_reduce_491(val, _values, result) ⇒ Object
- #_reduce_492(val, _values, result) ⇒ Object
- #_reduce_493(val, _values, result) ⇒ Object
- #_reduce_494(val, _values, result) ⇒ Object
- #_reduce_495(val, _values, result) ⇒ Object
- #_reduce_496(val, _values, result) ⇒ Object
- #_reduce_497(val, _values, result) ⇒ Object
- #_reduce_498(val, _values, result) ⇒ Object
- #_reduce_499(val, _values, result) ⇒ Object
- #_reduce_5(val, _values, result) ⇒ Object
- #_reduce_50(val, _values, result) ⇒ Object
- #_reduce_500(val, _values, result) ⇒ Object
- #_reduce_501(val, _values, result) ⇒ Object
- #_reduce_502(val, _values, result) ⇒ Object
- #_reduce_503(val, _values, result) ⇒ Object
- #_reduce_504(val, _values, result) ⇒ Object
- #_reduce_505(val, _values, result) ⇒ Object
- #_reduce_506(val, _values, result) ⇒ Object
- #_reduce_507(val, _values, result) ⇒ Object
- #_reduce_508(val, _values, result) ⇒ Object
- #_reduce_509(val, _values, result) ⇒ Object
- #_reduce_510(val, _values, result) ⇒ Object
- #_reduce_511(val, _values, result) ⇒ Object
- #_reduce_512(val, _values, result) ⇒ Object
- #_reduce_513(val, _values, result) ⇒ Object
- #_reduce_514(val, _values, result) ⇒ Object
- #_reduce_515(val, _values, result) ⇒ Object
- #_reduce_516(val, _values, result) ⇒ Object
- #_reduce_517(val, _values, result) ⇒ Object
- #_reduce_518(val, _values, result) ⇒ Object
- #_reduce_519(val, _values, result) ⇒ Object
- #_reduce_520(val, _values, result) ⇒ Object
- #_reduce_521(val, _values, result) ⇒ Object
- #_reduce_522(val, _values, result) ⇒ Object
- #_reduce_523(val, _values, result) ⇒ Object
- #_reduce_524(val, _values, result) ⇒ Object
- #_reduce_525(val, _values, result) ⇒ Object
- #_reduce_526(val, _values, result) ⇒ Object
- #_reduce_527(val, _values, result) ⇒ Object
- #_reduce_528(val, _values, result) ⇒ Object
- #_reduce_529(val, _values, result) ⇒ Object
-
#_reduce_53(val, _values, result) ⇒ Object
reduce 52 omitted.
- #_reduce_530(val, _values, result) ⇒ Object
- #_reduce_531(val, _values, result) ⇒ Object
- #_reduce_532(val, _values, result) ⇒ Object
- #_reduce_533(val, _values, result) ⇒ Object
- #_reduce_534(val, _values, result) ⇒ Object
-
#_reduce_536(val, _values, result) ⇒ Object
reduce 535 omitted.
- #_reduce_537(val, _values, result) ⇒ Object
- #_reduce_538(val, _values, result) ⇒ Object
- #_reduce_539(val, _values, result) ⇒ Object
- #_reduce_54(val, _values, result) ⇒ Object
- #_reduce_540(val, _values, result) ⇒ Object
- #_reduce_541(val, _values, result) ⇒ Object
- #_reduce_542(val, _values, result) ⇒ Object
- #_reduce_543(val, _values, result) ⇒ Object
- #_reduce_544(val, _values, result) ⇒ Object
- #_reduce_545(val, _values, result) ⇒ Object
- #_reduce_546(val, _values, result) ⇒ Object
- #_reduce_547(val, _values, result) ⇒ Object
- #_reduce_548(val, _values, result) ⇒ Object
- #_reduce_549(val, _values, result) ⇒ Object
- #_reduce_550(val, _values, result) ⇒ Object
-
#_reduce_553(val, _values, result) ⇒ Object
reduce 552 omitted.
- #_reduce_554(val, _values, result) ⇒ Object
- #_reduce_555(val, _values, result) ⇒ Object
- #_reduce_556(val, _values, result) ⇒ Object
- #_reduce_557(val, _values, result) ⇒ Object
- #_reduce_558(val, _values, result) ⇒ Object
- #_reduce_559(val, _values, result) ⇒ Object
- #_reduce_560(val, _values, result) ⇒ Object
-
#_reduce_563(val, _values, result) ⇒ Object
reduce 562 omitted.
- #_reduce_564(val, _values, result) ⇒ Object
-
#_reduce_567(val, _values, result) ⇒ Object
reduce 566 omitted.
- #_reduce_568(val, _values, result) ⇒ Object
- #_reduce_569(val, _values, result) ⇒ Object
-
#_reduce_571(val, _values, result) ⇒ Object
reduce 570 omitted.
- #_reduce_572(val, _values, result) ⇒ Object
-
#_reduce_574(val, _values, result) ⇒ Object
reduce 573 omitted.
- #_reduce_575(val, _values, result) ⇒ Object
- #_reduce_576(val, _values, result) ⇒ Object
- #_reduce_577(val, _values, result) ⇒ Object
- #_reduce_578(val, _values, result) ⇒ Object
- #_reduce_579(val, _values, result) ⇒ Object
-
#_reduce_58(val, _values, result) ⇒ Object
reduce 57 omitted.
- #_reduce_59(val, _values, result) ⇒ Object
-
#_reduce_592(val, _values, result) ⇒ Object
reduce 591 omitted.
- #_reduce_593(val, _values, result) ⇒ Object
-
#_reduce_598(val, _values, result) ⇒ Object
reduce 597 omitted.
- #_reduce_599(val, _values, result) ⇒ Object
- #_reduce_6(val, _values, result) ⇒ Object
- #_reduce_60(val, _values, result) ⇒ Object
-
#_reduce_603(val, _values, result) ⇒ Object
reduce 602 omitted.
-
#_reduce_607(val, _values, result) ⇒ Object
reduce 606 omitted.
-
#_reduce_62(val, _values, result) ⇒ Object
reduce 61 omitted.
- #_reduce_63(val, _values, result) ⇒ Object
- #_reduce_64(val, _values, result) ⇒ Object
- #_reduce_65(val, _values, result) ⇒ Object
- #_reduce_66(val, _values, result) ⇒ Object
- #_reduce_67(val, _values, result) ⇒ Object
- #_reduce_68(val, _values, result) ⇒ Object
- #_reduce_69(val, _values, result) ⇒ Object
- #_reduce_70(val, _values, result) ⇒ Object
- #_reduce_71(val, _values, result) ⇒ Object
- #_reduce_72(val, _values, result) ⇒ Object
- #_reduce_73(val, _values, result) ⇒ Object
- #_reduce_74(val, _values, result) ⇒ Object
- #_reduce_75(val, _values, result) ⇒ Object
- #_reduce_76(val, _values, result) ⇒ Object
-
#_reduce_78(val, _values, result) ⇒ Object
reduce 77 omitted.
- #_reduce_79(val, _values, result) ⇒ Object
-
#_reduce_8(val, _values, result) ⇒ Object
reduce 7 omitted.
- #_reduce_80(val, _values, result) ⇒ Object
- #_reduce_81(val, _values, result) ⇒ Object
- #_reduce_82(val, _values, result) ⇒ Object
- #_reduce_83(val, _values, result) ⇒ Object
- #_reduce_84(val, _values, result) ⇒ Object
- #_reduce_85(val, _values, result) ⇒ Object
- #_reduce_86(val, _values, result) ⇒ Object
-
#_reduce_88(val, _values, result) ⇒ Object
reduce 87 omitted.
- #_reduce_89(val, _values, result) ⇒ Object
- #_reduce_9(val, _values, result) ⇒ Object
- #_reduce_90(val, _values, result) ⇒ Object
- #_reduce_91(val, _values, result) ⇒ Object
- #_reduce_92(val, _values, result) ⇒ Object
- #_reduce_93(val, _values, result) ⇒ Object
- #_reduce_94(val, _values, result) ⇒ Object
- #_reduce_95(val, _values, result) ⇒ Object
- #_reduce_96(val, _values, result) ⇒ Object
- #_reduce_97(val, _values, result) ⇒ Object
- #_reduce_98(val, _values, result) ⇒ Object
- #_reduce_99(val, _values, result) ⇒ Object
- #_reduce_none(val, _values, result) ⇒ Object
- #default_encoding ⇒ Object
- #local_pop ⇒ Object
- #local_push ⇒ Object
- #version ⇒ Object
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
7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 |
# File 'lib/parser/ruby25.rb', line 7087 def _reduce_10(val, _values, result) rescue_bodies = val[1] else_t, else_ = val[2] ensure_t, ensure_ = val[3] if rescue_bodies.empty? && !else_t.nil? diagnostic :warning, :useless_else, nil, else_t end result = @builder.begin_body(val[0], rescue_bodies, else_t, else_, ensure_t, ensure_) result end |
#_reduce_100(val, _values, result) ⇒ Object
7648 7649 7650 7651 7652 7653 |
# File 'lib/parser/ruby25.rb', line 7648 def _reduce_100(val, _values, result) result = @builder.assignable( @builder.const_global(val[0], val[1])) result end |
#_reduce_101(val, _values, result) ⇒ Object
7655 7656 7657 7658 7659 |
# File 'lib/parser/ruby25.rb', line 7655 def _reduce_101(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_102(val, _values, result) ⇒ Object
7661 7662 7663 7664 7665 |
# File 'lib/parser/ruby25.rb', line 7661 def _reduce_102(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_103(val, _values, result) ⇒ Object
7667 7668 7669 7670 7671 |
# File 'lib/parser/ruby25.rb', line 7667 def _reduce_103(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_104(val, _values, result) ⇒ Object
7673 7674 7675 7676 7677 |
# File 'lib/parser/ruby25.rb', line 7673 def _reduce_104(val, _values, result) result = @builder.index_asgn(val[0], val[1], val[2], val[3]) result end |
#_reduce_105(val, _values, result) ⇒ Object
7679 7680 7681 7682 7683 |
# File 'lib/parser/ruby25.rb', line 7679 def _reduce_105(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) result end |
#_reduce_106(val, _values, result) ⇒ Object
7685 7686 7687 7688 7689 |
# File 'lib/parser/ruby25.rb', line 7685 def _reduce_106(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) result end |
#_reduce_107(val, _values, result) ⇒ Object
7691 7692 7693 7694 7695 |
# File 'lib/parser/ruby25.rb', line 7691 def _reduce_107(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) result end |
#_reduce_108(val, _values, result) ⇒ Object
7697 7698 7699 7700 7701 7702 |
# File 'lib/parser/ruby25.rb', line 7697 def _reduce_108(val, _values, result) result = @builder.assignable( @builder.const_fetch(val[0], val[1], val[2])) result end |
#_reduce_109(val, _values, result) ⇒ Object
7704 7705 7706 7707 7708 7709 |
# File 'lib/parser/ruby25.rb', line 7704 def _reduce_109(val, _values, result) result = @builder.assignable( @builder.const_global(val[0], val[1])) result end |
#_reduce_11(val, _values, result) ⇒ Object
7104 7105 7106 7107 7108 |
# File 'lib/parser/ruby25.rb', line 7104 def _reduce_11(val, _values, result) result = @builder.compstmt(val[0]) result end |
#_reduce_110(val, _values, result) ⇒ Object
7711 7712 7713 7714 7715 |
# File 'lib/parser/ruby25.rb', line 7711 def _reduce_110(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_111(val, _values, result) ⇒ Object
7717 7718 7719 7720 7721 |
# File 'lib/parser/ruby25.rb', line 7717 def _reduce_111(val, _values, result) diagnostic :error, :module_name_const, nil, val[0] result end |
#_reduce_113(val, _values, result) ⇒ Object
reduce 112 omitted
7725 7726 7727 7728 7729 |
# File 'lib/parser/ruby25.rb', line 7725 def _reduce_113(val, _values, result) result = @builder.const_global(val[0], val[1]) result end |
#_reduce_114(val, _values, result) ⇒ Object
7731 7732 7733 7734 7735 |
# File 'lib/parser/ruby25.rb', line 7731 def _reduce_114(val, _values, result) result = @builder.const(val[0]) result end |
#_reduce_115(val, _values, result) ⇒ Object
7737 7738 7739 7740 7741 |
# File 'lib/parser/ruby25.rb', line 7737 def _reduce_115(val, _values, result) result = @builder.const_fetch(val[0], val[1], val[2]) result end |
#_reduce_12(val, _values, result) ⇒ Object
7110 7111 7112 7113 7114 |
# File 'lib/parser/ruby25.rb', line 7110 def _reduce_12(val, _values, result) result = [] result end |
#_reduce_121(val, _values, result) ⇒ Object
reduce 120 omitted
7753 7754 7755 7756 7757 |
# File 'lib/parser/ruby25.rb', line 7753 def _reduce_121(val, _values, result) result = @builder.symbol_internal(val[0]) result end |
#_reduce_125(val, _values, result) ⇒ Object
reduce 124 omitted
7765 7766 7767 7768 7769 |
# File 'lib/parser/ruby25.rb', line 7765 def _reduce_125(val, _values, result) result = [ val[0] ] result end |
#_reduce_126(val, _values, result) ⇒ Object
7771 7772 7773 7774 7775 |
# File 'lib/parser/ruby25.rb', line 7771 def _reduce_126(val, _values, result) @lexer.state = :expr_fname result end |
#_reduce_127(val, _values, result) ⇒ Object
7777 7778 7779 7780 7781 |
# File 'lib/parser/ruby25.rb', line 7777 def _reduce_127(val, _values, result) result = val[0] << val[3] result end |
#_reduce_13(val, _values, result) ⇒ Object
7116 7117 7118 7119 7120 |
# File 'lib/parser/ruby25.rb', line 7116 def _reduce_13(val, _values, result) result = [ val[0] ] result end |
#_reduce_14(val, _values, result) ⇒ Object
7122 7123 7124 7125 7126 |
# File 'lib/parser/ruby25.rb', line 7122 def _reduce_14(val, _values, result) result = val[0] << val[2] result end |
#_reduce_15(val, _values, result) ⇒ Object
7128 7129 7130 7131 7132 |
# File 'lib/parser/ruby25.rb', line 7128 def _reduce_15(val, _values, result) result = [ val[1] ] result end |
#_reduce_17(val, _values, result) ⇒ Object
reduce 16 omitted
7136 7137 7138 7139 7140 |
# File 'lib/parser/ruby25.rb', line 7136 def _reduce_17(val, _values, result) diagnostic :error, :begin_in_method, nil, val[0] result end |
#_reduce_18(val, _values, result) ⇒ Object
7142 7143 7144 7145 7146 |
# File 'lib/parser/ruby25.rb', line 7142 def _reduce_18(val, _values, result) @lexer.state = :expr_fname result end |
#_reduce_19(val, _values, result) ⇒ Object
7148 7149 7150 7151 7152 |
# File 'lib/parser/ruby25.rb', line 7148 def _reduce_19(val, _values, result) result = @builder.alias(val[0], val[1], val[3]) result end |
#_reduce_199(val, _values, result) ⇒ Object
reduce 198 omitted
7925 7926 7927 7928 7929 |
# File 'lib/parser/ruby25.rb', line 7925 def _reduce_199(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) result end |
#_reduce_2(val, _values, result) ⇒ Object
reduce 1 omitted
7043 7044 7045 7046 7047 |
# File 'lib/parser/ruby25.rb', line 7043 def _reduce_2(val, _values, result) result = @builder.compstmt(val[0]) result end |
#_reduce_20(val, _values, result) ⇒ Object
7154 7155 7156 7157 7158 7159 7160 |
# File 'lib/parser/ruby25.rb', line 7154 def _reduce_20(val, _values, result) result = @builder.alias(val[0], @builder.gvar(val[1]), @builder.gvar(val[2])) result end |
#_reduce_200(val, _values, result) ⇒ Object
7931 7932 7933 7934 7935 |
# File 'lib/parser/ruby25.rb', line 7931 def _reduce_200(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) result end |
#_reduce_201(val, _values, result) ⇒ Object
7937 7938 7939 7940 7941 7942 7943 7944 |
# File 'lib/parser/ruby25.rb', line 7937 def _reduce_201(val, _values, result) result = @builder.op_assign( @builder.index( val[0], val[1], val[2], val[3]), val[4], val[5]) result end |
#_reduce_202(val, _values, result) ⇒ Object
7946 7947 7948 7949 7950 7951 7952 7953 |
# File 'lib/parser/ruby25.rb', line 7946 def _reduce_202(val, _values, result) result = @builder.op_assign( @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) result end |
#_reduce_203(val, _values, result) ⇒ Object
7955 7956 7957 7958 7959 7960 7961 7962 |
# File 'lib/parser/ruby25.rb', line 7955 def _reduce_203(val, _values, result) result = @builder.op_assign( @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) result end |
#_reduce_204(val, _values, result) ⇒ Object
7964 7965 7966 7967 7968 7969 7970 7971 |
# File 'lib/parser/ruby25.rb', line 7964 def _reduce_204(val, _values, result) result = @builder.op_assign( @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) result end |
#_reduce_205(val, _values, result) ⇒ Object
7973 7974 7975 7976 7977 7978 7979 |
# File 'lib/parser/ruby25.rb', line 7973 def _reduce_205(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_206(val, _values, result) ⇒ Object
7981 7982 7983 7984 7985 7986 7987 |
# File 'lib/parser/ruby25.rb', line 7981 def _reduce_206(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_207(val, _values, result) ⇒ Object
7989 7990 7991 7992 7993 |
# File 'lib/parser/ruby25.rb', line 7989 def _reduce_207(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) result end |
#_reduce_208(val, _values, result) ⇒ Object
7995 7996 7997 7998 7999 |
# File 'lib/parser/ruby25.rb', line 7995 def _reduce_208(val, _values, result) result = @builder.range_inclusive(val[0], val[1], val[2]) result end |
#_reduce_209(val, _values, result) ⇒ Object
8001 8002 8003 8004 8005 |
# File 'lib/parser/ruby25.rb', line 8001 def _reduce_209(val, _values, result) result = @builder.range_exclusive(val[0], val[1], val[2]) result end |
#_reduce_21(val, _values, result) ⇒ Object
7162 7163 7164 7165 7166 7167 7168 |
# File 'lib/parser/ruby25.rb', line 7162 def _reduce_21(val, _values, result) result = @builder.alias(val[0], @builder.gvar(val[1]), @builder.back_ref(val[2])) result end |
#_reduce_210(val, _values, result) ⇒ Object
8007 8008 8009 8010 8011 |
# File 'lib/parser/ruby25.rb', line 8007 def _reduce_210(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_211(val, _values, result) ⇒ Object
8013 8014 8015 8016 8017 |
# File 'lib/parser/ruby25.rb', line 8013 def _reduce_211(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_212(val, _values, result) ⇒ Object
8019 8020 8021 8022 8023 |
# File 'lib/parser/ruby25.rb', line 8019 def _reduce_212(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_213(val, _values, result) ⇒ Object
8025 8026 8027 8028 8029 |
# File 'lib/parser/ruby25.rb', line 8025 def _reduce_213(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_214(val, _values, result) ⇒ Object
8031 8032 8033 8034 8035 |
# File 'lib/parser/ruby25.rb', line 8031 def _reduce_214(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_215(val, _values, result) ⇒ Object
8037 8038 8039 8040 8041 |
# File 'lib/parser/ruby25.rb', line 8037 def _reduce_215(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_216(val, _values, result) ⇒ Object
8043 8044 8045 8046 8047 8048 8049 |
# File 'lib/parser/ruby25.rb', line 8043 def _reduce_216(val, _values, result) result = @builder.unary_op(val[0], @builder.binary_op( val[1], val[2], val[3])) result end |
#_reduce_217(val, _values, result) ⇒ Object
8051 8052 8053 8054 8055 |
# File 'lib/parser/ruby25.rb', line 8051 def _reduce_217(val, _values, result) result = @builder.unary_op(val[0], val[1]) result end |
#_reduce_218(val, _values, result) ⇒ Object
8057 8058 8059 8060 8061 |
# File 'lib/parser/ruby25.rb', line 8057 def _reduce_218(val, _values, result) result = @builder.unary_op(val[0], val[1]) result end |
#_reduce_219(val, _values, result) ⇒ Object
8063 8064 8065 8066 8067 |
# File 'lib/parser/ruby25.rb', line 8063 def _reduce_219(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_22(val, _values, result) ⇒ Object
7170 7171 7172 7173 7174 |
# File 'lib/parser/ruby25.rb', line 7170 def _reduce_22(val, _values, result) diagnostic :error, :nth_ref_alias, nil, val[2] result end |
#_reduce_220(val, _values, result) ⇒ Object
8069 8070 8071 8072 8073 |
# File 'lib/parser/ruby25.rb', line 8069 def _reduce_220(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_221(val, _values, result) ⇒ Object
8075 8076 8077 8078 8079 |
# File 'lib/parser/ruby25.rb', line 8075 def _reduce_221(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_222(val, _values, result) ⇒ Object
8081 8082 8083 8084 8085 |
# File 'lib/parser/ruby25.rb', line 8081 def _reduce_222(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_224(val, _values, result) ⇒ Object
reduce 223 omitted
8089 8090 8091 8092 8093 |
# File 'lib/parser/ruby25.rb', line 8089 def _reduce_224(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_225(val, _values, result) ⇒ Object
8095 8096 8097 8098 8099 |
# File 'lib/parser/ruby25.rb', line 8095 def _reduce_225(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_226(val, _values, result) ⇒ Object
8101 8102 8103 8104 8105 |
# File 'lib/parser/ruby25.rb', line 8101 def _reduce_226(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_227(val, _values, result) ⇒ Object
8107 8108 8109 8110 8111 |
# File 'lib/parser/ruby25.rb', line 8107 def _reduce_227(val, _values, result) result = @builder.match_op(val[0], val[1], val[2]) result end |
#_reduce_228(val, _values, result) ⇒ Object
8113 8114 8115 8116 8117 |
# File 'lib/parser/ruby25.rb', line 8113 def _reduce_228(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_229(val, _values, result) ⇒ Object
8119 8120 8121 8122 8123 |
# File 'lib/parser/ruby25.rb', line 8119 def _reduce_229(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) result end |
#_reduce_23(val, _values, result) ⇒ Object
7176 7177 7178 7179 7180 |
# File 'lib/parser/ruby25.rb', line 7176 def _reduce_23(val, _values, result) result = @builder.undef_method(val[0], val[1]) result end |
#_reduce_230(val, _values, result) ⇒ Object
8125 8126 8127 8128 8129 |
# File 'lib/parser/ruby25.rb', line 8125 def _reduce_230(val, _values, result) result = @builder.unary_op(val[0], val[1]) result end |
#_reduce_231(val, _values, result) ⇒ Object
8131 8132 8133 8134 8135 |
# File 'lib/parser/ruby25.rb', line 8131 def _reduce_231(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_232(val, _values, result) ⇒ Object
8137 8138 8139 8140 8141 |
# File 'lib/parser/ruby25.rb', line 8137 def _reduce_232(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_233(val, _values, result) ⇒ Object
8143 8144 8145 8146 8147 |
# File 'lib/parser/ruby25.rb', line 8143 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
8149 8150 8151 8152 8153 |
# File 'lib/parser/ruby25.rb', line 8149 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
8155 8156 8157 8158 8159 |
# File 'lib/parser/ruby25.rb', line 8155 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
8161 8162 8163 8164 8165 8166 |
# File 'lib/parser/ruby25.rb', line 8161 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
7182 7183 7184 7185 7186 7187 |
# File 'lib/parser/ruby25.rb', line 7182 def _reduce_24(val, _values, result) result = @builder.condition_mod(val[0], nil, val[1], val[2]) result end |
#_reduce_242(val, _values, result) ⇒ Object
reduce 241 omitted
8178 8179 8180 8181 8182 |
# File 'lib/parser/ruby25.rb', line 8178 def _reduce_242(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_243(val, _values, result) ⇒ Object
8184 8185 8186 8187 8188 |
# File 'lib/parser/ruby25.rb', line 8184 def _reduce_243(val, _values, result) result = @builder.binary_op(val[0], val[1], val[2]) result end |
#_reduce_247(val, _values, result) ⇒ Object
reduce 246 omitted
8196 8197 8198 8199 8200 |
# File 'lib/parser/ruby25.rb', line 8196 def _reduce_247(val, _values, result) result = val[0] << @builder.associate(nil, val[2], nil) result end |
#_reduce_248(val, _values, result) ⇒ Object
8202 8203 8204 8205 8206 |
# File 'lib/parser/ruby25.rb', line 8202 def _reduce_248(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] result end |
#_reduce_25(val, _values, result) ⇒ Object
7189 7190 7191 7192 7193 7194 |
# File 'lib/parser/ruby25.rb', line 7189 def _reduce_25(val, _values, result) result = @builder.condition_mod(nil, val[0], val[1], val[2]) result end |
#_reduce_250(val, _values, result) ⇒ Object
reduce 249 omitted
8210 8211 8212 8213 8214 8215 8216 8217 8218 |
# File 'lib/parser/ruby25.rb', line 8210 def _reduce_250(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_251(val, _values, result) ⇒ Object
8220 8221 8222 8223 8224 |
# File 'lib/parser/ruby25.rb', line 8220 def _reduce_251(val, _values, result) result = val result end |
#_reduce_252(val, _values, result) ⇒ Object
8226 8227 8228 8229 8230 |
# File 'lib/parser/ruby25.rb', line 8226 def _reduce_252(val, _values, result) result = [ nil, [], nil ] result end |
#_reduce_254(val, _values, result) ⇒ Object
reduce 253 omitted
8234 8235 8236 8237 8238 |
# File 'lib/parser/ruby25.rb', line 8234 def _reduce_254(val, _values, result) result = [] result end |
#_reduce_257(val, _values, result) ⇒ Object
reduce 256 omitted
8244 8245 8246 8247 8248 |
# File 'lib/parser/ruby25.rb', line 8244 def _reduce_257(val, _values, result) result = val[0] << @builder.associate(nil, val[2], nil) result end |
#_reduce_258(val, _values, result) ⇒ Object
8250 8251 8252 8253 8254 |
# File 'lib/parser/ruby25.rb', line 8250 def _reduce_258(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] result end |
#_reduce_259(val, _values, result) ⇒ Object
8256 8257 8258 8259 8260 |
# File 'lib/parser/ruby25.rb', line 8256 def _reduce_259(val, _values, result) result = [ val[0] ] result end |
#_reduce_26(val, _values, result) ⇒ Object
7196 7197 7198 7199 7200 |
# File 'lib/parser/ruby25.rb', line 7196 def _reduce_26(val, _values, result) result = @builder.loop_mod(:while, val[0], val[1], val[2]) result end |
#_reduce_260(val, _values, result) ⇒ Object
8262 8263 8264 8265 8266 |
# File 'lib/parser/ruby25.rb', line 8262 def _reduce_260(val, _values, result) result = val[0].concat(val[1]) result end |
#_reduce_261(val, _values, result) ⇒ Object
8268 8269 8270 8271 8272 8273 |
# File 'lib/parser/ruby25.rb', line 8268 def _reduce_261(val, _values, result) result = [ @builder.associate(nil, val[0], nil) ] result.concat(val[1]) result end |
#_reduce_262(val, _values, result) ⇒ Object
8275 8276 8277 8278 8279 8280 8281 |
# File 'lib/parser/ruby25.rb', line 8275 def _reduce_262(val, _values, result) assocs = @builder.associate(nil, val[2], nil) result = val[0] << assocs result.concat(val[3]) result end |
#_reduce_263(val, _values, result) ⇒ Object
8283 8284 8285 8286 8287 |
# File 'lib/parser/ruby25.rb', line 8283 def _reduce_263(val, _values, result) result = [ val[0] ] result end |
#_reduce_264(val, _values, result) ⇒ Object
8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 |
# File 'lib/parser/ruby25.rb', line 8289 def _reduce_264(val, _values, result) # When branch gets invoked by RACC's lookahead # and command args start with '[' or '(' # we need to put `true` to the cmdarg stack # **before** `false` pushed by lexer # m [], n # ^ # Right here we have cmdarg [...0] because # lexer pushed it on '[' # We need to modify cmdarg stack to [...10] # # For all other cases (like `m n` or `m n, []`) we simply put 1 to the stack # and later lexer pushes corresponding bits on top of it. last_token = @last_token[0] lookahead = last_token == :tLBRACK || last_token == :tLPAREN_ARG if lookahead top = @lexer.cmdarg.pop @lexer.cmdarg.push(true) @lexer.cmdarg.push(top) else @lexer.cmdarg.push(true) end result end |
#_reduce_265(val, _values, result) ⇒ Object
8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 |
# File 'lib/parser/ruby25.rb', line 8316 def _reduce_265(val, _values, result) # call_args can be followed by tLBRACE_ARG (that does cmdarg.push(0) in the lexer) # but the push must be done after cmdarg.pop() in the parser. # So this code does cmdarg.pop() to pop 0 pushed by tLBRACE_ARG, # cmdarg.pop() to pop 1 pushed by command_args, # and cmdarg.push(0) to restore back the flag set by tLBRACE_ARG. last_token = @last_token[0] lookahead = last_token == :tLBRACE_ARG if lookahead top = @lexer.cmdarg.pop @lexer.cmdarg.pop @lexer.cmdarg.push(top) else @lexer.cmdarg.pop end result = val[1] result end |
#_reduce_266(val, _values, result) ⇒ Object
8337 8338 8339 8340 8341 |
# File 'lib/parser/ruby25.rb', line 8337 def _reduce_266(val, _values, result) result = @builder.block_pass(val[0], val[1]) result end |
#_reduce_267(val, _values, result) ⇒ Object
8343 8344 8345 8346 8347 |
# File 'lib/parser/ruby25.rb', line 8343 def _reduce_267(val, _values, result) result = [ val[1] ] result end |
#_reduce_268(val, _values, result) ⇒ Object
8349 8350 8351 8352 8353 |
# File 'lib/parser/ruby25.rb', line 8349 def _reduce_268(val, _values, result) result = [] result end |
#_reduce_269(val, _values, result) ⇒ Object
8355 8356 8357 8358 8359 |
# File 'lib/parser/ruby25.rb', line 8355 def _reduce_269(val, _values, result) result = [ val[0] ] result end |
#_reduce_27(val, _values, result) ⇒ Object
7202 7203 7204 7205 7206 |
# File 'lib/parser/ruby25.rb', line 7202 def _reduce_27(val, _values, result) result = @builder.loop_mod(:until, val[0], val[1], val[2]) result end |
#_reduce_270(val, _values, result) ⇒ Object
8361 8362 8363 8364 8365 |
# File 'lib/parser/ruby25.rb', line 8361 def _reduce_270(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] result end |
#_reduce_271(val, _values, result) ⇒ Object
8367 8368 8369 8370 8371 |
# File 'lib/parser/ruby25.rb', line 8367 def _reduce_271(val, _values, result) result = val[0] << val[2] result end |
#_reduce_272(val, _values, result) ⇒ Object
8373 8374 8375 8376 8377 |
# File 'lib/parser/ruby25.rb', line 8373 def _reduce_272(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) result end |
#_reduce_273(val, _values, result) ⇒ Object
8379 8380 8381 8382 8383 |
# File 'lib/parser/ruby25.rb', line 8379 def _reduce_273(val, _values, result) result = @builder.array(nil, val[0], nil) result end |
#_reduce_275(val, _values, result) ⇒ Object
reduce 274 omitted
8387 8388 8389 8390 8391 |
# File 'lib/parser/ruby25.rb', line 8387 def _reduce_275(val, _values, result) result = val[0] << val[2] result end |
#_reduce_276(val, _values, result) ⇒ Object
8393 8394 8395 8396 8397 |
# File 'lib/parser/ruby25.rb', line 8393 def _reduce_276(val, _values, result) result = val[0] << @builder.splat(val[2], val[3]) result end |
#_reduce_277(val, _values, result) ⇒ Object
8399 8400 8401 8402 8403 |
# File 'lib/parser/ruby25.rb', line 8399 def _reduce_277(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] result end |
#_reduce_28(val, _values, result) ⇒ Object
7208 7209 7210 7211 7212 7213 7214 7215 7216 |
# File 'lib/parser/ruby25.rb', line 7208 def _reduce_28(val, _values, result) rescue_body = @builder.rescue_body(val[1], nil, nil, nil, nil, val[2]) result = @builder.begin_body(val[0], [ rescue_body ]) result end |
#_reduce_288(val, _values, result) ⇒ Object
reduce 287 omitted
8425 8426 8427 8428 8429 |
# File 'lib/parser/ruby25.rb', line 8425 def _reduce_288(val, _values, result) result = @builder.call_method(nil, nil, val[0]) result end |
#_reduce_289(val, _values, result) ⇒ Object
8431 8432 8433 8434 8435 |
# File 'lib/parser/ruby25.rb', line 8431 def _reduce_289(val, _values, result) @lexer.cmdarg.push(false) result end |
#_reduce_29(val, _values, result) ⇒ Object
7218 7219 7220 7221 7222 |
# File 'lib/parser/ruby25.rb', line 7218 def _reduce_29(val, _values, result) result = @builder.postexe(val[0], val[1], val[2], val[3]) result end |
#_reduce_290(val, _values, result) ⇒ Object
8437 8438 8439 8440 8441 8442 8443 |
# File 'lib/parser/ruby25.rb', line 8437 def _reduce_290(val, _values, result) @lexer.cmdarg.pop result = @builder.begin_keyword(val[0], val[2], val[3]) result end |
#_reduce_291(val, _values, result) ⇒ Object
8445 8446 8447 8448 8449 |
# File 'lib/parser/ruby25.rb', line 8445 def _reduce_291(val, _values, result) @lexer.state = :expr_endarg result end |
#_reduce_292(val, _values, result) ⇒ Object
8451 8452 8453 8454 8455 |
# File 'lib/parser/ruby25.rb', line 8451 def _reduce_292(val, _values, result) result = @builder.begin(val[0], val[1], val[3]) result end |
#_reduce_293(val, _values, result) ⇒ Object
8457 8458 8459 8460 8461 |
# File 'lib/parser/ruby25.rb', line 8457 def _reduce_293(val, _values, result) @lexer.state = :expr_endarg result end |
#_reduce_294(val, _values, result) ⇒ Object
8463 8464 8465 8466 8467 |
# File 'lib/parser/ruby25.rb', line 8463 def _reduce_294(val, _values, result) result = @builder.begin(val[0], nil, val[3]) result end |
#_reduce_295(val, _values, result) ⇒ Object
8469 8470 8471 8472 8473 |
# File 'lib/parser/ruby25.rb', line 8469 def _reduce_295(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) result end |
#_reduce_296(val, _values, result) ⇒ Object
8475 8476 8477 8478 8479 |
# File 'lib/parser/ruby25.rb', line 8475 def _reduce_296(val, _values, result) result = @builder.const_fetch(val[0], val[1], val[2]) result end |
#_reduce_297(val, _values, result) ⇒ Object
8481 8482 8483 8484 8485 |
# File 'lib/parser/ruby25.rb', line 8481 def _reduce_297(val, _values, result) result = @builder.const_global(val[0], val[1]) result end |
#_reduce_298(val, _values, result) ⇒ Object
8487 8488 8489 8490 8491 |
# File 'lib/parser/ruby25.rb', line 8487 def _reduce_298(val, _values, result) result = @builder.array(val[0], val[1], val[2]) result end |
#_reduce_299(val, _values, result) ⇒ Object
8493 8494 8495 8496 8497 |
# File 'lib/parser/ruby25.rb', line 8493 def _reduce_299(val, _values, result) result = @builder.associate(val[0], val[1], val[2]) result end |
#_reduce_3(val, _values, result) ⇒ Object
7049 7050 7051 7052 7053 |
# File 'lib/parser/ruby25.rb', line 7049 def _reduce_3(val, _values, result) result = [] result end |
#_reduce_300(val, _values, result) ⇒ Object
8499 8500 8501 8502 8503 |
# File 'lib/parser/ruby25.rb', line 8499 def _reduce_300(val, _values, result) result = @builder.keyword_cmd(:return, val[0]) result end |
#_reduce_301(val, _values, result) ⇒ Object
8505 8506 8507 8508 8509 |
# File 'lib/parser/ruby25.rb', line 8505 def _reduce_301(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], val[1], val[2], val[3]) result end |
#_reduce_302(val, _values, result) ⇒ Object
8511 8512 8513 8514 8515 |
# File 'lib/parser/ruby25.rb', line 8511 def _reduce_302(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], val[1], [], val[2]) result end |
#_reduce_303(val, _values, result) ⇒ Object
8517 8518 8519 8520 8521 |
# File 'lib/parser/ruby25.rb', line 8517 def _reduce_303(val, _values, result) result = @builder.keyword_cmd(:yield, val[0]) result end |
#_reduce_304(val, _values, result) ⇒ Object
8523 8524 8525 8526 8527 8528 |
# File 'lib/parser/ruby25.rb', line 8523 def _reduce_304(val, _values, result) result = @builder.keyword_cmd(:defined?, val[0], val[2], [ val[3] ], val[4]) result end |
#_reduce_305(val, _values, result) ⇒ Object
8530 8531 8532 8533 8534 |
# File 'lib/parser/ruby25.rb', line 8530 def _reduce_305(val, _values, result) result = @builder.not_op(val[0], val[1], val[2], val[3]) result end |
#_reduce_306(val, _values, result) ⇒ Object
8536 8537 8538 8539 8540 |
# File 'lib/parser/ruby25.rb', line 8536 def _reduce_306(val, _values, result) result = @builder.not_op(val[0], val[1], nil, val[2]) result end |
#_reduce_307(val, _values, result) ⇒ Object
8542 8543 8544 8545 8546 8547 8548 8549 8550 |
# File 'lib/parser/ruby25.rb', line 8542 def _reduce_307(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_309(val, _values, result) ⇒ Object
reduce 308 omitted
8554 8555 8556 8557 8558 8559 8560 |
# File 'lib/parser/ruby25.rb', line 8554 def _reduce_309(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_31(val, _values, result) ⇒ Object
reduce 30 omitted
7226 7227 7228 7229 7230 |
# File 'lib/parser/ruby25.rb', line 7226 def _reduce_31(val, _values, result) result = @builder.multi_assign(val[0], val[1], val[2]) result end |
#_reduce_310(val, _values, result) ⇒ Object
8562 8563 8564 8565 8566 8567 |
# File 'lib/parser/ruby25.rb', line 8562 def _reduce_310(val, _values, result) result = @context.dup @context.in_lambda = true result end |
#_reduce_311(val, _values, result) ⇒ Object
8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 |
# File 'lib/parser/ruby25.rb', line 8569 def _reduce_311(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_312(val, _values, result) ⇒ Object
8581 8582 8583 8584 8585 8586 8587 8588 |
# File 'lib/parser/ruby25.rb', line 8581 def _reduce_312(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_313(val, _values, result) ⇒ Object
8590 8591 8592 8593 8594 8595 8596 8597 |
# File 'lib/parser/ruby25.rb', line 8590 def _reduce_313(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_314(val, _values, result) ⇒ Object
8599 8600 8601 8602 8603 |
# File 'lib/parser/ruby25.rb', line 8599 def _reduce_314(val, _values, result) result = @builder.loop(:while, val[0], *val[1], val[2], val[3]) result end |
#_reduce_315(val, _values, result) ⇒ Object
8605 8606 8607 8608 8609 |
# File 'lib/parser/ruby25.rb', line 8605 def _reduce_315(val, _values, result) result = @builder.loop(:until, val[0], *val[1], val[2], val[3]) result end |
#_reduce_316(val, _values, result) ⇒ Object
8611 8612 8613 8614 8615 8616 8617 8618 8619 |
# File 'lib/parser/ruby25.rb', line 8611 def _reduce_316(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_317(val, _values, result) ⇒ Object
8621 8622 8623 8624 8625 8626 8627 8628 8629 |
# File 'lib/parser/ruby25.rb', line 8621 def _reduce_317(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_318(val, _values, result) ⇒ Object
8631 8632 8633 8634 8635 |
# File 'lib/parser/ruby25.rb', line 8631 def _reduce_318(val, _values, result) result = @builder.for(val[0], val[1], val[2], *val[3], val[4], val[5]) result end |
#_reduce_319(val, _values, result) ⇒ Object
8637 8638 8639 8640 8641 8642 |
# File 'lib/parser/ruby25.rb', line 8637 def _reduce_319(val, _values, result) local_push @context.in_class = true result end |
#_reduce_32(val, _values, result) ⇒ Object
7232 7233 7234 7235 7236 7237 |
# File 'lib/parser/ruby25.rb', line 7232 def _reduce_32(val, _values, result) result = @builder.assign(val[0], val[1], @builder.array(nil, val[2], nil)) result end |
#_reduce_320(val, _values, result) ⇒ Object
8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 |
# File 'lib/parser/ruby25.rb', line 8644 def _reduce_320(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_321(val, _values, result) ⇒ Object
8661 8662 8663 8664 8665 8666 8667 |
# File 'lib/parser/ruby25.rb', line 8661 def _reduce_321(val, _values, result) @context.in_def = false @context.in_class = false local_push result end |
#_reduce_322(val, _values, result) ⇒ Object
8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 |
# File 'lib/parser/ruby25.rb', line 8669 def _reduce_322(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_323(val, _values, result) ⇒ Object
8681 8682 8683 8684 8685 8686 |
# File 'lib/parser/ruby25.rb', line 8681 def _reduce_323(val, _values, result) @context.in_class = true local_push result end |
#_reduce_324(val, _values, result) ⇒ Object
8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 |
# File 'lib/parser/ruby25.rb', line 8688 def _reduce_324(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_325(val, _values, result) ⇒ Object
8703 8704 8705 8706 8707 8708 8709 |
# File 'lib/parser/ruby25.rb', line 8703 def _reduce_325(val, _values, result) local_push result = context.dup @context.in_def = true result end |
#_reduce_326(val, _values, result) ⇒ Object
8711 8712 8713 8714 8715 8716 8717 8718 8719 |
# File 'lib/parser/ruby25.rb', line 8711 def _reduce_326(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_327(val, _values, result) ⇒ Object
8721 8722 8723 8724 8725 |
# File 'lib/parser/ruby25.rb', line 8721 def _reduce_327(val, _values, result) @lexer.state = :expr_fname result end |
#_reduce_328(val, _values, result) ⇒ Object
8727 8728 8729 8730 8731 8732 8733 |
# File 'lib/parser/ruby25.rb', line 8727 def _reduce_328(val, _values, result) local_push result = context.dup @context.in_def = true result end |
#_reduce_329(val, _values, result) ⇒ Object
8735 8736 8737 8738 8739 8740 8741 8742 8743 |
# File 'lib/parser/ruby25.rb', line 8735 def _reduce_329(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_33(val, _values, result) ⇒ Object
7239 7240 7241 7242 7243 |
# File 'lib/parser/ruby25.rb', line 7239 def _reduce_33(val, _values, result) result = @builder.multi_assign(val[0], val[1], val[2]) result end |
#_reduce_330(val, _values, result) ⇒ Object
8745 8746 8747 8748 8749 |
# File 'lib/parser/ruby25.rb', line 8745 def _reduce_330(val, _values, result) result = @builder.keyword_cmd(:break, val[0]) result end |
#_reduce_331(val, _values, result) ⇒ Object
8751 8752 8753 8754 8755 |
# File 'lib/parser/ruby25.rb', line 8751 def _reduce_331(val, _values, result) result = @builder.keyword_cmd(:next, val[0]) result end |
#_reduce_332(val, _values, result) ⇒ Object
8757 8758 8759 8760 8761 |
# File 'lib/parser/ruby25.rb', line 8757 def _reduce_332(val, _values, result) result = @builder.keyword_cmd(:redo, val[0]) result end |
#_reduce_333(val, _values, result) ⇒ Object
8763 8764 8765 8766 8767 |
# File 'lib/parser/ruby25.rb', line 8763 def _reduce_333(val, _values, result) result = @builder.keyword_cmd(:retry, val[0]) result end |
#_reduce_335(val, _values, result) ⇒ Object
reduce 334 omitted
8771 8772 8773 8774 8775 |
# File 'lib/parser/ruby25.rb', line 8771 def _reduce_335(val, _values, result) result = [ val[0], @context.dup ] result end |
#_reduce_336(val, _values, result) ⇒ Object
8777 8778 8779 8780 8781 |
# File 'lib/parser/ruby25.rb', line 8777 def _reduce_336(val, _values, result) result = [ val[0], @context.dup ] result end |
#_reduce_337(val, _values, result) ⇒ Object
8783 8784 8785 8786 8787 8788 8789 |
# File 'lib/parser/ruby25.rb', line 8783 def _reduce_337(val, _values, result) if @context.in_class && !@context.in_def && !(context.in_block || context.in_lambda) diagnostic :error, :invalid_return, nil, val[0] end result end |
#_reduce_340(val, _values, result) ⇒ Object
reduce 339 omitted
8795 8796 8797 8798 8799 |
# File 'lib/parser/ruby25.rb', line 8795 def _reduce_340(val, _values, result) result = val[1] result end |
#_reduce_344(val, _values, result) ⇒ Object
reduce 343 omitted
8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 |
# File 'lib/parser/ruby25.rb', line 8807 def _reduce_344(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_346(val, _values, result) ⇒ Object
reduce 345 omitted
8820 8821 8822 8823 8824 |
# File 'lib/parser/ruby25.rb', line 8820 def _reduce_346(val, _values, result) result = val result end |
#_reduce_349(val, _values, result) ⇒ Object
reduce 348 omitted
8830 8831 8832 8833 8834 |
# File 'lib/parser/ruby25.rb', line 8830 def _reduce_349(val, _values, result) result = @builder.arg(val[0]) result end |
#_reduce_35(val, _values, result) ⇒ Object
reduce 34 omitted
7247 7248 7249 7250 7251 |
# File 'lib/parser/ruby25.rb', line 7247 def _reduce_35(val, _values, result) result = @builder.assign(val[0], val[1], val[2]) result end |
#_reduce_350(val, _values, result) ⇒ Object
8836 8837 8838 8839 8840 |
# File 'lib/parser/ruby25.rb', line 8836 def _reduce_350(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) result end |
#_reduce_351(val, _values, result) ⇒ Object
8842 8843 8844 8845 8846 |
# File 'lib/parser/ruby25.rb', line 8842 def _reduce_351(val, _values, result) result = [ val[0] ] result end |
#_reduce_352(val, _values, result) ⇒ Object
8848 8849 8850 8851 8852 |
# File 'lib/parser/ruby25.rb', line 8848 def _reduce_352(val, _values, result) result = val[0] << val[2] result end |
#_reduce_354(val, _values, result) ⇒ Object
reduce 353 omitted
8856 8857 8858 8859 8860 8861 |
# File 'lib/parser/ruby25.rb', line 8856 def _reduce_354(val, _values, result) result = val[0]. push(@builder.restarg(val[2], val[3])) result end |
#_reduce_355(val, _values, result) ⇒ Object
8863 8864 8865 8866 8867 8868 8869 |
# File 'lib/parser/ruby25.rb', line 8863 def _reduce_355(val, _values, result) result = val[0]. push(@builder.restarg(val[2], val[3])). concat(val[5]) result end |
#_reduce_356(val, _values, result) ⇒ Object
8871 8872 8873 8874 8875 8876 |
# File 'lib/parser/ruby25.rb', line 8871 def _reduce_356(val, _values, result) result = val[0]. push(@builder.restarg(val[2])) result end |
#_reduce_357(val, _values, result) ⇒ Object
8878 8879 8880 8881 8882 8883 8884 |
# File 'lib/parser/ruby25.rb', line 8878 def _reduce_357(val, _values, result) result = val[0]. push(@builder.restarg(val[2])). concat(val[4]) result end |
#_reduce_358(val, _values, result) ⇒ Object
8886 8887 8888 8889 8890 |
# File 'lib/parser/ruby25.rb', line 8886 def _reduce_358(val, _values, result) result = [ @builder.restarg(val[0], val[1]) ] result end |
#_reduce_359(val, _values, result) ⇒ Object
8892 8893 8894 8895 8896 8897 |
# File 'lib/parser/ruby25.rb', line 8892 def _reduce_359(val, _values, result) result = [ @builder.restarg(val[0], val[1]), *val[3] ] result end |
#_reduce_36(val, _values, result) ⇒ Object
7253 7254 7255 7256 7257 |
# File 'lib/parser/ruby25.rb', line 7253 def _reduce_36(val, _values, result) result = @builder.op_assign(val[0], val[1], val[2]) result end |
#_reduce_360(val, _values, result) ⇒ Object
8899 8900 8901 8902 8903 |
# File 'lib/parser/ruby25.rb', line 8899 def _reduce_360(val, _values, result) result = [ @builder.restarg(val[0]) ] result end |
#_reduce_361(val, _values, result) ⇒ Object
8905 8906 8907 8908 8909 8910 |
# File 'lib/parser/ruby25.rb', line 8905 def _reduce_361(val, _values, result) result = [ @builder.restarg(val[0]), *val[2] ] result end |
#_reduce_362(val, _values, result) ⇒ Object
8912 8913 8914 8915 8916 |
# File 'lib/parser/ruby25.rb', line 8912 def _reduce_362(val, _values, result) result = val[0].concat(val[2]).concat(val[3]) result end |
#_reduce_363(val, _values, result) ⇒ Object
8918 8919 8920 8921 8922 |
# File 'lib/parser/ruby25.rb', line 8918 def _reduce_363(val, _values, result) result = val[0].concat(val[1]) result end |
#_reduce_364(val, _values, result) ⇒ Object
8924 8925 8926 8927 8928 |
# File 'lib/parser/ruby25.rb', line 8924 def _reduce_364(val, _values, result) result = val[0].concat(val[1]) result end |
#_reduce_365(val, _values, result) ⇒ Object
8930 8931 8932 8933 8934 |
# File 'lib/parser/ruby25.rb', line 8930 def _reduce_365(val, _values, result) result = [ val[0] ] result end |
#_reduce_366(val, _values, result) ⇒ Object
8936 8937 8938 8939 8940 |
# File 'lib/parser/ruby25.rb', line 8936 def _reduce_366(val, _values, result) result = val[1] result end |
#_reduce_367(val, _values, result) ⇒ Object
8942 8943 8944 8945 8946 |
# File 'lib/parser/ruby25.rb', line 8942 def _reduce_367(val, _values, result) result = [] result end |
#_reduce_368(val, _values, result) ⇒ Object
8948 8949 8950 8951 8952 8953 8954 8955 |
# File 'lib/parser/ruby25.rb', line 8948 def _reduce_368(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_369(val, _values, result) ⇒ Object
8957 8958 8959 8960 8961 8962 8963 8964 8965 |
# File 'lib/parser/ruby25.rb', line 8957 def _reduce_369(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[6]). concat(val[7]) result end |
#_reduce_37(val, _values, result) ⇒ Object
7259 7260 7261 7262 7263 7264 7265 7266 |
# File 'lib/parser/ruby25.rb', line 7259 def _reduce_37(val, _values, result) result = @builder.op_assign( @builder.index( val[0], val[1], val[2], val[3]), val[4], val[5]) result end |
#_reduce_370(val, _values, result) ⇒ Object
8967 8968 8969 8970 8971 8972 8973 |
# File 'lib/parser/ruby25.rb', line 8967 def _reduce_370(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_371(val, _values, result) ⇒ Object
8975 8976 8977 8978 8979 8980 8981 8982 |
# File 'lib/parser/ruby25.rb', line 8975 def _reduce_371(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_372(val, _values, result) ⇒ Object
8984 8985 8986 8987 8988 8989 8990 |
# File 'lib/parser/ruby25.rb', line 8984 def _reduce_372(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_374(val, _values, result) ⇒ Object
reduce 373 omitted
8994 8995 8996 8997 8998 8999 9000 9001 |
# File 'lib/parser/ruby25.rb', line 8994 def _reduce_374(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_375(val, _values, result) ⇒ Object
9003 9004 9005 9006 9007 9008 9009 9010 9011 |
# File 'lib/parser/ruby25.rb', line 9003 def _reduce_375(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_376(val, _values, result) ⇒ Object
9013 9014 9015 9016 9017 9018 9019 |
# File 'lib/parser/ruby25.rb', line 9013 def _reduce_376(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_377(val, _values, result) ⇒ Object
9021 9022 9023 9024 9025 9026 9027 9028 |
# File 'lib/parser/ruby25.rb', line 9021 def _reduce_377(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_378(val, _values, result) ⇒ Object
9030 9031 9032 9033 9034 9035 |
# File 'lib/parser/ruby25.rb', line 9030 def _reduce_378(val, _values, result) result = val[0]. concat(val[1]) result end |
#_reduce_379(val, _values, result) ⇒ Object
9037 9038 9039 9040 9041 9042 9043 |
# File 'lib/parser/ruby25.rb', line 9037 def _reduce_379(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_38(val, _values, result) ⇒ Object
7268 7269 7270 7271 7272 7273 7274 7275 |
# File 'lib/parser/ruby25.rb', line 7268 def _reduce_38(val, _values, result) result = @builder.op_assign( @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) result end |
#_reduce_380(val, _values, result) ⇒ Object
9045 9046 9047 9048 9049 9050 |
# File 'lib/parser/ruby25.rb', line 9045 def _reduce_380(val, _values, result) result = val[0]. concat(val[1]) result end |
#_reduce_381(val, _values, result) ⇒ Object
9052 9053 9054 9055 9056 9057 9058 |
# File 'lib/parser/ruby25.rb', line 9052 def _reduce_381(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_383(val, _values, result) ⇒ Object
reduce 382 omitted
9062 9063 9064 9065 9066 |
# File 'lib/parser/ruby25.rb', line 9062 def _reduce_383(val, _values, result) result = @builder.args(nil, [], nil) result end |
#_reduce_384(val, _values, result) ⇒ Object
9068 9069 9070 9071 9072 |
# File 'lib/parser/ruby25.rb', line 9068 def _reduce_384(val, _values, result) @lexer.state = :expr_value result end |
#_reduce_385(val, _values, result) ⇒ Object
9074 9075 9076 9077 9078 |
# File 'lib/parser/ruby25.rb', line 9074 def _reduce_385(val, _values, result) result = @builder.args(val[0], val[1], val[2]) result end |
#_reduce_386(val, _values, result) ⇒ Object
9080 9081 9082 9083 9084 |
# File 'lib/parser/ruby25.rb', line 9080 def _reduce_386(val, _values, result) result = @builder.args(val[0], [], val[0]) result end |
#_reduce_387(val, _values, result) ⇒ Object
9086 9087 9088 9089 9090 |
# File 'lib/parser/ruby25.rb', line 9086 def _reduce_387(val, _values, result) result = @builder.args(val[0], val[1].concat(val[2]), val[3]) result end |
#_reduce_388(val, _values, result) ⇒ Object
9092 9093 9094 9095 9096 |
# File 'lib/parser/ruby25.rb', line 9092 def _reduce_388(val, _values, result) result = [] result end |
#_reduce_389(val, _values, result) ⇒ Object
9098 9099 9100 9101 9102 |
# File 'lib/parser/ruby25.rb', line 9098 def _reduce_389(val, _values, result) result = val[2] result end |
#_reduce_39(val, _values, result) ⇒ Object
7277 7278 7279 7280 7281 7282 7283 7284 |
# File 'lib/parser/ruby25.rb', line 7277 def _reduce_39(val, _values, result) result = @builder.op_assign( @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) result end |
#_reduce_390(val, _values, result) ⇒ Object
9104 9105 9106 9107 9108 |
# File 'lib/parser/ruby25.rb', line 9104 def _reduce_390(val, _values, result) result = [ val[0] ] result end |
#_reduce_391(val, _values, result) ⇒ Object
9110 9111 9112 9113 9114 |
# File 'lib/parser/ruby25.rb', line 9110 def _reduce_391(val, _values, result) result = val[0] << val[2] result end |
#_reduce_392(val, _values, result) ⇒ Object
9116 9117 9118 9119 9120 9121 |
# File 'lib/parser/ruby25.rb', line 9116 def _reduce_392(val, _values, result) @static_env.declare val[0][0] result = @builder.shadowarg(val[0]) result end |
#_reduce_394(val, _values, result) ⇒ Object
reduce 393 omitted
9125 9126 9127 9128 9129 |
# File 'lib/parser/ruby25.rb', line 9125 def _reduce_394(val, _values, result) @static_env.extend_dynamic result end |
#_reduce_395(val, _values, result) ⇒ Object
9131 9132 9133 9134 9135 |
# File 'lib/parser/ruby25.rb', line 9131 def _reduce_395(val, _values, result) @lexer.cmdarg.push(false) result end |
#_reduce_396(val, _values, result) ⇒ Object
9137 9138 9139 9140 9141 9142 9143 9144 9145 |
# File 'lib/parser/ruby25.rb', line 9137 def _reduce_396(val, _values, result) @lexer.cmdarg.pop result = [ val[1], val[3] ] @static_env.unextend result end |
#_reduce_397(val, _values, result) ⇒ Object
9147 9148 9149 9150 9151 |
# File 'lib/parser/ruby25.rb', line 9147 def _reduce_397(val, _values, result) result = @builder.args(val[0], val[1].concat(val[2]), val[3]) result end |
#_reduce_398(val, _values, result) ⇒ Object
9153 9154 9155 9156 9157 |
# File 'lib/parser/ruby25.rb', line 9153 def _reduce_398(val, _values, result) result = @builder.args(nil, val[0], nil) result end |
#_reduce_399(val, _values, result) ⇒ Object
9159 9160 9161 9162 9163 9164 |
# File 'lib/parser/ruby25.rb', line 9159 def _reduce_399(val, _values, result) result = @context.dup @context.in_lambda = true result end |
#_reduce_4(val, _values, result) ⇒ Object
7055 7056 7057 7058 7059 |
# File 'lib/parser/ruby25.rb', line 7055 def _reduce_4(val, _values, result) result = [ val[0] ] result end |
#_reduce_40(val, _values, result) ⇒ Object
7286 7287 7288 7289 7290 7291 7292 |
# File 'lib/parser/ruby25.rb', line 7286 def _reduce_40(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_400(val, _values, result) ⇒ Object
9166 9167 9168 9169 9170 9171 |
# File 'lib/parser/ruby25.rb', line 9166 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
9173 9174 9175 9176 9177 9178 |
# File 'lib/parser/ruby25.rb', line 9173 def _reduce_401(val, _values, result) result = @context.dup @context.in_lambda = true result end |
#_reduce_402(val, _values, result) ⇒ Object
9180 9181 9182 9183 9184 9185 |
# File 'lib/parser/ruby25.rb', line 9180 def _reduce_402(val, _values, result) result = [ val[0], val[2], val[3] ] @context.in_lambda = val[1].in_lambda result end |
#_reduce_403(val, _values, result) ⇒ Object
9187 9188 9189 9190 9191 9192 |
# File 'lib/parser/ruby25.rb', line 9187 def _reduce_403(val, _values, result) result = @context.dup @context.in_block = true result end |
#_reduce_404(val, _values, result) ⇒ Object
9194 9195 9196 9197 9198 9199 |
# File 'lib/parser/ruby25.rb', line 9194 def _reduce_404(val, _values, result) result = [ val[0], *val[2], val[3] ] @context.in_block = val[1].in_block result end |
#_reduce_405(val, _values, result) ⇒ Object
9201 9202 9203 9204 9205 9206 9207 |
# File 'lib/parser/ruby25.rb', line 9201 def _reduce_405(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_406(val, _values, result) ⇒ Object
9209 9210 9211 9212 9213 9214 9215 |
# File 'lib/parser/ruby25.rb', line 9209 def _reduce_406(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_407(val, _values, result) ⇒ Object
9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 |
# File 'lib/parser/ruby25.rb', line 9217 def _reduce_407(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_408(val, _values, result) ⇒ Object
9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 |
# File 'lib/parser/ruby25.rb', line 9229 def _reduce_408(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_409(val, _values, result) ⇒ Object
9240 9241 9242 9243 9244 9245 9246 |
# File 'lib/parser/ruby25.rb', line 9240 def _reduce_409(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_41(val, _values, result) ⇒ Object
7294 7295 7296 7297 7298 7299 7300 7301 |
# File 'lib/parser/ruby25.rb', line 7294 def _reduce_41(val, _values, result) result = @builder.op_assign( @builder.call_method( val[0], val[1], val[2]), val[3], val[4]) result end |
#_reduce_410(val, _values, result) ⇒ Object
9248 9249 9250 9251 9252 9253 9254 |
# File 'lib/parser/ruby25.rb', line 9248 def _reduce_410(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_411(val, _values, result) ⇒ Object
9256 9257 9258 9259 9260 9261 9262 |
# File 'lib/parser/ruby25.rb', line 9256 def _reduce_411(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_412(val, _values, result) ⇒ Object
9264 9265 9266 9267 9268 |
# File 'lib/parser/ruby25.rb', line 9264 def _reduce_412(val, _values, result) result = @builder.call_method(val[0], val[1], val[2]) result end |
#_reduce_413(val, _values, result) ⇒ Object
9270 9271 9272 9273 9274 9275 9276 |
# File 'lib/parser/ruby25.rb', line 9270 def _reduce_413(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_414(val, _values, result) ⇒ Object
9278 9279 9280 9281 9282 9283 9284 |
# File 'lib/parser/ruby25.rb', line 9278 def _reduce_414(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_415(val, _values, result) ⇒ Object
9286 9287 9288 9289 9290 9291 9292 |
# File 'lib/parser/ruby25.rb', line 9286 def _reduce_415(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_416(val, _values, result) ⇒ Object
9294 9295 9296 9297 9298 |
# File 'lib/parser/ruby25.rb', line 9294 def _reduce_416(val, _values, result) result = @builder.keyword_cmd(:zsuper, val[0]) result end |
#_reduce_417(val, _values, result) ⇒ Object
9300 9301 9302 9303 9304 |
# File 'lib/parser/ruby25.rb', line 9300 def _reduce_417(val, _values, result) result = @builder.index(val[0], val[1], val[2], val[3]) result end |
#_reduce_418(val, _values, result) ⇒ Object
9306 9307 9308 9309 9310 9311 |
# File 'lib/parser/ruby25.rb', line 9306 def _reduce_418(val, _values, result) result = @context.dup @context.in_block = true result end |
#_reduce_419(val, _values, result) ⇒ Object
9313 9314 9315 9316 9317 9318 |
# File 'lib/parser/ruby25.rb', line 9313 def _reduce_419(val, _values, result) result = [ val[0], *val[2], val[3] ] @context.in_block = val[1].in_block result end |
#_reduce_42(val, _values, result) ⇒ Object
7303 7304 7305 7306 7307 |
# File 'lib/parser/ruby25.rb', line 7303 def _reduce_42(val, _values, result) @builder.op_assign(val[0], val[1], val[2]) result end |
#_reduce_420(val, _values, result) ⇒ Object
9320 9321 9322 9323 9324 9325 |
# File 'lib/parser/ruby25.rb', line 9320 def _reduce_420(val, _values, result) result = @context.dup @context.in_block = true result end |
#_reduce_421(val, _values, result) ⇒ Object
9327 9328 9329 9330 9331 9332 |
# File 'lib/parser/ruby25.rb', line 9327 def _reduce_421(val, _values, result) result = [ val[0], *val[2], val[3] ] @context.in_block = val[1].in_block result end |
#_reduce_422(val, _values, result) ⇒ Object
9334 9335 9336 9337 9338 |
# File 'lib/parser/ruby25.rb', line 9334 def _reduce_422(val, _values, result) @static_env.extend_dynamic result end |
#_reduce_423(val, _values, result) ⇒ Object
9340 9341 9342 9343 9344 9345 9346 |
# File 'lib/parser/ruby25.rb', line 9340 def _reduce_423(val, _values, result) result = [ val[1], val[2] ] @static_env.unextend result end |
#_reduce_424(val, _values, result) ⇒ Object
9348 9349 9350 9351 9352 |
# File 'lib/parser/ruby25.rb', line 9348 def _reduce_424(val, _values, result) @static_env.extend_dynamic result end |
#_reduce_425(val, _values, result) ⇒ Object
9354 9355 9356 9357 9358 |
# File 'lib/parser/ruby25.rb', line 9354 def _reduce_425(val, _values, result) @lexer.cmdarg.push(false) result end |
#_reduce_426(val, _values, result) ⇒ Object
9360 9361 9362 9363 9364 9365 9366 9367 |
# File 'lib/parser/ruby25.rb', line 9360 def _reduce_426(val, _values, result) result = [ val[2], val[3] ] @static_env.unextend @lexer.cmdarg.pop result end |
#_reduce_427(val, _values, result) ⇒ Object
9369 9370 9371 9372 9373 9374 |
# File 'lib/parser/ruby25.rb', line 9369 def _reduce_427(val, _values, result) result = [ @builder.when(val[0], val[1], val[2], val[3]), *val[4] ] result end |
#_reduce_428(val, _values, result) ⇒ Object
9376 9377 9378 9379 9380 |
# File 'lib/parser/ruby25.rb', line 9376 def _reduce_428(val, _values, result) result = [ val[0] ] result end |
#_reduce_430(val, _values, result) ⇒ Object
reduce 429 omitted
9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 |
# File 'lib/parser/ruby25.rb', line 9384 def _reduce_430(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_431(val, _values, result) ⇒ Object
9399 9400 9401 9402 9403 |
# File 'lib/parser/ruby25.rb', line 9399 def _reduce_431(val, _values, result) result = [] result end |
#_reduce_432(val, _values, result) ⇒ Object
9405 9406 9407 9408 9409 |
# File 'lib/parser/ruby25.rb', line 9405 def _reduce_432(val, _values, result) result = [ val[0] ] result end |
#_reduce_435(val, _values, result) ⇒ Object
reduce 434 omitted
9415 9416 9417 9418 9419 |
# File 'lib/parser/ruby25.rb', line 9415 def _reduce_435(val, _values, result) result = [ val[0], val[1] ] result end |
#_reduce_437(val, _values, result) ⇒ Object
reduce 436 omitted
9423 9424 9425 9426 9427 |
# File 'lib/parser/ruby25.rb', line 9423 def _reduce_437(val, _values, result) result = [ val[0], val[1] ] result end |
#_reduce_44(val, _values, result) ⇒ Object
reduce 43 omitted
7311 7312 7313 7314 7315 7316 7317 7318 7319 |
# File 'lib/parser/ruby25.rb', line 7311 def _reduce_44(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_442(val, _values, result) ⇒ Object
reduce 441 omitted
9437 9438 9439 9440 9441 |
# File 'lib/parser/ruby25.rb', line 9437 def _reduce_442(val, _values, result) result = @builder.string_compose(nil, val[0], nil) result end |
#_reduce_443(val, _values, result) ⇒ Object
9443 9444 9445 9446 9447 |
# File 'lib/parser/ruby25.rb', line 9443 def _reduce_443(val, _values, result) result = [ val[0] ] result end |
#_reduce_444(val, _values, result) ⇒ Object
9449 9450 9451 9452 9453 |
# File 'lib/parser/ruby25.rb', line 9449 def _reduce_444(val, _values, result) result = val[0] << val[1] result end |
#_reduce_445(val, _values, result) ⇒ Object
9455 9456 9457 9458 9459 9460 |
# File 'lib/parser/ruby25.rb', line 9455 def _reduce_445(val, _values, result) string = @builder.string_compose(val[0], val[1], val[2]) result = @builder.dedent_string(string, @lexer.dedent_level) result end |
#_reduce_446(val, _values, result) ⇒ Object
9462 9463 9464 9465 9466 9467 |
# File 'lib/parser/ruby25.rb', line 9462 def _reduce_446(val, _values, result) string = @builder.string(val[0]) result = @builder.dedent_string(string, @lexer.dedent_level) result end |
#_reduce_447(val, _values, result) ⇒ Object
9469 9470 9471 9472 9473 |
# File 'lib/parser/ruby25.rb', line 9469 def _reduce_447(val, _values, result) result = @builder.character(val[0]) result end |
#_reduce_448(val, _values, result) ⇒ Object
9475 9476 9477 9478 9479 9480 |
# File 'lib/parser/ruby25.rb', line 9475 def _reduce_448(val, _values, result) string = @builder.xstring_compose(val[0], val[1], val[2]) result = @builder.dedent_string(string, @lexer.dedent_level) result end |
#_reduce_449(val, _values, result) ⇒ Object
9482 9483 9484 9485 9486 9487 |
# File 'lib/parser/ruby25.rb', line 9482 def _reduce_449(val, _values, result) opts = @builder.(val[3]) result = @builder.regexp_compose(val[0], val[1], val[2], opts) result end |
#_reduce_450(val, _values, result) ⇒ Object
9489 9490 9491 9492 9493 |
# File 'lib/parser/ruby25.rb', line 9489 def _reduce_450(val, _values, result) result = @builder.words_compose(val[0], val[1], val[2]) result end |
#_reduce_451(val, _values, result) ⇒ Object
9495 9496 9497 9498 9499 |
# File 'lib/parser/ruby25.rb', line 9495 def _reduce_451(val, _values, result) result = [] result end |
#_reduce_452(val, _values, result) ⇒ Object
9501 9502 9503 9504 9505 |
# File 'lib/parser/ruby25.rb', line 9501 def _reduce_452(val, _values, result) result = val[0] << @builder.word(val[1]) result end |
#_reduce_453(val, _values, result) ⇒ Object
9507 9508 9509 9510 9511 |
# File 'lib/parser/ruby25.rb', line 9507 def _reduce_453(val, _values, result) result = [ val[0] ] result end |
#_reduce_454(val, _values, result) ⇒ Object
9513 9514 9515 9516 9517 |
# File 'lib/parser/ruby25.rb', line 9513 def _reduce_454(val, _values, result) result = val[0] << val[1] result end |
#_reduce_455(val, _values, result) ⇒ Object
9519 9520 9521 9522 9523 |
# File 'lib/parser/ruby25.rb', line 9519 def _reduce_455(val, _values, result) result = @builder.symbols_compose(val[0], val[1], val[2]) result end |
#_reduce_456(val, _values, result) ⇒ Object
9525 9526 9527 9528 9529 |
# File 'lib/parser/ruby25.rb', line 9525 def _reduce_456(val, _values, result) result = [] result end |
#_reduce_457(val, _values, result) ⇒ Object
9531 9532 9533 9534 9535 |
# File 'lib/parser/ruby25.rb', line 9531 def _reduce_457(val, _values, result) result = val[0] << @builder.word(val[1]) result end |
#_reduce_458(val, _values, result) ⇒ Object
9537 9538 9539 9540 9541 |
# File 'lib/parser/ruby25.rb', line 9537 def _reduce_458(val, _values, result) result = @builder.words_compose(val[0], val[1], val[2]) result end |
#_reduce_459(val, _values, result) ⇒ Object
9543 9544 9545 9546 9547 |
# File 'lib/parser/ruby25.rb', line 9543 def _reduce_459(val, _values, result) result = @builder.symbols_compose(val[0], val[1], val[2]) result end |
#_reduce_460(val, _values, result) ⇒ Object
9549 9550 9551 9552 9553 |
# File 'lib/parser/ruby25.rb', line 9549 def _reduce_460(val, _values, result) result = [] result end |
#_reduce_461(val, _values, result) ⇒ Object
9555 9556 9557 9558 9559 |
# File 'lib/parser/ruby25.rb', line 9555 def _reduce_461(val, _values, result) result = val[0] << @builder.string_internal(val[1]) result end |
#_reduce_462(val, _values, result) ⇒ Object
9561 9562 9563 9564 9565 |
# File 'lib/parser/ruby25.rb', line 9561 def _reduce_462(val, _values, result) result = [] result end |
#_reduce_463(val, _values, result) ⇒ Object
9567 9568 9569 9570 9571 |
# File 'lib/parser/ruby25.rb', line 9567 def _reduce_463(val, _values, result) result = val[0] << @builder.symbol_internal(val[1]) result end |
#_reduce_464(val, _values, result) ⇒ Object
9573 9574 9575 9576 9577 |
# File 'lib/parser/ruby25.rb', line 9573 def _reduce_464(val, _values, result) result = [] result end |
#_reduce_465(val, _values, result) ⇒ Object
9579 9580 9581 9582 9583 |
# File 'lib/parser/ruby25.rb', line 9579 def _reduce_465(val, _values, result) result = val[0] << val[1] result end |
#_reduce_466(val, _values, result) ⇒ Object
9585 9586 9587 9588 9589 |
# File 'lib/parser/ruby25.rb', line 9585 def _reduce_466(val, _values, result) result = [] result end |
#_reduce_467(val, _values, result) ⇒ Object
9591 9592 9593 9594 9595 |
# File 'lib/parser/ruby25.rb', line 9591 def _reduce_467(val, _values, result) result = val[0] << val[1] result end |
#_reduce_468(val, _values, result) ⇒ Object
9597 9598 9599 9600 9601 |
# File 'lib/parser/ruby25.rb', line 9597 def _reduce_468(val, _values, result) result = [] result end |
#_reduce_469(val, _values, result) ⇒ Object
9603 9604 9605 9606 9607 |
# File 'lib/parser/ruby25.rb', line 9603 def _reduce_469(val, _values, result) result = val[0] << val[1] result end |
#_reduce_47(val, _values, result) ⇒ Object
reduce 46 omitted
7325 7326 7327 7328 7329 |
# File 'lib/parser/ruby25.rb', line 7325 def _reduce_47(val, _values, result) result = @builder.logical_op(:and, val[0], val[1], val[2]) result end |
#_reduce_470(val, _values, result) ⇒ Object
9609 9610 9611 9612 9613 |
# File 'lib/parser/ruby25.rb', line 9609 def _reduce_470(val, _values, result) result = @builder.string_internal(val[0]) result end |
#_reduce_471(val, _values, result) ⇒ Object
9615 9616 9617 9618 9619 |
# File 'lib/parser/ruby25.rb', line 9615 def _reduce_471(val, _values, result) result = val[1] result end |
#_reduce_472(val, _values, result) ⇒ Object
9621 9622 9623 9624 9625 9626 |
# File 'lib/parser/ruby25.rb', line 9621 def _reduce_472(val, _values, result) @lexer.cmdarg.push(false) @lexer.cond.push(false) result end |
#_reduce_473(val, _values, result) ⇒ Object
9628 9629 9630 9631 9632 9633 9634 9635 |
# File 'lib/parser/ruby25.rb', line 9628 def _reduce_473(val, _values, result) @lexer.cmdarg.pop @lexer.cond.pop result = @builder.begin(val[0], val[2], val[3]) result end |
#_reduce_474(val, _values, result) ⇒ Object
9637 9638 9639 9640 9641 |
# File 'lib/parser/ruby25.rb', line 9637 def _reduce_474(val, _values, result) result = @builder.gvar(val[0]) result end |
#_reduce_475(val, _values, result) ⇒ Object
9643 9644 9645 9646 9647 |
# File 'lib/parser/ruby25.rb', line 9643 def _reduce_475(val, _values, result) result = @builder.ivar(val[0]) result end |
#_reduce_476(val, _values, result) ⇒ Object
9649 9650 9651 9652 9653 |
# File 'lib/parser/ruby25.rb', line 9649 def _reduce_476(val, _values, result) result = @builder.cvar(val[0]) result end |
#_reduce_478(val, _values, result) ⇒ Object
reduce 477 omitted
9657 9658 9659 9660 9661 9662 |
# File 'lib/parser/ruby25.rb', line 9657 def _reduce_478(val, _values, result) @lexer.state = :expr_end result = @builder.symbol(val[0]) result end |
#_reduce_479(val, _values, result) ⇒ Object
9664 9665 9666 9667 9668 9669 |
# File 'lib/parser/ruby25.rb', line 9664 def _reduce_479(val, _values, result) @lexer.state = :expr_end result = @builder.symbol_compose(val[0], val[1], val[2]) result end |
#_reduce_48(val, _values, result) ⇒ Object
7331 7332 7333 7334 7335 |
# File 'lib/parser/ruby25.rb', line 7331 def _reduce_48(val, _values, result) result = @builder.logical_op(:or, val[0], val[1], val[2]) result end |
#_reduce_480(val, _values, result) ⇒ Object
9671 9672 9673 9674 9675 |
# File 'lib/parser/ruby25.rb', line 9671 def _reduce_480(val, _values, result) result = val[0] result end |
#_reduce_481(val, _values, result) ⇒ Object
9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 |
# File 'lib/parser/ruby25.rb', line 9677 def _reduce_481(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_482(val, _values, result) ⇒ Object
9688 9689 9690 9691 9692 9693 |
# File 'lib/parser/ruby25.rb', line 9688 def _reduce_482(val, _values, result) @lexer.state = :expr_end result = @builder.integer(val[0]) result end |
#_reduce_483(val, _values, result) ⇒ Object
9695 9696 9697 9698 9699 9700 |
# File 'lib/parser/ruby25.rb', line 9695 def _reduce_483(val, _values, result) @lexer.state = :expr_end result = @builder.float(val[0]) result end |
#_reduce_484(val, _values, result) ⇒ Object
9702 9703 9704 9705 9706 9707 |
# File 'lib/parser/ruby25.rb', line 9702 def _reduce_484(val, _values, result) @lexer.state = :expr_end result = @builder.rational(val[0]) result end |
#_reduce_485(val, _values, result) ⇒ Object
9709 9710 9711 9712 9713 9714 |
# File 'lib/parser/ruby25.rb', line 9709 def _reduce_485(val, _values, result) @lexer.state = :expr_end result = @builder.complex(val[0]) result end |
#_reduce_486(val, _values, result) ⇒ Object
9716 9717 9718 9719 9720 |
# File 'lib/parser/ruby25.rb', line 9716 def _reduce_486(val, _values, result) result = @builder.ident(val[0]) result end |
#_reduce_487(val, _values, result) ⇒ Object
9722 9723 9724 9725 9726 |
# File 'lib/parser/ruby25.rb', line 9722 def _reduce_487(val, _values, result) result = @builder.ivar(val[0]) result end |
#_reduce_488(val, _values, result) ⇒ Object
9728 9729 9730 9731 9732 |
# File 'lib/parser/ruby25.rb', line 9728 def _reduce_488(val, _values, result) result = @builder.gvar(val[0]) result end |
#_reduce_489(val, _values, result) ⇒ Object
9734 9735 9736 9737 9738 |
# File 'lib/parser/ruby25.rb', line 9734 def _reduce_489(val, _values, result) result = @builder.const(val[0]) result end |
#_reduce_49(val, _values, result) ⇒ Object
7337 7338 7339 7340 7341 |
# File 'lib/parser/ruby25.rb', line 7337 def _reduce_49(val, _values, result) result = @builder.not_op(val[0], nil, val[2], nil) result end |
#_reduce_490(val, _values, result) ⇒ Object
9740 9741 9742 9743 9744 |
# File 'lib/parser/ruby25.rb', line 9740 def _reduce_490(val, _values, result) result = @builder.cvar(val[0]) result end |
#_reduce_491(val, _values, result) ⇒ Object
9746 9747 9748 9749 9750 |
# File 'lib/parser/ruby25.rb', line 9746 def _reduce_491(val, _values, result) result = @builder.nil(val[0]) result end |
#_reduce_492(val, _values, result) ⇒ Object
9752 9753 9754 9755 9756 |
# File 'lib/parser/ruby25.rb', line 9752 def _reduce_492(val, _values, result) result = @builder.self(val[0]) result end |
#_reduce_493(val, _values, result) ⇒ Object
9758 9759 9760 9761 9762 |
# File 'lib/parser/ruby25.rb', line 9758 def _reduce_493(val, _values, result) result = @builder.true(val[0]) result end |
#_reduce_494(val, _values, result) ⇒ Object
9764 9765 9766 9767 9768 |
# File 'lib/parser/ruby25.rb', line 9764 def _reduce_494(val, _values, result) result = @builder.false(val[0]) result end |
#_reduce_495(val, _values, result) ⇒ Object
9770 9771 9772 9773 9774 |
# File 'lib/parser/ruby25.rb', line 9770 def _reduce_495(val, _values, result) result = @builder.__FILE__(val[0]) result end |
#_reduce_496(val, _values, result) ⇒ Object
9776 9777 9778 9779 9780 |
# File 'lib/parser/ruby25.rb', line 9776 def _reduce_496(val, _values, result) result = @builder.__LINE__(val[0]) result end |
#_reduce_497(val, _values, result) ⇒ Object
9782 9783 9784 9785 9786 |
# File 'lib/parser/ruby25.rb', line 9782 def _reduce_497(val, _values, result) result = @builder.__ENCODING__(val[0]) result end |
#_reduce_498(val, _values, result) ⇒ Object
9788 9789 9790 9791 9792 |
# File 'lib/parser/ruby25.rb', line 9788 def _reduce_498(val, _values, result) result = @builder.accessible(val[0]) result end |
#_reduce_499(val, _values, result) ⇒ Object
9794 9795 9796 9797 9798 |
# File 'lib/parser/ruby25.rb', line 9794 def _reduce_499(val, _values, result) result = @builder.accessible(val[0]) result end |
#_reduce_5(val, _values, result) ⇒ Object
7061 7062 7063 7064 7065 |
# File 'lib/parser/ruby25.rb', line 7061 def _reduce_5(val, _values, result) result = val[0] << val[2] result end |
#_reduce_50(val, _values, result) ⇒ Object
7343 7344 7345 7346 7347 |
# File 'lib/parser/ruby25.rb', line 7343 def _reduce_50(val, _values, result) result = @builder.not_op(val[0], nil, val[1], nil) result end |
#_reduce_500(val, _values, result) ⇒ Object
9800 9801 9802 9803 9804 |
# File 'lib/parser/ruby25.rb', line 9800 def _reduce_500(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_501(val, _values, result) ⇒ Object
9806 9807 9808 9809 9810 |
# File 'lib/parser/ruby25.rb', line 9806 def _reduce_501(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_502(val, _values, result) ⇒ Object
9812 9813 9814 9815 9816 |
# File 'lib/parser/ruby25.rb', line 9812 def _reduce_502(val, _values, result) result = @builder.nth_ref(val[0]) result end |
#_reduce_503(val, _values, result) ⇒ Object
9818 9819 9820 9821 9822 |
# File 'lib/parser/ruby25.rb', line 9818 def _reduce_503(val, _values, result) result = @builder.back_ref(val[0]) result end |
#_reduce_504(val, _values, result) ⇒ Object
9824 9825 9826 9827 9828 |
# File 'lib/parser/ruby25.rb', line 9824 def _reduce_504(val, _values, result) @lexer.state = :expr_value result end |
#_reduce_505(val, _values, result) ⇒ Object
9830 9831 9832 9833 9834 |
# File 'lib/parser/ruby25.rb', line 9830 def _reduce_505(val, _values, result) result = [ val[0], val[2] ] result end |
#_reduce_506(val, _values, result) ⇒ Object
9836 9837 9838 9839 9840 |
# File 'lib/parser/ruby25.rb', line 9836 def _reduce_506(val, _values, result) result = nil result end |
#_reduce_507(val, _values, result) ⇒ Object
9842 9843 9844 9845 9846 9847 9848 |
# File 'lib/parser/ruby25.rb', line 9842 def _reduce_507(val, _values, result) result = @builder.args(val[0], val[1], val[2]) @lexer.state = :expr_value result end |
#_reduce_508(val, _values, result) ⇒ Object
9850 9851 9852 9853 9854 9855 |
# File 'lib/parser/ruby25.rb', line 9850 def _reduce_508(val, _values, result) result = @context.in_kwarg @context.in_kwarg = true result end |
#_reduce_509(val, _values, result) ⇒ Object
9857 9858 9859 9860 9861 9862 |
# File 'lib/parser/ruby25.rb', line 9857 def _reduce_509(val, _values, result) @context.in_kwarg = val[0] result = @builder.args(nil, val[1], nil) result end |
#_reduce_510(val, _values, result) ⇒ Object
9864 9865 9866 9867 9868 |
# File 'lib/parser/ruby25.rb', line 9864 def _reduce_510(val, _values, result) result = val[0].concat(val[2]).concat(val[3]) result end |
#_reduce_511(val, _values, result) ⇒ Object
9870 9871 9872 9873 9874 |
# File 'lib/parser/ruby25.rb', line 9870 def _reduce_511(val, _values, result) result = val[0].concat(val[1]) result end |
#_reduce_512(val, _values, result) ⇒ Object
9876 9877 9878 9879 9880 |
# File 'lib/parser/ruby25.rb', line 9876 def _reduce_512(val, _values, result) result = val[0].concat(val[1]) result end |
#_reduce_513(val, _values, result) ⇒ Object
9882 9883 9884 9885 9886 |
# File 'lib/parser/ruby25.rb', line 9882 def _reduce_513(val, _values, result) result = [ val[0] ] result end |
#_reduce_514(val, _values, result) ⇒ Object
9888 9889 9890 9891 9892 |
# File 'lib/parser/ruby25.rb', line 9888 def _reduce_514(val, _values, result) result = val[1] result end |
#_reduce_515(val, _values, result) ⇒ Object
9894 9895 9896 9897 9898 |
# File 'lib/parser/ruby25.rb', line 9894 def _reduce_515(val, _values, result) result = [] result end |
#_reduce_516(val, _values, result) ⇒ Object
9900 9901 9902 9903 9904 9905 9906 9907 |
# File 'lib/parser/ruby25.rb', line 9900 def _reduce_516(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_517(val, _values, result) ⇒ Object
9909 9910 9911 9912 9913 9914 9915 9916 9917 |
# File 'lib/parser/ruby25.rb', line 9909 def _reduce_517(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[6]). concat(val[7]) result end |
#_reduce_518(val, _values, result) ⇒ Object
9919 9920 9921 9922 9923 9924 9925 |
# File 'lib/parser/ruby25.rb', line 9919 def _reduce_518(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_519(val, _values, result) ⇒ Object
9927 9928 9929 9930 9931 9932 9933 9934 |
# File 'lib/parser/ruby25.rb', line 9927 def _reduce_519(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_520(val, _values, result) ⇒ Object
9936 9937 9938 9939 9940 9941 9942 |
# File 'lib/parser/ruby25.rb', line 9936 def _reduce_520(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_521(val, _values, result) ⇒ Object
9944 9945 9946 9947 9948 9949 9950 9951 |
# File 'lib/parser/ruby25.rb', line 9944 def _reduce_521(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_522(val, _values, result) ⇒ Object
9953 9954 9955 9956 9957 9958 |
# File 'lib/parser/ruby25.rb', line 9953 def _reduce_522(val, _values, result) result = val[0]. concat(val[1]) result end |
#_reduce_523(val, _values, result) ⇒ Object
9960 9961 9962 9963 9964 9965 9966 |
# File 'lib/parser/ruby25.rb', line 9960 def _reduce_523(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_524(val, _values, result) ⇒ Object
9968 9969 9970 9971 9972 9973 9974 9975 |
# File 'lib/parser/ruby25.rb', line 9968 def _reduce_524(val, _values, result) result = val[0]. concat(val[2]). concat(val[4]). concat(val[5]) result end |
#_reduce_525(val, _values, result) ⇒ Object
9977 9978 9979 9980 9981 9982 |
# File 'lib/parser/ruby25.rb', line 9977 def _reduce_525(val, _values, result) result = val[0]. concat(val[1]) result end |
#_reduce_526(val, _values, result) ⇒ Object
9984 9985 9986 9987 9988 9989 9990 |
# File 'lib/parser/ruby25.rb', line 9984 def _reduce_526(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_527(val, _values, result) ⇒ Object
9992 9993 9994 9995 9996 9997 |
# File 'lib/parser/ruby25.rb', line 9992 def _reduce_527(val, _values, result) result = val[0]. concat(val[1]) result end |
#_reduce_528(val, _values, result) ⇒ Object
9999 10000 10001 10002 10003 10004 10005 |
# File 'lib/parser/ruby25.rb', line 9999 def _reduce_528(val, _values, result) result = val[0]. concat(val[2]). concat(val[3]) result end |
#_reduce_529(val, _values, result) ⇒ Object
10007 10008 10009 10010 10011 |
# File 'lib/parser/ruby25.rb', line 10007 def _reduce_529(val, _values, result) result = val[0] result end |
#_reduce_53(val, _values, result) ⇒ Object
reduce 52 omitted
7353 7354 7355 7356 7357 |
# File 'lib/parser/ruby25.rb', line 7353 def _reduce_53(val, _values, result) @lexer.cond.push(true) result end |
#_reduce_530(val, _values, result) ⇒ Object
10013 10014 10015 10016 10017 |
# File 'lib/parser/ruby25.rb', line 10013 def _reduce_530(val, _values, result) result = [] result end |
#_reduce_531(val, _values, result) ⇒ Object
10019 10020 10021 10022 10023 |
# File 'lib/parser/ruby25.rb', line 10019 def _reduce_531(val, _values, result) diagnostic :error, :argument_const, nil, val[0] result end |
#_reduce_532(val, _values, result) ⇒ Object
10025 10026 10027 10028 10029 |
# File 'lib/parser/ruby25.rb', line 10025 def _reduce_532(val, _values, result) diagnostic :error, :argument_ivar, nil, val[0] result end |
#_reduce_533(val, _values, result) ⇒ Object
10031 10032 10033 10034 10035 |
# File 'lib/parser/ruby25.rb', line 10031 def _reduce_533(val, _values, result) diagnostic :error, :argument_gvar, nil, val[0] result end |
#_reduce_534(val, _values, result) ⇒ Object
10037 10038 10039 10040 10041 |
# File 'lib/parser/ruby25.rb', line 10037 def _reduce_534(val, _values, result) diagnostic :error, :argument_cvar, nil, val[0] result end |
#_reduce_536(val, _values, result) ⇒ Object
reduce 535 omitted
10045 10046 10047 10048 10049 10050 10051 |
# File 'lib/parser/ruby25.rb', line 10045 def _reduce_536(val, _values, result) @static_env.declare val[0][0] result = val[0] result end |
#_reduce_537(val, _values, result) ⇒ Object
10053 10054 10055 10056 10057 |
# File 'lib/parser/ruby25.rb', line 10053 def _reduce_537(val, _values, result) result = val[0] result end |
#_reduce_538(val, _values, result) ⇒ Object
10059 10060 10061 10062 10063 |
# File 'lib/parser/ruby25.rb', line 10059 def _reduce_538(val, _values, result) result = @builder.arg(val[0]) result end |
#_reduce_539(val, _values, result) ⇒ Object
10065 10066 10067 10068 10069 |
# File 'lib/parser/ruby25.rb', line 10065 def _reduce_539(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) result end |
#_reduce_54(val, _values, result) ⇒ Object
7359 7360 7361 7362 7363 7364 |
# File 'lib/parser/ruby25.rb', line 7359 def _reduce_54(val, _values, result) @lexer.cond.pop result = [ val[1], val[2] ] result end |
#_reduce_540(val, _values, result) ⇒ Object
10071 10072 10073 10074 10075 |
# File 'lib/parser/ruby25.rb', line 10071 def _reduce_540(val, _values, result) result = [ val[0] ] result end |
#_reduce_541(val, _values, result) ⇒ Object
10077 10078 10079 10080 10081 |
# File 'lib/parser/ruby25.rb', line 10077 def _reduce_541(val, _values, result) result = val[0] << val[2] result end |
#_reduce_542(val, _values, result) ⇒ Object
10083 10084 10085 10086 10087 10088 10089 10090 10091 |
# File 'lib/parser/ruby25.rb', line 10083 def _reduce_542(val, _values, result) check_kwarg_name(val[0]) @static_env.declare val[0][0] result = val[0] result end |
#_reduce_543(val, _values, result) ⇒ Object
10093 10094 10095 10096 10097 |
# File 'lib/parser/ruby25.rb', line 10093 def _reduce_543(val, _values, result) result = @builder.kwoptarg(val[0], val[1]) result end |
#_reduce_544(val, _values, result) ⇒ Object
10099 10100 10101 10102 10103 |
# File 'lib/parser/ruby25.rb', line 10099 def _reduce_544(val, _values, result) result = @builder.kwarg(val[0]) result end |
#_reduce_545(val, _values, result) ⇒ Object
10105 10106 10107 10108 10109 |
# File 'lib/parser/ruby25.rb', line 10105 def _reduce_545(val, _values, result) result = @builder.kwoptarg(val[0], val[1]) result end |
#_reduce_546(val, _values, result) ⇒ Object
10111 10112 10113 10114 10115 |
# File 'lib/parser/ruby25.rb', line 10111 def _reduce_546(val, _values, result) result = @builder.kwarg(val[0]) result end |
#_reduce_547(val, _values, result) ⇒ Object
10117 10118 10119 10120 10121 |
# File 'lib/parser/ruby25.rb', line 10117 def _reduce_547(val, _values, result) result = [ val[0] ] result end |
#_reduce_548(val, _values, result) ⇒ Object
10123 10124 10125 10126 10127 |
# File 'lib/parser/ruby25.rb', line 10123 def _reduce_548(val, _values, result) result = val[0] << val[2] result end |
#_reduce_549(val, _values, result) ⇒ Object
10129 10130 10131 10132 10133 |
# File 'lib/parser/ruby25.rb', line 10129 def _reduce_549(val, _values, result) result = [ val[0] ] result end |
#_reduce_550(val, _values, result) ⇒ Object
10135 10136 10137 10138 10139 |
# File 'lib/parser/ruby25.rb', line 10135 def _reduce_550(val, _values, result) result = val[0] << val[2] result end |
#_reduce_553(val, _values, result) ⇒ Object
reduce 552 omitted
10145 10146 10147 10148 10149 10150 10151 |
# File 'lib/parser/ruby25.rb', line 10145 def _reduce_553(val, _values, result) @static_env.declare val[1][0] result = [ @builder.kwrestarg(val[0], val[1]) ] result end |
#_reduce_554(val, _values, result) ⇒ Object
10153 10154 10155 10156 10157 |
# File 'lib/parser/ruby25.rb', line 10153 def _reduce_554(val, _values, result) result = [ @builder.kwrestarg(val[0]) ] result end |
#_reduce_555(val, _values, result) ⇒ Object
10159 10160 10161 10162 10163 |
# File 'lib/parser/ruby25.rb', line 10159 def _reduce_555(val, _values, result) result = @builder.optarg(val[0], val[1], val[2]) result end |
#_reduce_556(val, _values, result) ⇒ Object
10165 10166 10167 10168 10169 |
# File 'lib/parser/ruby25.rb', line 10165 def _reduce_556(val, _values, result) result = @builder.optarg(val[0], val[1], val[2]) result end |
#_reduce_557(val, _values, result) ⇒ Object
10171 10172 10173 10174 10175 |
# File 'lib/parser/ruby25.rb', line 10171 def _reduce_557(val, _values, result) result = [ val[0] ] result end |
#_reduce_558(val, _values, result) ⇒ Object
10177 10178 10179 10180 10181 |
# File 'lib/parser/ruby25.rb', line 10177 def _reduce_558(val, _values, result) result = val[0] << val[2] result end |
#_reduce_559(val, _values, result) ⇒ Object
10183 10184 10185 10186 10187 |
# File 'lib/parser/ruby25.rb', line 10183 def _reduce_559(val, _values, result) result = [ val[0] ] result end |
#_reduce_560(val, _values, result) ⇒ Object
10189 10190 10191 10192 10193 |
# File 'lib/parser/ruby25.rb', line 10189 def _reduce_560(val, _values, result) result = val[0] << val[2] result end |
#_reduce_563(val, _values, result) ⇒ Object
reduce 562 omitted
10199 10200 10201 10202 10203 10204 10205 |
# File 'lib/parser/ruby25.rb', line 10199 def _reduce_563(val, _values, result) @static_env.declare val[1][0] result = [ @builder.restarg(val[0], val[1]) ] result end |
#_reduce_564(val, _values, result) ⇒ Object
10207 10208 10209 10210 10211 |
# File 'lib/parser/ruby25.rb', line 10207 def _reduce_564(val, _values, result) result = [ @builder.restarg(val[0]) ] result end |
#_reduce_567(val, _values, result) ⇒ Object
reduce 566 omitted
10217 10218 10219 10220 10221 10222 10223 |
# File 'lib/parser/ruby25.rb', line 10217 def _reduce_567(val, _values, result) @static_env.declare val[1][0] result = @builder.blockarg(val[0], val[1]) result end |
#_reduce_568(val, _values, result) ⇒ Object
10225 10226 10227 10228 10229 |
# File 'lib/parser/ruby25.rb', line 10225 def _reduce_568(val, _values, result) result = [ val[1] ] result end |
#_reduce_569(val, _values, result) ⇒ Object
10231 10232 10233 10234 10235 |
# File 'lib/parser/ruby25.rb', line 10231 def _reduce_569(val, _values, result) result = [] result end |
#_reduce_571(val, _values, result) ⇒ Object
reduce 570 omitted
10239 10240 10241 10242 10243 |
# File 'lib/parser/ruby25.rb', line 10239 def _reduce_571(val, _values, result) result = val[1] result end |
#_reduce_572(val, _values, result) ⇒ Object
10245 10246 10247 10248 10249 |
# File 'lib/parser/ruby25.rb', line 10245 def _reduce_572(val, _values, result) result = [] result end |
#_reduce_574(val, _values, result) ⇒ Object
reduce 573 omitted
10253 10254 10255 10256 10257 |
# File 'lib/parser/ruby25.rb', line 10253 def _reduce_574(val, _values, result) result = [ val[0] ] result end |
#_reduce_575(val, _values, result) ⇒ Object
10259 10260 10261 10262 10263 |
# File 'lib/parser/ruby25.rb', line 10259 def _reduce_575(val, _values, result) result = val[0] << val[2] result end |
#_reduce_576(val, _values, result) ⇒ Object
10265 10266 10267 10268 10269 |
# File 'lib/parser/ruby25.rb', line 10265 def _reduce_576(val, _values, result) result = @builder.pair(val[0], val[1], val[2]) result end |
#_reduce_577(val, _values, result) ⇒ Object
10271 10272 10273 10274 10275 |
# File 'lib/parser/ruby25.rb', line 10271 def _reduce_577(val, _values, result) result = @builder.pair_keyword(val[0], val[1]) result end |
#_reduce_578(val, _values, result) ⇒ Object
10277 10278 10279 10280 10281 |
# File 'lib/parser/ruby25.rb', line 10277 def _reduce_578(val, _values, result) result = @builder.pair_quoted(val[0], val[1], val[2], val[3]) result end |
#_reduce_579(val, _values, result) ⇒ Object
10283 10284 10285 10286 10287 |
# File 'lib/parser/ruby25.rb', line 10283 def _reduce_579(val, _values, result) result = @builder.kwsplat(val[0], val[1]) result end |
#_reduce_58(val, _values, result) ⇒ Object
reduce 57 omitted
7372 7373 7374 7375 7376 7377 |
# File 'lib/parser/ruby25.rb', line 7372 def _reduce_58(val, _values, result) result = @builder.call_method(val[0], val[1], val[2], nil, val[3], nil) result end |
#_reduce_59(val, _values, result) ⇒ Object
7379 7380 7381 7382 7383 7384 |
# File 'lib/parser/ruby25.rb', line 7379 def _reduce_59(val, _values, result) result = @context.dup @context.in_block = true result end |
#_reduce_592(val, _values, result) ⇒ Object
reduce 591 omitted
10313 10314 10315 10316 10317 |
# File 'lib/parser/ruby25.rb', line 10313 def _reduce_592(val, _values, result) result = [:dot, val[0][1]] result end |
#_reduce_593(val, _values, result) ⇒ Object
10319 10320 10321 10322 10323 |
# File 'lib/parser/ruby25.rb', line 10319 def _reduce_593(val, _values, result) result = [:anddot, val[0][1]] result end |
#_reduce_598(val, _values, result) ⇒ Object
reduce 597 omitted
10333 10334 10335 10336 10337 |
# File 'lib/parser/ruby25.rb', line 10333 def _reduce_598(val, _values, result) result = val[1] result end |
#_reduce_599(val, _values, result) ⇒ Object
10339 10340 10341 10342 10343 |
# File 'lib/parser/ruby25.rb', line 10339 def _reduce_599(val, _values, result) result = val[1] result end |
#_reduce_6(val, _values, result) ⇒ Object
7067 7068 7069 7070 7071 |
# File 'lib/parser/ruby25.rb', line 7067 def _reduce_6(val, _values, result) result = [ val[1] ] result end |
#_reduce_60(val, _values, result) ⇒ Object
7386 7387 7388 7389 7390 7391 |
# File 'lib/parser/ruby25.rb', line 7386 def _reduce_60(val, _values, result) result = [ val[0], *val[2], val[3] ] @context.in_block = val[1].in_block result end |
#_reduce_603(val, _values, result) ⇒ Object
reduce 602 omitted
10351 10352 10353 10354 10355 |
# File 'lib/parser/ruby25.rb', line 10351 def _reduce_603(val, _values, result) yyerrok result end |
#_reduce_607(val, _values, result) ⇒ Object
reduce 606 omitted
10363 10364 10365 10366 10367 |
# File 'lib/parser/ruby25.rb', line 10363 def _reduce_607(val, _values, result) result = nil result end |
#_reduce_62(val, _values, result) ⇒ Object
reduce 61 omitted
7395 7396 7397 7398 7399 7400 |
# File 'lib/parser/ruby25.rb', line 7395 def _reduce_62(val, _values, result) result = @builder.call_method(nil, nil, val[0], nil, val[1], nil) result end |
#_reduce_63(val, _values, result) ⇒ Object
7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 |
# File 'lib/parser/ruby25.rb', line 7402 def _reduce_63(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_64(val, _values, result) ⇒ Object
7413 7414 7415 7416 7417 7418 |
# File 'lib/parser/ruby25.rb', line 7413 def _reduce_64(val, _values, result) result = @builder.call_method(val[0], val[1], val[2], nil, val[3], nil) result end |
#_reduce_65(val, _values, result) ⇒ Object
7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 |
# File 'lib/parser/ruby25.rb', line 7420 def _reduce_65(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_66(val, _values, result) ⇒ Object
7431 7432 7433 7434 7435 7436 |
# File 'lib/parser/ruby25.rb', line 7431 def _reduce_66(val, _values, result) result = @builder.call_method(val[0], val[1], val[2], nil, val[3], nil) result end |
#_reduce_67(val, _values, result) ⇒ Object
7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 |
# File 'lib/parser/ruby25.rb', line 7438 def _reduce_67(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_68(val, _values, result) ⇒ Object
7449 7450 7451 7452 7453 7454 |
# File 'lib/parser/ruby25.rb', line 7449 def _reduce_68(val, _values, result) result = @builder.keyword_cmd(:super, val[0], nil, val[1], nil) result end |
#_reduce_69(val, _values, result) ⇒ Object
7456 7457 7458 7459 7460 7461 |
# File 'lib/parser/ruby25.rb', line 7456 def _reduce_69(val, _values, result) result = @builder.keyword_cmd(:yield, val[0], nil, val[1], nil) result end |
#_reduce_70(val, _values, result) ⇒ Object
7463 7464 7465 7466 7467 7468 |
# File 'lib/parser/ruby25.rb', line 7463 def _reduce_70(val, _values, result) result = @builder.keyword_cmd(:return, val[0], nil, val[1], nil) result end |
#_reduce_71(val, _values, result) ⇒ Object
7470 7471 7472 7473 7474 7475 |
# File 'lib/parser/ruby25.rb', line 7470 def _reduce_71(val, _values, result) result = @builder.keyword_cmd(:break, val[0], nil, val[1], nil) result end |
#_reduce_72(val, _values, result) ⇒ Object
7477 7478 7479 7480 7481 7482 |
# File 'lib/parser/ruby25.rb', line 7477 def _reduce_72(val, _values, result) result = @builder.keyword_cmd(:next, val[0], nil, val[1], nil) result end |
#_reduce_73(val, _values, result) ⇒ Object
7484 7485 7486 7487 7488 |
# File 'lib/parser/ruby25.rb', line 7484 def _reduce_73(val, _values, result) result = @builder.multi_lhs(nil, val[0], nil) result end |
#_reduce_74(val, _values, result) ⇒ Object
7490 7491 7492 7493 7494 |
# File 'lib/parser/ruby25.rb', line 7490 def _reduce_74(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) result end |
#_reduce_75(val, _values, result) ⇒ Object
7496 7497 7498 7499 7500 |
# File 'lib/parser/ruby25.rb', line 7496 def _reduce_75(val, _values, result) result = @builder.multi_lhs(nil, val[0], nil) result end |
#_reduce_76(val, _values, result) ⇒ Object
7502 7503 7504 7505 7506 |
# File 'lib/parser/ruby25.rb', line 7502 def _reduce_76(val, _values, result) result = @builder.multi_lhs(val[0], val[1], val[2]) result end |
#_reduce_78(val, _values, result) ⇒ Object
reduce 77 omitted
7510 7511 7512 7513 7514 7515 |
# File 'lib/parser/ruby25.rb', line 7510 def _reduce_78(val, _values, result) result = val[0]. push(val[1]) result end |
#_reduce_79(val, _values, result) ⇒ Object
7517 7518 7519 7520 7521 7522 |
# File 'lib/parser/ruby25.rb', line 7517 def _reduce_79(val, _values, result) result = val[0]. push(@builder.splat(val[1], val[2])) result end |
#_reduce_8(val, _values, result) ⇒ Object
reduce 7 omitted
7075 7076 7077 7078 7079 |
# File 'lib/parser/ruby25.rb', line 7075 def _reduce_8(val, _values, result) result = @builder.preexe(val[0], *val[1]) result end |
#_reduce_80(val, _values, result) ⇒ Object
7524 7525 7526 7527 7528 7529 7530 |
# File 'lib/parser/ruby25.rb', line 7524 def _reduce_80(val, _values, result) result = val[0]. push(@builder.splat(val[1], val[2])). concat(val[4]) result end |
#_reduce_81(val, _values, result) ⇒ Object
7532 7533 7534 7535 7536 7537 |
# File 'lib/parser/ruby25.rb', line 7532 def _reduce_81(val, _values, result) result = val[0]. push(@builder.splat(val[1])) result end |
#_reduce_82(val, _values, result) ⇒ Object
7539 7540 7541 7542 7543 7544 7545 |
# File 'lib/parser/ruby25.rb', line 7539 def _reduce_82(val, _values, result) result = val[0]. push(@builder.splat(val[1])). concat(val[3]) result end |
#_reduce_83(val, _values, result) ⇒ Object
7547 7548 7549 7550 7551 |
# File 'lib/parser/ruby25.rb', line 7547 def _reduce_83(val, _values, result) result = [ @builder.splat(val[0], val[1]) ] result end |
#_reduce_84(val, _values, result) ⇒ Object
7553 7554 7555 7556 7557 7558 |
# File 'lib/parser/ruby25.rb', line 7553 def _reduce_84(val, _values, result) result = [ @builder.splat(val[0], val[1]), *val[3] ] result end |
#_reduce_85(val, _values, result) ⇒ Object
7560 7561 7562 7563 7564 |
# File 'lib/parser/ruby25.rb', line 7560 def _reduce_85(val, _values, result) result = [ @builder.splat(val[0]) ] result end |
#_reduce_86(val, _values, result) ⇒ Object
7566 7567 7568 7569 7570 7571 |
# File 'lib/parser/ruby25.rb', line 7566 def _reduce_86(val, _values, result) result = [ @builder.splat(val[0]), *val[2] ] result end |
#_reduce_88(val, _values, result) ⇒ Object
reduce 87 omitted
7575 7576 7577 7578 7579 |
# File 'lib/parser/ruby25.rb', line 7575 def _reduce_88(val, _values, result) result = @builder.begin(val[0], val[1], val[2]) result end |
#_reduce_89(val, _values, result) ⇒ Object
7581 7582 7583 7584 7585 |
# File 'lib/parser/ruby25.rb', line 7581 def _reduce_89(val, _values, result) result = [ val[0] ] result end |
#_reduce_9(val, _values, result) ⇒ Object
7081 7082 7083 7084 7085 |
# File 'lib/parser/ruby25.rb', line 7081 def _reduce_9(val, _values, result) result = val result end |
#_reduce_90(val, _values, result) ⇒ Object
7587 7588 7589 7590 7591 |
# File 'lib/parser/ruby25.rb', line 7587 def _reduce_90(val, _values, result) result = val[0] << val[1] result end |
#_reduce_91(val, _values, result) ⇒ Object
7593 7594 7595 7596 7597 |
# File 'lib/parser/ruby25.rb', line 7593 def _reduce_91(val, _values, result) result = [ val[0] ] result end |
#_reduce_92(val, _values, result) ⇒ Object
7599 7600 7601 7602 7603 |
# File 'lib/parser/ruby25.rb', line 7599 def _reduce_92(val, _values, result) result = val[0] << val[2] result end |
#_reduce_93(val, _values, result) ⇒ Object
7605 7606 7607 7608 7609 |
# File 'lib/parser/ruby25.rb', line 7605 def _reduce_93(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_94(val, _values, result) ⇒ Object
7611 7612 7613 7614 7615 |
# File 'lib/parser/ruby25.rb', line 7611 def _reduce_94(val, _values, result) result = @builder.assignable(val[0]) result end |
#_reduce_95(val, _values, result) ⇒ Object
7617 7618 7619 7620 7621 |
# File 'lib/parser/ruby25.rb', line 7617 def _reduce_95(val, _values, result) result = @builder.index_asgn(val[0], val[1], val[2], val[3]) result end |
#_reduce_96(val, _values, result) ⇒ Object
7623 7624 7625 7626 7627 |
# File 'lib/parser/ruby25.rb', line 7623 def _reduce_96(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) result end |
#_reduce_97(val, _values, result) ⇒ Object
7629 7630 7631 7632 7633 |
# File 'lib/parser/ruby25.rb', line 7629 def _reduce_97(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) result end |
#_reduce_98(val, _values, result) ⇒ Object
7635 7636 7637 7638 7639 |
# File 'lib/parser/ruby25.rb', line 7635 def _reduce_98(val, _values, result) result = @builder.attr_asgn(val[0], val[1], val[2]) result end |
#_reduce_99(val, _values, result) ⇒ Object
7641 7642 7643 7644 7645 7646 |
# File 'lib/parser/ruby25.rb', line 7641 def _reduce_99(val, _values, result) result = @builder.assignable( @builder.const_fetch(val[0], val[1], val[2])) result end |
#_reduce_none(val, _values, result) ⇒ Object
10369 10370 10371 |
# File 'lib/parser/ruby25.rb', line 10369 def _reduce_none(val, _values, result) val[0] end |
#default_encoding ⇒ Object
21 22 23 |
# File 'lib/parser/ruby25.rb', line 21 def default_encoding Encoding::UTF_8 end |
#local_pop ⇒ Object
31 32 33 34 35 |
# File 'lib/parser/ruby25.rb', line 31 def local_pop @static_env.unextend @lexer.cmdarg.pop @lexer.cond.pop end |
#local_push ⇒ Object
25 26 27 28 29 |
# File 'lib/parser/ruby25.rb', line 25 def local_push @static_env.extend_static @lexer.cmdarg.push(false) @lexer.cond.push(false) end |
#version ⇒ Object
17 18 19 |
# File 'lib/parser/ruby25.rb', line 17 def version 25 end |