ruby-changes:49507
From: mame <ko1@a...>
Date: Sat, 6 Jan 2018 01:04:05 +0900 (JST)
Subject: [ruby-changes:49507] mame:r61622 (trunk): parse.y: Remove unneeded code
mame 2018-01-06 01:04:00 +0900 (Sat, 06 Jan 2018) New Revision: 61622 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61622 Log: parse.y: Remove unneeded code Because block_append sets prelude->nd_loc. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61621) +++ parse.y (revision 61622) @@ -5643,7 +5643,6 @@ yycompile0(VALUE arg) https://github.com/ruby/ruby/blob/trunk/parse.y#L5643 rb_hash_aset(opt, rb_sym_intern_ascii_cstr("coverage_enabled"), cov); prelude = block_append(ruby_eval_tree_begin, body, &body->nd_loc /* dummy location */); add_mark_object(opt); - prelude->nd_loc = body->nd_loc; tree->nd_body = prelude; parser->ast->body.compile_option = opt; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/