Skip to content
Commit eefc22eb authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Extract BatchProcessor from BatchParser.

Let the BatchParser only deal with the actual parsing part.
A separate BatchProcessor then deals with combining the parsed
source files into classes and doing all kinds of additional
processing on them.

The top-level JsDuck::App is now also simpler as it just saves
the @parsed_files and @relations into separate instance variables,
and can easily use them later without needing to ask list of
parsed files from BatchProcessor instance.

Both BatchParser and BatchProcessor are now singleton classes keeping no
state inside them - so they're also simpler to reason about.
parent 3bde89f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment