summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-14 19:47:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-14 19:47:17 +0900
commita520ee476382c713d1a6649704fe10a155b71199 (patch)
treeee2c152cf3aaacfa6285cc52c60b2569b9420037 /parse.y
parentf88862655270f47e4ffd84c3eb5a4d62bd99eab1 (diff)
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.y4
1 files changed, 0 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index ca2d1fecc6..8f02acf357 100644
--- a/parse.y
+++ b/parse.y
@@ -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) %*/