Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularize #584

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Modularize #584

wants to merge 9 commits into from

Conversation

Xiphe
Copy link
Collaborator

@Xiphe Xiphe commented Feb 23, 2024

Hand in hand with the Plugin System i would like to refactor the codegen implementation to be more modular and follow a functional approach.

Target state:

  • much smaller, clearly defined units. - Most methods of ApiGenerator might be moved to their dedicated file.
  • no functional changes
  • extendability through plugin system instead of monkey patching ApiGenerator

ref #554

in order to move towards a more functional and modular architecture
move state that previously was helt on Generator class to a context

the idea behind this is to pass the context object around between
internal units as well as plugin callbacks and all shared state
would be managed on the context object

ref #562
in order to completely remove and disincentivize use of class state
in favor of OazapftsContext

as a preparation for plugin architecture

BREAKING CHANGE:
ApiGenerator Class has been removed

ref #572
just create a new context when needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant