Closed cedric-demongivert closed 3 years ago
This kind of interface is also a way to mask pull-based and push-based-only implementations.
Creation of a UnidocGenerator interface for pull-based implementations. Creation of a UnidocSymbolGenerator interface for pull-based symbol extractors. Creation of a UnidocSource interface for reading sources of symbols.
Currently, the engine only allows to instantiate a producer of symbols by using a Reader that is a pull-based way to get symbols.
These pull-based objects must be converted into a push-based producer of Symbols via the UnidocSymbolReader.asProducer factory.
The addition of an UnidocSymbolProducer interface with user-friendly factories may be a great addition to the library.
The interface must allow to replace this kind of code :
By this kind of code :
Also, the interface may allow to define a 'read' method requirement that allow to start the reading process.