Skip to content

Commit

Permalink
[ruby/prism] Use new flag setters for attribute write
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored and matzbot committed Dec 12, 2023
1 parent 06e2fbb commit f61df27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prism/prism.c
Expand Up @@ -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;
}
}
Expand All @@ -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;
}

Expand Down

0 comments on commit f61df27

Please sign in to comment.