class Rufo::Formatter

def visit_hash(node)

def visit_hash(node)
  # [:hash, elements]
  _, elements = node
  token_column = current_token_column
  check :on_lbrace
  write "{"
  next_token
  if elements
    # [:assoclist_from_args, elements]
    push_hash(node) do
      visit_literal_elements(elements[1], inside_hash: true, token_column: token_column)
    end
  else
    skip_space_or_newline
  end
  check :on_rbrace
  write "}"
  next_token
end