diff options
author | Yusuke Endoh <[email protected]> | 2019-09-07 10:42:00 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2019-09-07 13:56:29 +0900 |
commit | 99c9431ea1cc538489c3da70f52121aa8bc0800b (patch) | |
tree | 564bf58b355fd9e47d954a5e10b8c395385fbeee /ext/objspace/objspace.c | |
parent | f223ab47e6e41e4a5f0307a5202b4f5c534a3596 (diff) |
Rename NODE_ARRAY to NODE_LIST to reflect its actual use cases
and NODE_ZARRAY to NODE_ZLIST.
NODE_ARRAY is used not only by an Array literal, but also the contents
of Hash literals, method call arguments, dynamic string literals, etc.
In addition, the structure of NODE_ARRAY is a linked list, not an array.
This is very confusing, so I believe `NODE_LIST` is a better name.
Diffstat (limited to 'ext/objspace/objspace.c')
-rw-r--r-- | ext/objspace/objspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 427d2c4e98..927c5b543c 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -416,8 +416,8 @@ count_nodes(int argc, VALUE *argv, VALUE os) COUNT_NODE(NODE_QCALL); COUNT_NODE(NODE_SUPER); COUNT_NODE(NODE_ZSUPER); - COUNT_NODE(NODE_ARRAY); - COUNT_NODE(NODE_ZARRAY); + COUNT_NODE(NODE_LIST); + COUNT_NODE(NODE_ZLIST); COUNT_NODE(NODE_VALUES); COUNT_NODE(NODE_HASH); COUNT_NODE(NODE_RETURN); |