summaryrefslogtreecommitdiff
path: root/prism
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-12-12 13:43:54 -0500
committergit <svn-admin@ruby-lang.org>2023-12-12 18:43:59 +0000
commitf61df27b4ca73a31401ebe0357a3b7de947128e8 (patch)
tree142c6d32fbabfc8570430532928bf1effb5f712a /prism
parent06e2fbb8260022de8532d2e940fc69e8ea413679 (diff)
[ruby/prism] Use new flag setters for attribute write
https://github.com/ruby/prism/commit/1e07832778
Diffstat (limited to 'prism')
-rw-r--r--prism/prism.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/prism.c b/prism/prism.c
index 5f1867ec8e..f4a47f8b5b 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -10877,7 +10877,7 @@ parse_write(pm_parser_t *parser, pm_node_t *target, pm_token_t *operator, pm_nod
call->base.location.end = arguments->base.location.end;
parse_write_name(parser, &call->name);
- call->base.flags |= PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE;
+ pm_node_flag_set((pm_node_t *) call, PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE);
return (pm_node_t *) call;
}
}
@@ -10895,7 +10895,7 @@ parse_write(pm_parser_t *parser, pm_node_t *target, pm_token_t *operator, pm_nod
// Replace the name with "[]=".
call->name = pm_parser_constant_id_constant(parser, "[]=", 3);
- call->base.flags |= PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE;
+ pm_node_flag_set((pm_node_t *) call, PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE);
return target;
}