While this may not apply to every build system, the knowledge of imports is actually known by each individual component. Right now a centralized algorithm browse the structure to figure out what the imports are while each components could provide that.
This would decrease the complexity of the central algorithm and potentially share the handling of imports for components that are somewhat language independent.
This could be implemented by a visitor pattern or some interface that the component would have to implement.
While this may not apply to every build system, the knowledge of imports is actually known by each individual component. Right now a centralized algorithm browse the structure to figure out what the imports are while each components could provide that.
This would decrease the complexity of the central algorithm and potentially share the handling of imports for components that are somewhat language independent.
This could be implemented by a visitor pattern or some interface that the component would have to implement.