class RDoc::RDoc

def parse_file filename

def parse_file filename
  @stats.add_file filename
  content = read_file_contents filename
  return unless content
  top_level = RDoc::TopLevel.new filename
  parser = RDoc::Parser.for top_level, filename, content, @options, @stats
  return unless parser
  parser.scan
rescue => e
  $stderr.puts <<-EOF
fore reporting this, could you check that the file you're documenting
mpiles cleanly--RDoc is not a full Ruby parser, and gets confused easily if
d invalid programs.
e internal error was:
(#{e.class}) #{e.message}
  EOF
  $stderr.puts e.backtrace.join("\n\t") if $RDOC_DEBUG
  raise e
  nil
end