parse.y: Remove duplicated nd_line set

* parse.y: These nodes are created with `@$` locations.
  Start position of `@$` is same as start position of `@1`.
  And NEW_XXX macros set first_loc.lineno of a passed
  code range to nd_line. So these nd_set_line are not needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yui-knk 2018-01-09 00:19:51 +00:00
Родитель c434b4aba7
Коммит 473aea5636
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -2787,7 +2787,6 @@ primary : literal
{
/*%%%*/
$$ = NEW_CASE2($3, &@$);
nd_set_line($$, @1.first_loc.lineno);
/*%
$$ = dispatch2(case, Qnil, $3);
%*/
@ -2935,7 +2934,6 @@ primary : literal
$$ = NEW_DEFN($2, $5, body, &@$);
nd_set_line($$->nd_defn, @7.last_loc.lineno);
set_line_body(body, @1.first_loc.lineno);
nd_set_line($$, @1.first_loc.lineno);
/*%
$$ = dispatch3(def, $2, $5, $6);
%*/
@ -2962,7 +2960,6 @@ primary : literal
$$ = NEW_DEFS($2, $5, $7, body, &@$);
nd_set_line($$->nd_defn, @9.last_loc.lineno);
set_line_body(body, @1.first_loc.lineno);
nd_set_line($$, @1.first_loc.lineno);
/*%
$$ = dispatch5(defs, $2, $<val>3, $5, $7, $8);
%*/