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

Refactor all generators #13

Merged
merged 5 commits into from
Jul 4, 2021
Merged

Refactor all generators #13

merged 5 commits into from
Jul 4, 2021

Conversation

diamondburned
Copy link
Owner

@diamondburned diamondburned commented Jul 4, 2021

This pull request refactors package girgen and somewhat package gir to be
more correct and concise, while also heavily decoupling generative components
away into a more reasonable package layout instead of a flat package layout.

When merged, this pull request will close #8, close #9, and solve part of #11 with the
refactoring introduced.

This pull request also changes the project's licensing from the more permissive
ISC license to a more copyleft approach. The details of this license is listed
in the new README.

This commit closes #9 by adding the new girgen/file.go FileGenerator,
which is completely refactored from the ground up to be much smaller,
cleaner and side effects-free.

This commit closes #8 as well by introducing the SourceNamespace and
CurrentNamespace API inside typeconv.Converter, which allows the
converter to pick the right namespace for resolving and generating.
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.

File generators Class inheritance requires global namespace swapping
1 participant