summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-20 13:30:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-20 13:30:57 +0000
commitb4b3de3e7ce9ecfdaf1df75e94dd8e4f6342e34e (patch)
tree84e91e45cf3224f60a09643c2b91cbc403caf3b2 /parse.y
parent798316eac260e3cd683da2be23fef53ee64cee00 (diff)
downloadruby-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.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index b85637f0ae..fc0e15b890 100644
--- a/parse.y
+++ b/parse.y
@@ -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 {