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

Multi-line go.property(...) calls fail in HTML5 #6

Open
thejustinwalsh opened this issue Nov 6, 2020 · 0 comments
Open

Multi-line go.property(...) calls fail in HTML5 #6

thejustinwalsh opened this issue Nov 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@thejustinwalsh
Copy link
Member

Defold has a problem parsing go.property calls that are spread across multiple lines.
See: defold/defold#3342

If we make a call to a function, with another function call nested in tstl, the result is a multi-line expansion. They do this for better sourceMap support as there can only be one error per line. In order to work around this limitation the printer would need to be overriden in the printExpressionList method here:
https://github.com/TypeScriptToLua/TypeScriptToLua/blob/master/src/LuaPrinter.ts#L744

@thejustinwalsh thejustinwalsh added the bug Something isn't working label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant