@@ -3177,8 +3177,7 @@ primary : literal
3177
3177
3178
3178
switch (nd_type($2 )) {
3179
3179
case NODE_LASGN:
3180
- case NODE_DASGN:
3181
- case NODE_DASGN_CURR: /* e.each {|internal_var| a = internal_var; ... } */
3180
+ case NODE_DASGN: /* e.each {|internal_var| a = internal_var; ... } */
3182
3181
$2 ->nd_value = internal_var;
3183
3182
id = 0 ;
3184
3183
m->nd_plen = 1 ;
@@ -10879,11 +10878,11 @@ assignable0(struct parser_params *p, ID id, const char **err)
10879
10878
NUMPARAM_ID_TO_IDX (id));
10880
10879
return -1 ;
10881
10880
}
10882
- if (dvar_curr (p, id)) return NODE_DASGN_CURR ;
10881
+ if (dvar_curr (p, id)) return NODE_DASGN ;
10883
10882
if (dvar_defined (p, id)) return NODE_DASGN;
10884
10883
if (local_id (p, id)) return NODE_LASGN;
10885
10884
dyna_var (p, id);
10886
- return NODE_DASGN_CURR ;
10885
+ return NODE_DASGN ;
10887
10886
}
10888
10887
else {
10889
10888
if (!local_id (p, id)) local_var (p, id);
@@ -10910,7 +10909,6 @@ assignable(struct parser_params *p, ID id, NODE *val, const YYLTYPE *loc)
10910
10909
const char *err = 0 ;
10911
10910
int node_type = assignable0 (p, id, &err);
10912
10911
switch (node_type) {
10913
- case NODE_DASGN_CURR: return NEW_DASGN_CURR (id, val, loc);
10914
10912
case NODE_DASGN: return NEW_DASGN (id, val, loc);
10915
10913
case NODE_LASGN: return NEW_LASGN (id, val, loc);
10916
10914
case NODE_GASGN: return NEW_GASGN (id, val, loc);
@@ -11122,7 +11120,6 @@ mark_lvar_used(struct parser_params *p, NODE *rhs)
11122
11120
}
11123
11121
break ;
11124
11122
case NODE_DASGN:
11125
- case NODE_DASGN_CURR:
11126
11123
if (dvar_defined_ref (p, rhs->nd_vid , &vidp)) {
11127
11124
if (vidp) *vidp |= LVAR_USED;
11128
11125
}
@@ -11397,7 +11394,6 @@ node_assign(struct parser_params *p, NODE *lhs, NODE *rhs, struct lex_context ct
11397
11394
case NODE_IASGN:
11398
11395
case NODE_LASGN:
11399
11396
case NODE_DASGN:
11400
- case NODE_DASGN_CURR:
11401
11397
case NODE_MASGN:
11402
11398
case NODE_CVASGN:
11403
11399
lhs->nd_value = rhs;
@@ -11477,7 +11473,6 @@ value_expr_check(struct parser_params *p, NODE *node)
11477
11473
11478
11474
case NODE_LASGN:
11479
11475
case NODE_DASGN:
11480
- case NODE_DASGN_CURR:
11481
11476
case NODE_MASGN:
11482
11477
mark_lvar_used (p, node);
11483
11478
return NULL ;
@@ -11713,7 +11708,6 @@ assign_in_cond(struct parser_params *p, NODE *node)
11713
11708
case NODE_MASGN:
11714
11709
case NODE_LASGN:
11715
11710
case NODE_DASGN:
11716
- case NODE_DASGN_CURR:
11717
11711
case NODE_GASGN:
11718
11712
case NODE_IASGN:
11719
11713
break ;
0 commit comments