Class: Node::OP_ASGN2_ARG
- Defined in:
- ext/internal/node/nodeinfo.c,
ext/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.4/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.4/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.5/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.5/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.6/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.6/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.7/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.7/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.1/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.1/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.2/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.2/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.3/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.3/internal/node/nodeinfo.c
Overview
Actually a node of type OP_ASGN2, this is a placeholder for additional information about the assignment than can fit in a single OP_ASGN2 node.
Class Method Summary collapse
-
.members ⇒ Array
Return an array of strings containing the names of the node class’s members.
Instance Method Summary collapse
-
#aid ⇒ Object
Return the Node’s aid member.
-
#mid ⇒ Object
Return the Node’s mid member.
-
#vid ⇒ Object
Return the Node’s vid member.
Methods inherited from Node
#[], #_dump, _load, #address, #bytecode_compile, compile_string, #eval, #flags, #inspect, #members, #nd_file, #nd_line, #nd_type, #obfusc, #pretty_print, #swap, #to_a, #tree, type
Class Method Details
.members ⇒ Array
Return an array of strings containing the names of the node class’s members.
2793 2794 2795 2796 |
# File 'ext/internal/node/nodeinfo.c', line 2793
VALUE node_s_members(VALUE klass)
{
return rb_iv_get(klass, "__member__");
}
|
Instance Method Details
#aid ⇒ Object
Return the Node’s aid member. The return type is a Symbol.
1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 |
# File 'ext/internal/node/nodeinfo.c', line 1991
static VALUE node_aid(VALUE self)
{
NODE * n;
Data_Get_Struct(self, NODE, n);
if(n->nd_aid == 0)
{
return Qfalse;
}
else if(n->nd_aid == 1)
{
return Qtrue;
}
else
{
return ID2SYM(n->nd_aid);
}
}
|
#mid ⇒ Object
Return the Node’s mid member. The return type is a Symbol.
2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 |
# File 'ext/internal/node/nodeinfo.c', line 2416
static VALUE node_mid(VALUE self)
{
NODE * n;
Data_Get_Struct(self, NODE, n);
if(n->nd_mid == 0)
{
return Qfalse;
}
else if(n->nd_mid == 1)
{
return Qtrue;
}
else
{
return ID2SYM(n->nd_mid);
}
}
|
#vid ⇒ Object
Return the Node’s vid member. The return type is a Symbol.
2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 |
# File 'ext/internal/node/nodeinfo.c', line 2768
static VALUE node_vid(VALUE self)
{
NODE * n;
Data_Get_Struct(self, NODE, n);
if(n->nd_vid == 0)
{
return Qfalse;
}
else if(n->nd_vid == 1)
{
return Qtrue;
}
else
{
return ID2SYM(n->nd_vid);
}
}
|