diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-05 08:59:23 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-05 08:59:23 +0000 |
commit | 38c62063c085ddf592461435bfa379de91851e65 (patch) | |
tree | a035fb1f593f07c04e8c9cad8eca3b92d1d60398 /ext | |
parent | 92b81dc5972607f745d26b8a7a83166ff0fa354b (diff) | |
download | ruby-38c62063c085ddf592461435bfa379de91851e65.tar.gz |
node.h: remove NODE_PRELUDE
NODE_PRELUDE contains a `BEGIN` node, a main node, and compile_option.
This node is assumed that it must be located immediately under the root
NODE_SCOPE, but this strange assumption is not so good, IMO.
This change removes the assumtion; it integrates the former two nodes by
block_append, and moves compile_option into rb_ast_body_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/objspace/objspace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 490ff714d0..0873ef9bcb 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -469,7 +469,6 @@ count_nodes(int argc, VALUE *argv, VALUE os) COUNT_NODE(NODE_POSTEXE); COUNT_NODE(NODE_DSYM); COUNT_NODE(NODE_ATTRASGN); - COUNT_NODE(NODE_PRELUDE); COUNT_NODE(NODE_LAMBDA); #undef COUNT_NODE case NODE_LAST: break; |