class RDoc::Parser::Ruby

def parse_method_params_and_body container, single, meth, added_container

def parse_method_params_and_body container, single, meth, added_container
  token_listener meth do
    parse_method_parameters meth
    if meth.document_self or not @track_visibility then
      container.add_method meth
    elsif added_container then
      container.document_self = false
    end
    # Having now read the method parameters and documentation modifiers, we
    # now know whether we have to rename #initialize to ::new
    if meth.name == "initialize" && !meth.singleton then
      if meth.dont_rename_initialize then
        meth.visibility = :protected
      else
        meth.singleton = true
        meth.name = "new"
        meth.visibility = :public
      end
    end
    parse_statements container, single, meth
  end
end