module SyntaxTree

def self.format_node(

Accepts a node in the tree and returns the formatted source.
def self.format_node(
  source,
  node,
  maxwidth = DEFAULT_PRINT_WIDTH,
  base_indentation = DEFAULT_INDENTATION,
  options: Formatter::Options.new
)
  formatter = Formatter.new(source, [], maxwidth, options: options)
  node.format(formatter)
  formatter.flush(base_indentation)
  formatter.output.join
end