module SyntaxTree::WithScope
def visit_params(node)
Visit for keeping track of local arguments, such as method and block
def visit_params(node) add_argument_definitions(node.requireds) add_argument_definitions(node.posts) node.keywords.each do |param| current_scope.add_local_definition(param.first, :argument) end node.optionals.each do |param| current_scope.add_local_definition(param.first, :argument) end super end