wilkinsona / project-generator

3 stars 4 forks source link

Rationalize import management #6

Open snicoll opened 5 years ago

snicoll commented 5 years ago

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.