Skip to content

Fix const enum comments #47990

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

Merged
merged 4 commits into from
Mar 3, 2022
Merged

Fix const enum comments #47990

merged 4 commits into from
Mar 3, 2022

Conversation

magic-akari
Copy link
Contributor

Fixes #47982

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Feb 22, 2022
@@ -3364,7 +3368,7 @@ namespace ts {
? declarationNameToString(originalNode.name)
: getTextOfNode(originalNode.argumentExpression);
Copy link
Member

Choose a reason for hiding this comment

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

Move the function call to this line so that the common case (where a user has written a property access and isn't trying to sabotage the emitter 😄) doesn't have to run through a regex

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, thanks.
I appreciate your careful review.

@typescript-bot typescript-bot added For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 24, 2022
@magic-akari magic-akari marked this pull request as ready for review February 24, 2022 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

unexpected code generated from const enum
4 participants