method
scan
v1_9_1_378 -
Show latest stable
- Class:
RDoc::Parser::Ruby
scan()public
No documentation available.
# File lib/rdoc/parser/ruby.rb, line 2700
def scan
reset
catch(:eof) do
catch(:enddoc) do
begin
parse_toplevel_statements(@top_level)
rescue Exception => e
$stderr.puts RDoc failure in #{@file_name} at or around line #{@scanner.line_no} column#{@scanner.char_no}Before reporting this, could you check that the file you're documentingcompiles cleanly--RDoc is not a full Ruby parser, and gets confused easily iffed invalid programs.The internal error was:
e.set_backtrace(e.backtrace[0,4])
raise
end
end
end
@top_level
end