class Rufo::Formatter

def visit_constant_pattern(node)

def visit_constant_pattern(node)
  # [:aryptn, const_ref, args]
  _, const_ref, args = node
  visit const_ref
  parens = current_token_kind == :on_lparen
  if parens
    consume_token :on_lparen
  else
    consume_token :on_lbracket
  end
  skip_space
  visit_comma_separated_list args
  skip_space
  if parens
    consume_token :on_rparen
  else
    consume_token :on_rbracket
  end
end