diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-20 13:30:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-20 13:30:57 +0000 |
commit | b4b3de3e7ce9ecfdaf1df75e94dd8e4f6342e34e (patch) | |
tree | 84e91e45cf3224f60a09643c2b91cbc403caf3b2 /parse.y | |
parent | 798316eac260e3cd683da2be23fef53ee64cee00 (diff) | |
download | ruby-b4b3de3e7ce9ecfdaf1df75e94dd8e4f6342e34e.tar.gz |
node.c: predicates for special NODEs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -9955,10 +9955,9 @@ new_args_tail(struct parser_params *p, NODE *kw_args, ID kw_rest_arg, ID block, int i; while (kwn) { - NODE *val_node = kwn->nd_body->nd_value; ID vid = kwn->nd_body->nd_vid; - if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) { + if (NODE_REQUIRED_KEYWORD_P(kwn->nd_body)) { vtable_add(required_kw_vars, vid); } else { |