diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-07 10:42:00 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-07 13:56:29 +0900 |
commit | 99c9431ea1cc538489c3da70f52121aa8bc0800b (patch) | |
tree | 564bf58b355fd9e47d954a5e10b8c395385fbeee /test | |
parent | f223ab47e6e41e4a5f0307a5202b4f5c534a3596 (diff) | |
download | ruby-99c9431ea1cc538489c3da70f52121aa8bc0800b.tar.gz |
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 'test')
-rw-r--r-- | test/ruby/test_ast.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb index 5c431a47b1..a4c18d0ad6 100644 --- a/test/ruby/test_ast.rb +++ b/test/ruby/test_ast.rb @@ -74,7 +74,7 @@ class TestAst < Test::Unit::TestCase children = node.children.grep(RubyVM::AbstractSyntaxTree::Node) return true if children.empty? - # These NODE_D* has NODE_ARRAY as nd_next->nd_next whose last locations + # These NODE_D* has NODE_LIST as nd_next->nd_next whose last locations # we can not update when item is appended. return true if [:DSTR, :DXSTR, :DREGX, :DSYM].include? node.type |