diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-05 16:04:02 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-05 16:04:02 +0000 |
commit | 1966617674ddc9a43de7923f15b73cf12e654915 (patch) | |
tree | d06227fe10dad0f09ce070e164eb00fe900e345a /parse.y | |
parent | 167fa6fd255dd673902b1ac8c88ef8da9bfb95c1 (diff) | |
download | ruby-1966617674ddc9a43de7923f15b73cf12e654915.tar.gz |
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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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($$, &@$); /*% %*/ } |