diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-09-15 18:38:31 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-18 17:48:52 +0000 |
commit | 1636f6abd62c03f77777d83324df3bfcedbe66c2 (patch) | |
tree | 43b3734dd376ba36edd756e85b430e92910f0828 /test/yarp | |
parent | 54e676a88ba1a68b7302a32dad8c44197b55d5fe (diff) | |
download | ruby-1636f6abd62c03f77777d83324df3bfcedbe66c2.tar.gz |
[ruby/yarp] Use compact_child_nodes where possible
https://github.com/ruby/yarp/commit/c1911fa9b1
Diffstat (limited to 'test/yarp')
-rw-r--r-- | test/yarp/parse_serialize_test.rb | 2 | ||||
-rw-r--r-- | test/yarp/parse_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/yarp/parse_serialize_test.rb b/test/yarp/parse_serialize_test.rb index d3474f7104..18ff0c4319 100644 --- a/test/yarp/parse_serialize_test.rb +++ b/test/yarp/parse_serialize_test.rb @@ -31,7 +31,7 @@ module YARP while (node = queue.shift) return node if node.is_a?(SourceFileNode) - queue.concat(node.child_nodes.compact) + queue.concat(node.compact_child_nodes) end end end diff --git a/test/yarp/parse_test.rb b/test/yarp/parse_test.rb index 0b470f6eed..eba5767776 100644 --- a/test/yarp/parse_test.rb +++ b/test/yarp/parse_test.rb @@ -204,7 +204,7 @@ module YARP queue = [program] while (node = queue.shift) return node if node.is_a?(SourceFileNode) - queue.concat(node.child_nodes.compact) + queue.concat(node.compact_child_nodes) end end |