diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-24 01:06:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-12 17:24:48 +0900 |
commit | fb6a489af2765a3b56e301adf0019af6bbad6156 (patch) | |
tree | c024078f3a408d33e41aec446e17f5142907eb87 /compile.c | |
parent | b41a19f92fdd9c8567e0650ceebb72386a96e395 (diff) |
Revert "Method reference operator"
This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b.
[Feature #16275]
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -4742,11 +4742,9 @@ defined_expr0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, case NODE_OPCALL: case NODE_VCALL: case NODE_FCALL: - case NODE_METHREF: case NODE_ATTRASGN:{ const int explicit_receiver = (type == NODE_CALL || type == NODE_OPCALL || - type == NODE_METHREF || (type == NODE_ATTRASGN && !private_recv_p(node))); if (!lfinish[1] && (node->nd_args || explicit_receiver)) { @@ -8484,13 +8482,6 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in } break; } - case NODE_METHREF: - CHECK(COMPILE(ret, "receiver", node->nd_recv)); - ADD_ELEM(ret, &new_insn_body(iseq, line, BIN(methodref), 1, ID2SYM(node->nd_mid))->link); - if (popped) { - ADD_INSN(ret, line, pop); - } - break; default: UNKNOWN_NODE("iseq_compile_each", node, COMPILE_NG); ng: |