From 492ebf8504652c22880238b66176398bdf4ddef1 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Sun, 2 Feb 2020 12:33:05 -0600 Subject: [PATCH] Fix documentation [doc] None of these methods actually accept an array of symbols. Note: None of these methods appear to have specs --- lib/rubocop/ast/node.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/rubocop/ast/node.rb b/lib/rubocop/ast/node.rb index 3d8d1b054ba..65bf9a4935d 100644 --- a/lib/rubocop/ast/node.rb +++ b/lib/rubocop/ast/node.rb @@ -141,9 +141,6 @@ def node_parts # Yield only nodes matching any of the types. # @param [Symbol] type_a a node type # @param [Symbol] type_b a node type - # @overload each_ancestor(types) - # Yield only nodes matching any of types in the array. - # @param [Array] types an array containing node types # @yieldparam [Node] node each ancestor node # @return [self] if a block is given # @return [Enumerator] if no block is given @@ -178,9 +175,6 @@ def ancestors # Yield only nodes matching any of the types. # @param [Symbol] type_a a node type # @param [Symbol] type_b a node type - # @overload each_child_node(types) - # Yield only nodes matching any of types in the array. - # @param [Array] types an array containing node types # @yieldparam [Node] node each child node # @return [self] if a block is given # @return [Enumerator] if no block is given @@ -216,9 +210,6 @@ def child_nodes # Yield only nodes matching any of the types. # @param [Symbol] type_a a node type # @param [Symbol] type_b a node type - # @overload each_descendant(types) - # Yield only nodes matching any of types in the array. - # @param [Array] types an array containing node types # @yieldparam [Node] node each descendant node # @return [self] if a block is given # @return [Enumerator] if no block is given @@ -254,9 +245,6 @@ def descendants # Yield only nodes matching any of the types. # @param [Symbol] type_a a node type # @param [Symbol] type_b a node type - # @overload each_node(types) - # Yield only nodes matching any of types in the array. - # @param [Array] types an array containing node types # @yieldparam [Node] node each node # @return [self] if a block is given # @return [Enumerator] if no block is given