Method: RDoc::Parser::Ruby#parse_top_level_statements

Defined in:
lib/rdoc/parser/ruby.rb

#parse_top_level_statements(container) ⇒ Object

Parses statements in the top-level container



2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
# File 'lib/rdoc/parser/ruby.rb', line 2017

def parse_top_level_statements container
  comment = collect_first_comment

  look_for_directives_in container, comment

  throw :eof if container.done_documenting

  @markup = comment.format

  # HACK move if to RDoc::Context#comment=
  container.comment = comment if container.document_self unless comment.empty?

  parse_statements container, NORMAL, nil, comment
end