class Rufo::Formatter

def visit_string_literal(node)

def visit_string_literal(node)
  # [:string_literal, [:string_content, exps]]
  heredoc = current_token_kind == :on_heredoc_beg
  tilde   = current_token_value.include?("~")
  if heredoc
    write current_token_value.rstrip
    # Accumulate heredoc: we'll write it once
    # we find a newline.
    @heredocs << [node, tilde]
    next_token
    return
  elsif current_token_kind == :on_backtick
    consume_token :on_backtick
  else
    consume_token :on_tstring_beg
  end
  visit_string_literal_end(node)
end