node.values.each is recommended by Style/HashEachMethods cop to be replaced with each_value instead of values.each. And node.each_value do |value| is clearer in intent than node.children.each do |value|.
Since it is a soft deprecation in documentation only, it has not been added to the changelog.
This PR lifts the deprecation from
ArrayNode#each_value
for the following reasons:HashNode#each_value
andHashNode#each_key
are not deprecated.HashNode#each_value
... https://github.com/rubocop/rubocop-ast/blob/v1.31.3/lib/rubocop/ast/node/hash_node.rb#L76-L89HashNode#each_key
... https://github.com/rubocop/rubocop-ast/blob/v1.31.3/lib/rubocop/ast/node/hash_node.rb#L52-L65node.values.each
is recommended byStyle/HashEachMethods
cop to be replaced witheach_value
instead ofvalues.each
. Andnode.each_value do |value|
is clearer in intent thannode.children.each do |value|
.Since it is a soft deprecation in documentation only, it has not been added to the changelog.