diff options
| author | yui-knk <spiketeika@gmail.com> | 2023-09-17 13:44:11 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-09-17 16:04:42 +0900 |
| commit | df316be4016b0cce7aac4ccec52445d48606bf92 (patch) | |
| tree | 9836884979ce91f2e58b26904e22e16950ec2ae0 | |
| parent | cd67c0d2040f1ade0fe8b1533816281553bfe6e6 (diff) | |
nd_aid of NODE_OP_ASGN_OR is not used then no need to set it
| -rw-r--r-- | parse.y | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -13052,14 +13052,6 @@ new_op_assign(struct parser_params *p, NODE *lhs, ID op, NODE *rhs, struct lex_c lhs->nd_value = rhs; nd_set_loc(lhs, loc); asgn = NEW_OP_ASGN_OR(gettable(p, vid, &lhs_loc), lhs, loc); - if (is_notop_id(vid)) { - switch (id_type(vid)) { - case ID_GLOBAL: - case ID_INSTANCE: - case ID_CLASS: - asgn->nd_aid = vid; - } - } } else if (op == tANDOP) { if (shareable) { |
