Skip to content

Commit

Permalink
Use new flag setters for attribute write
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Dec 12, 2023
1 parent 6e994e2 commit 1e07832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prism.c
Original file line number Diff line number Diff line change
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 1e07832

Please sign in to comment.