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

Fix typescript error for ast parent setting #659

Merged
merged 1 commit into from
Aug 4, 2022
Merged

Conversation

TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Aug 4, 2022

Fixes ts error introduced in #650 introduced that only shows up in the typedef files.

Seems to provide a slight performance boost as well (probably due to the if (childNode?.parent) check which prevents duplicate reparenting.
image

@@ -348,18 +348,6 @@ export class NamespacedVariableNameExpression extends Expression {
}
range: Range;

// @ts-expect-error override the property
Copy link
Member Author

@TwitchBronBron TwitchBronBron Aug 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't persisted into the d.ts file, so it causes errors in consumers. That's the whole reason for this PR.

@TwitchBronBron TwitchBronBron merged commit 3f253e5 into master Aug 4, 2022
@TwitchBronBron TwitchBronBron deleted the ast-parent-fix branch August 4, 2022 14:58
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.

None yet

2 participants