Skip to content

Commit 8ef3954

Browse files
committed
parse.y: Remove duplicated nd_loc set
* parse.y: nd_loc is set by NEW_CASE2/NEW_WHEN git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 81cc61d commit 8ef3954

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

parse.y

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,7 +2810,6 @@ primary : literal
28102810
/*%%%*/
28112811
$$ = NEW_CASE2($3, &@$);
28122812
nd_set_line($$, $<num>1);
2813-
$$->nd_loc = @$;
28142813
/*%
28152814
$$ = dispatch2(case, Qnil, $3);
28162815
%*/
@@ -3741,7 +3740,6 @@ case_body : keyword_when args then
37413740
/*%%%*/
37423741
$$ = NEW_WHEN($2, $4, $5, &@$);
37433742
fixpos($$, $2);
3744-
$$->nd_loc = @$;
37453743
/*%
37463744
$$ = dispatch3(when, $2, $4, escape_Qundef($5));
37473745
%*/

0 commit comments

Comments
 (0)