From ce798d08de38a89852017bfefe44708b97121d74 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 5 Nov 2018 02:13:45 +0000 Subject: Implement `RubyVM::AST.of` [Feature #14836] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node.h') diff --git a/node.h b/node.h index f725a38df4..ad2798b48c 100644 --- a/node.h +++ b/node.h @@ -164,6 +164,7 @@ typedef struct RNode { VALUE value; } u3; rb_code_location_t nd_loc; + int node_id; } NODE; #define RNODE(obj) (R_CAST(RNode)(obj)) @@ -201,6 +202,8 @@ typedef struct RNode { #define nd_set_last_lineno(n, v) ((n)->nd_loc.end_pos.lineno = (v)) #define nd_last_loc(n) ((n)->nd_loc.end_pos) #define nd_set_last_loc(n, v) (nd_last_loc(n) = (v)) +#define nd_node_id(n) ((n)->node_id) +#define nd_set_node_id(n,id) ((n)->node_id = (id)) #define nd_head u1.node #define nd_alen u2.argc -- cgit v1.2.3