lib/unparser/ast/local_variable_scope.rb
def visit(node, &block)
        before = current.dup
        enter(node)
        yield node, current.dup, before
        node.children.each do |child|
          visit(child, &block) if child.is_a?(Parser::AST::Node)
        end
        leave(node)
      end
# Visit node and record local variable state
#
# @param [Parser::AST::Node] node
#
# @return [undefined]
#
# @api private
#
# ignore :reek:LongYieldList
Visit node and record local variable state
Visit node and record local variable state
def visit(node, &block)
        before = current.dup
        enter(node)
        yield node, current.dup, before
        node.children.each do |child|
          visit(child, &block) if child.is_a?(Parser::AST::Node)
        end
        leave(node)
      end
def visit ( node , & block ) before = current . dup enter ( node ) yield node , current . dup , before node . children . each do | child | visit ( child , & block ) if child . is_a? ( Parser :: AST :: Node ) end leave ( node ) end
Visit node and record local variable state
Visit node and record local variable state
None
undefined
node
block
None
api
private ignore :reek:LongYieldList
private ignore : reek : LongYieldList