class ASTProcess

Public Instance Methods

store_nodes(ast) { |ast, type| ... } click to toggle source
# File lib/normalize_ast.rb, line 97
def store_nodes(ast, &block)
  if ast.is_a? Parser::AST::Node 
    type = ast.type
    yield ast, type
    ast.children.each do |child|
        store_nodes child, &block
    end
  end
end