# File lib/ast/node.rb, line 209 def inspect(indent=0) indented = " " * indent sexp = "#{indented}s(:#{@type}" children.each do |child| if child.is_a?(Node) sexp += ",\n#{child.inspect(indent + 1)}" else sexp += ", #{child.inspect}" end end sexp += ")" sexp end