Skip to content

visit exclamation token#26151

Merged
rbuckton merged 5 commits intomicrosoft:masterfrom
Kingwl:PropertyDeclarationExclamationToken
Apr 24, 2019
Merged

visit exclamation token#26151
rbuckton merged 5 commits intomicrosoft:masterfrom
Kingwl:PropertyDeclarationExclamationToken

Conversation

@Kingwl
Copy link
Copy Markdown
Contributor

@Kingwl Kingwl commented Aug 2, 2018

Fixes #25789

Comment thread src/compiler/visitor.ts Outdated
nodesVisitor((<PropertyDeclaration>node).modifiers, visitor, isModifier),
visitNode((<PropertyDeclaration>node).name, visitor, isPropertyName),
visitNode((<PropertyDeclaration>node).questionToken, tokenVisitor, isToken),
visitNode((<PropertyDeclaration>node).questionToken, tokenVisitor, isToken) || visitNode((<PropertyDeclaration>node).exclamationToken, tokenVisitor, isToken),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use , instead of ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actually, || would have been better in this case because the argument only allows one or the other. I've suggested a more concise approach in another comment.

@Kingwl Kingwl force-pushed the PropertyDeclarationExclamationToken branch from eb20823 to 723ee8a Compare August 6, 2018 10:40
Comment thread src/compiler/visitor.ts Outdated
Comment thread src/compiler/visitor.ts Outdated
@RyanCavanaugh
Copy link
Copy Markdown
Member

@Kingwl - ping - can you address or close? Thanks

Co-Authored-By: Kingwl <kingwenlu@gmail.com>
@rbuckton rbuckton merged commit e2310f2 into microsoft:master Apr 24, 2019
@rbuckton
Copy link
Copy Markdown
Contributor

Thanks for the contribution!

@Kingwl Kingwl deleted the PropertyDeclarationExclamationToken branch April 24, 2019 08:38
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

property transformation visitor doesn't take into account exclamationToken

4 participants