1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (assignable_gen): no need to generate NODE_CVDECL.

* compile.c (iseq_compile_each): no NODE_CVDECL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-02-02 10:24:06 +00:00
parent d99bcbe583
commit 0abfa1c532
5 changed files with 9 additions and 9 deletions

View file

@ -3347,15 +3347,14 @@ iseq_compile_each(yarv_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
break;
}
case NODE_CVASGN:
case NODE_CVDECL:{
case NODE_CVASGN:{
COMPILE(ret, "cvasgn val", node->nd_value);
if (!poped) {
ADD_INSN(ret, nd_line(node), dup);
}
ADD_INSN2(ret, nd_line(node), setclassvariable,
ID2SYM(node->nd_vid),
nd_type(node) == NODE_CVDECL ? Qtrue : Qfalse);
Qfalse);
break;
}
case NODE_OP_ASGN1:{