From 54f0e63a8c53753af7db8653972ac450415eae13 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 12 Dec 2021 23:33:47 +0900 Subject: Remove `NODE_DASGN_CURR` [Feature #18406] This `NODE` type was used in pre-YARV implementation, to improve the performance of assignment to dynamic local variable defined at the innermost scope. It has no longer any actual difference with `NODE_DASGN`, except for the node dump. --- node.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'node.c') diff --git a/node.c b/node.c index fe1a60c151..d8c1da95ef 100644 --- a/node.c +++ b/node.c @@ -407,16 +407,9 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) } return; case NODE_DASGN: - ANN("dynamic variable assignment (out of current scope)"); + ANN("dynamic variable assignment"); ANN("format: [nd_vid](dvar) = [nd_value]"); ANN("example: x = nil; 1.times { x = foo }"); - F_ID(nd_vid, "local variable"); - LAST_NODE; - F_NODE(nd_value, "rvalue"); - return; - case NODE_DASGN_CURR: - ANN("dynamic variable assignment (in current scope)"); - ANN("format: [nd_vid](current dvar) = [nd_value]"); ANN("example: 1.times { x = foo }"); F_ID(nd_vid, "local variable"); if (NODE_REQUIRED_KEYWORD_P(node)) { -- cgit v1.2.1