class YARD::Parser::OrderedParser

@see Processor#parse_remaining_files
parsing for the remainder of files in the list recursively.
{SourceParser#globals} globals state list to re-enter
{#parse} method of this class can be called from the
Responsible for parsing a list of files in order. The

def initialize(global_state, files)

Parameters:
  • files (Array) -- the list of files to parse
  • global_state (OpenStruct) -- a structure containing all global

Other tags:
    Note: - OrderedParser sets itself as the +ordered_parser+ key on
def initialize(global_state, files)
  @global_state = global_state
  @files = files.dup
  @global_state.ordered_parser = self
end

def parse

Other tags:
    See: Processor#parse_remaining_files -
def parse
  until files.empty?
    file = files.shift
    log.capture("Parsing #{file}") do
      SourceParser.new(SourceParser.parser_type, @global_state).parse(file)
    end
  end
end