You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ooh, yeah, good idea. Would make troubleshooting generated code a lot easier for sure.
An interesting question: how would we get something like print(/* hello */ "hi") to work, since Godot doesn't have multiline/in-line comments? I guess we could gather all inline comments up and emit them before the line.
I think if gdscript does not support multiline comments we should just strip them. Adding behavior that will concat those comments and then generate a single line comment will be confusing for people. Also the logic would not be simple and I do not think that this feature would be used very frequently.
Additionally when we strip multiline comments then we have an ability to create comments that only exists in TypeScript code and can be used to create comments that make sense in TS but not in gdscript.
Should we add some toggle to preserve comments in the generated code?
The text was updated successfully, but these errors were encountered: