Subject: | Parser should remember previously scanned modules. |
The parser object will forget what module dependencies it saw every time extract_use() is called. There's not much point having an object if its not going to save state.
It would be nice if the parser object remembered what modules it saw. This would make it a lot easier to scan all the modules used by an entire project. Possibly provide a reset/clear method to blow away its state.
Alternatively, let extract_use() take a list of files.