diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-05 02:13:45 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-05 02:13:45 +0000 |
commit | ce798d08de38a89852017bfefe44708b97121d74 (patch) | |
tree | f15bcecacdd4f2cd8a5b3890d77fa1c83f5440a6 /node.h | |
parent | 6d497629b22f67bcaa4d074e0bee728808cfd4be (diff) |
Implement `RubyVM::AST.of` [Feature #14836]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |