diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-14 19:47:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-14 19:47:17 +0900 |
commit | a520ee476382c713d1a6649704fe10a155b71199 (patch) | |
tree | ee2c152cf3aaacfa6285cc52c60b2569b9420037 /parse.y | |
parent | f88862655270f47e4ffd84c3eb5a4d62bd99eab1 (diff) | |
download | ruby-a520ee476382c713d1a6649704fe10a155b71199.tar.gz |
Removed duplicate value_expr checks
`arg_rhs` has the same check and is always a non-void value
expression.
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2250,7 +2250,6 @@ arg : lhs '=' arg_rhs | primary_value '[' opt_call_args rbracket tOP_ASGN arg_rhs { /*%%%*/ - value_expr($6); $$ = new_ary_op_assign(p, $1, $3, $5, $6, &@3, &@$); /*% %*/ /*% ripper: opassign!(aref_field!($1, escape_Qundef($3)), $5, $6) %*/ @@ -2258,7 +2257,6 @@ arg : lhs '=' arg_rhs | primary_value call_op tIDENTIFIER tOP_ASGN arg_rhs { /*%%%*/ - value_expr($5); $$ = new_attr_op_assign(p, $1, $2, $3, $4, $5, &@$); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $5) %*/ @@ -2266,7 +2264,6 @@ arg : lhs '=' arg_rhs | primary_value call_op tCONSTANT tOP_ASGN arg_rhs { /*%%%*/ - value_expr($5); $$ = new_attr_op_assign(p, $1, $2, $3, $4, $5, &@$); /*% %*/ /*% ripper: opassign!(field!($1, $2, $3), $4, $5) %*/ @@ -2274,7 +2271,6 @@ arg : lhs '=' arg_rhs | primary_value tCOLON2 tIDENTIFIER tOP_ASGN arg_rhs { /*%%%*/ - value_expr($5); $$ = new_attr_op_assign(p, $1, ID2VAL(idCOLON2), $3, $4, $5, &@$); /*% %*/ /*% ripper: opassign!(field!($1, ID2VAL(idCOLON2), $3), $4, $5) %*/ |