class RDoc::Parser::Ruby

def parse_meta_method_params container, single, meth, tk, comment # :nodoc:

:nodoc:
def parse_meta_method_params container, single, meth, tk, comment # :nodoc:
  token_listener meth do
    meth.params = ''
    look_for_directives_in meth, comment
    comment.normalize
    comment.extract_call_seq meth
    container.add_method meth
    last_tk = tk
    while tk = get_tk do
      if :on_semicolon == tk[:kind] then
        break
      elsif :on_nl == tk[:kind] then
        break unless last_tk and :on_comma == last_tk[:kind]
      elsif :on_sp == tk[:kind] then
        # expression continues
      elsif :on_kw == tk[:kind] && 'do' == tk[:text] then
        parse_statements container, single, meth
        break
      else
        last_tk = tk
      end
    end
  end
end