-
Notifications
You must be signed in to change notification settings - Fork 64
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 doGenerate
in C
generator and parts of Python and Typescript docker generators
#1141
Conversation
cea4ddf
to
25e3891
Compare
doGenerate
in C
generator and parts of Python and Typescript docker generators
Currently |
The reasoning behind this reassignment is simple: we want each federate to have its own src-gen folder. If you get rid of this overriding, all federates will be put in a single folder. The latter used to be the original behavior for federated programs and this overriding of fileConfig was a patchwork to get the new (folderalized?) behavior. The overwritten fileConfig should only be effective inside doGenerate in CGenerator within the |
I agree with @housengw that reassigning the |
Right. As I said in my previous comment, there should only be a handful of places that are affected by the fileConfig reassignment, so I would expect it to be relatively straightforward to fix. |
I got the sense that @housengw could use some help with that. Would you be able to take a stab at it? |
I think this PR has reached a good stopping point. I will address @Soroosh129's comment in a future PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Another step into the right direction :-) I only had some minor nitpicks regarding comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀🚀🚀
Changes:
doGenerate
instead of changingtopLevelName
topLevelName
runCommand
global variable fromCGenerator
GeneratorBase
,CGenerator
, andPythonGenerator
into a dedicated code generator class (DockerGeneratorBase.java
)