1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: Use nd_set_loc instead of direct modification to nd_loc

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-01-05 16:04:02 +00:00
parent 8d06762c27
commit 1d3d8d89fc

View file

@ -3951,7 +3951,7 @@ strings : string
string : tCHAR
{
/*%%%*/
$$->nd_loc = @$;
nd_set_loc($$, &@$);
/*%
%*/
}
@ -4101,7 +4101,7 @@ qword_list : /* none */
| qword_list tSTRING_CONTENT ' '
{
/*%%%*/
$2->nd_loc = @2;
nd_set_loc($2, &@2);
$$ = list_append($1, $2);
/*%
$$ = dispatch2(qwords_add, $1, $2);
@ -4124,7 +4124,7 @@ qsym_list : /* none */
lit = $2->nd_lit;
nd_set_type($2, NODE_LIT);
add_mark_object($2->nd_lit = ID2SYM(rb_intern_str(lit)));
$2->nd_loc = @2;
nd_set_loc($2, &@2);
$$ = list_append($1, $2);
/*%
$$ = dispatch2(qsymbols_add, $1, $2);
@ -4220,7 +4220,7 @@ regexp_contents: /* none */
string_content : tSTRING_CONTENT
{
/*%%%*/
$$->nd_loc = @$;
nd_set_loc($$, &@$);
/*%
%*/
}