class Rufo::Formatter

def visit_comma_separated_list(nodes)

def visit_comma_separated_list(nodes)
  needs_indent = false
  if newline? || comment?
    indent { consume_end_of_line }
    needs_indent = true
    base_column = next_indent
    write_indent(base_column)
  else
    base_column = @column
  end
  nodes = to_ary(nodes)
  nodes.each_with_index do |exp, i|
    maybe_indent(needs_indent, base_column) do
      if block_given?
        yield exp
      else
        visit exp
      end
    end
    next if last?(i, nodes)
    skip_space
    check :on_comma
    write ","
    next_token
    skip_space_or_newline_using_setting(:one, base_column || @indent)
  end
end