-
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
TypeScript generator cleanups #1457
Conversation
94e0bb8
to
3a463fb
Compare
Fixed-size lists are now explicitly disallowed, previously they would have generated malformed code.
The remaining failing tests are because of #1455, and there is also an LSP test failing randomly (not related to this change): https://github.com/lf-lang/lingua-franca/actions/runs/3386947686/jobs/5639171134#step:16:420 I don't understand why an error is expected here. Is the language server checking for undefined names in a Python file? How accurate can that be? @petervdonovan this looks like the same failure as in #1456: https://github.com/lf-lang/lingua-franca/actions/runs/3404064946/jobs/5661031451#step:16:494 |
After running the workflow again, the LSP error also shows in master: https://github.com/lf-lang/lingua-franca/actions/runs/3384118963/jobs/5673489810 |
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.
LGTM! Thanks for these cleanups, @oowekyala 👍
org.lflang/src/org/lflang/generator/ts/TSImportPreambleGenerator.kt
Outdated
Show resolved
Hide resolved
b91868b
to
4cd389d
Compare
Changes extracted from #1441
ExpressionGenerator is removed because it is redundant to TargetTypes. The rest should be a simple refactoring without functional change.