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

Don't push synthetic constructor into each class #586

Merged
merged 1 commit into from
May 14, 2022

Conversation

TwitchBronBron
Copy link
Member

All BrighterScript classes must have a new method at runtime. To prevent unnecessary code, brighterscript automatically emits an empty new method during transpile. However, it was doing this by actually injecting the method into the class's body AST. This can cause issues in plugins that depend on adding/removing methods as part of AstEditor operations.

This PR resolve that issue by emitting the new method without adding it to the class body's AST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant