class Rufo::Formatter

def visit_def(node)

def visit_def(node)
  # [:def,
  #   [:@ident, "foo", [1, 6]],
  #   [:params, nil, nil, nil, nil, nil, nil, nil],
  #   [:bodystmt, [[:void_stmt]], nil, nil, nil]]
  _, name, params, body = node
  consume_keyword "def"
  consume_space
  push_hash(node) do
    visit_def_from_name name, params, body
  end
end