-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix banks of modal reactors #1279
Conversation
python code generation
org.lflang/src/org/lflang/generator/python/PythonPortGenerator.java
Outdated
Show resolved
Hide resolved
org.lflang/src/org/lflang/generator/python/PythonPortGenerator.java
Outdated
Show resolved
Hide resolved
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.
Looks good to me, modulo that Xbase import.
@@ -2,8 +2,11 @@ | |||
|
|||
import java.util.List; | |||
|
|||
import org.eclipse.xtext.xbase.lib.IterableExtensions; |
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.
We've been avoiding unnecessary dependencies on Xtext/Xbase in our code generators. Could you using something from the standard Java library instead?
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.
Sure. I removed the usage of that extension.
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.
🚀 🚀 🚀
Fixes code generation for modal reactors to correctly account for banks.
Closes #1264