|
#define | A(str) rb_str_cat2(buf, (str)) |
|
#define | AR(str) rb_str_concat(buf, (str)) |
|
#define | A_INDENT add_indent(buf, indent) |
|
#define | D_INDENT rb_str_cat2(indent, next_indent) |
|
#define | D_DEDENT rb_str_resize(indent, RSTRING_LEN(indent) - 4) |
|
#define | A_ID(id) add_id(buf, (id)) |
|
#define | A_INT(val) rb_str_catf(buf, "%d", (val)) |
|
#define | A_LONG(val) rb_str_catf(buf, "%ld", (val)) |
|
#define | A_LIT(lit) AR(rb_inspect(lit)) |
|
#define | A_NODE_HEADER(node, term) rb_str_catf(buf, "@ %s (line: %d, column: %d)"term, ruby_node_name(nd_type(node)), nd_line(node), nd_column(node)) |
|
#define | A_FIELD_HEADER(len, name, term) rb_str_catf(buf, "+- %.*s:"term, (len), (name)) |
|
#define | D_FIELD_HEADER(len, name, term) (A_INDENT, A_FIELD_HEADER(len, name, term)) |
|
#define | D_NULL_NODE (A_INDENT, A("(null node)\n")) |
|
#define | D_NODE_HEADER(node) (A_INDENT, A_NODE_HEADER(node, "\n")) |
|
#define | COMPOUND_FIELD(len, name, block) |
|
#define | COMPOUND_FIELD1(name, ann, block) |
|
#define | FIELD_NAME_DESC(name, ann) name " (" ann ")" |
|
#define | FIELD_NAME_LEN(name, ann) |
|
#define | SIMPLE_FIELD(len, name) |
|
#define | SIMPLE_FIELD1(name, ann) SIMPLE_FIELD(FIELD_NAME_LEN(name, ann), FIELD_NAME_DESC(name, ann)) |
|
#define | F_CUSTOM1(name, ann) SIMPLE_FIELD1(#name, ann) |
|
#define | F_ID(name, ann) SIMPLE_FIELD1(#name, ann) A_ID(node->name) |
|
#define | F_GENTRY(name, ann) SIMPLE_FIELD1(#name, ann) A_ID((node->name)->id) |
|
#define | F_INT(name, ann) SIMPLE_FIELD1(#name, ann) A_INT(node->name) |
|
#define | F_LONG(name, ann) SIMPLE_FIELD1(#name, ann) A_LONG(node->name) |
|
#define | F_LIT(name, ann) SIMPLE_FIELD1(#name, ann) A_LIT(node->name) |
|
#define | F_MSG(name, ann, desc) SIMPLE_FIELD1(#name, ann) A(desc) |
|
#define | F_NODE(name, ann) COMPOUND_FIELD1(#name, ann, dump_node(buf, indent, comment, node->name)) |
|
#define | F_OPTION(name, ann) COMPOUND_FIELD1(#name, ann, dump_option(buf, indent, node->name)) |
|
#define | ANN(ann) |
|
#define | LAST_NODE (next_indent = " ") |
|
#define | nd_compile_option u3.value |
|
Definition at line 1098 of file node.c.
References RNode::args, rb_args_info::kw_args, rb_args_info::kw_rest_arg, nd_type, NODE_ALIAS, NODE_AND, NODE_ARGS, NODE_ARGS_AUX, NODE_ARGSCAT, NODE_ARRAY, NODE_BACK_REF, NODE_BLOCK, NODE_BLOCK_ARG, NODE_BLOCK_PASS, NODE_BREAK, NODE_CALL, NODE_CASE, NODE_CDECL, NODE_CLASS, NODE_COLON2, NODE_COLON3, NODE_CVAR, NODE_CVASGN, NODE_DASGN, NODE_DASGN_CURR, NODE_DEFINED, NODE_DEFN, NODE_DEFS, NODE_DOT2, NODE_DOT3, NODE_DREGX, NODE_DREGX_ONCE, NODE_DSTR, NODE_DVAR, NODE_DXSTR, NODE_ENSURE, NODE_ERRINFO, NODE_EVSTR, NODE_FALSE, NODE_FCALL, NODE_FLIP2, NODE_FLIP3, NODE_FOR, NODE_GASGN, NODE_GVAR, NODE_HASH, NODE_IASGN, NODE_IF, NODE_ITER, NODE_IVAR, NODE_LASGN, NODE_LIT, NODE_LVAR, NODE_MASGN, NODE_MATCH, NODE_MATCH2, NODE_MATCH3, NODE_MODULE, NODE_NEXT, NODE_NIL, NODE_NTH_REF, NODE_OP_ASGN1, NODE_OP_ASGN_AND, NODE_OP_ASGN_OR, NODE_OPT_ARG, NODE_OPT_N, NODE_OR, NODE_POSTEXE, NODE_REDO, NODE_RESBODY, NODE_RESCUE, NODE_RETRY, NODE_RETURN, NODE_SCLASS, NODE_SCOPE, NODE_SELF, NODE_SPLAT, NODE_STR, NODE_SUPER, NODE_TO_ARY, NODE_TRUE, NODE_UNDEF, NODE_UNTIL, NODE_VALIAS, NODE_VCALL, NODE_WHEN, NODE_WHILE, NODE_XSTR, NODE_YIELD, NODE_ZARRAY, NODE_ZSUPER, rb_args_info::opt_args, rb_args_info::post_init, rb_args_info::pre_init, rb_gc_mark(), rb_gc_mark_maybe(), RNODE, and RNode::u3.