class RDoc::Parser::Ruby

def parse_comment_tomdoc container, tk, comment

def parse_comment_tomdoc container, tk, comment
  return unless signature = RDoc::TomDoc.signature(comment)
  column  = tk[:char_no]
  line_no = tk[:line_no]
  name, = signature.split %r%[ \(]%, 2
  meth = RDoc::GhostMethod.new get_tkread, name
  record_location meth
  meth.line      = line_no
  meth.start_collecting_tokens
  indent = RDoc::Parser::RipperStateLex::Token.new(1, 1, :on_sp, ' ' * column)
  position_comment = RDoc::Parser::RipperStateLex::Token.new(line_no, 1, :on_comment)
  position_comment[:text] = "# File #{@top_level.relative_name}, line #{line_no}"
  newline = RDoc::Parser::RipperStateLex::Token.new(0, 0, :on_nl, "\n")
  meth.add_tokens [position_comment, newline, indent]
  meth.call_seq = signature
  comment.normalize
  return unless meth.name
  container.add_method meth
  meth.comment = comment
  @stats.add_method meth
end