From 1d3d8d89fc68fdc4de82482f57a9c97ed05abe5c Mon Sep 17 00:00:00 2001 From: mame Date: Fri, 5 Jan 2018 16:04:02 +0000 Subject: [PATCH] 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 --- parse.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parse.y b/parse.y index 4c23caf2cf..3abd1deaac 100644 --- a/parse.y +++ b/parse.y @@ -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($$, &@$); /*% %*/ }