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 | 1d3d8d89fc68fdc4de82482f57a9c97ed05abe5c (patch) | |
| tree | d06227fe10dad0f09ce070e164eb00fe900e345a | |
| parent | 8d06762c2704f30c5f717254f0ec9f063789ece4 (diff) | |
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
| -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($$, &@$); /*% %*/ } |
