You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is still code from the old cg-library. Yet I added CodeGenerator in front of it and gave it a nice API to work with. While the Visitor Pattern still seems very good in that situation, it still looks too complex in total. Should be simplified by any means.
Divide GeneratorVisitor into smaller chunks so it can be used for testing to generate PhpParameter or PhpProperty, etc. code
extract sorting to config, having something like this: CodeGenerator(['sortMethods' => false]) to even deactivate sorting. Maybe provide some presets for sorting.
This is still code from the old cg-library. Yet I added
CodeGenerator
in front of it and gave it a nice API to work with. While the Visitor Pattern still seems very good in that situation, it still looks too complex in total. Should be simplified by any means.Ref #23
The text was updated successfully, but these errors were encountered: