Skip to content

visit question token#16748

Merged
aozgaa merged 2 commits into
microsoft:masterfrom
aozgaa:implementOptionCrash
Jul 6, 2017
Merged

visit question token#16748
aozgaa merged 2 commits into
microsoft:masterfrom
aozgaa:implementOptionCrash

Conversation

@aozgaa

@aozgaa aozgaa commented Jun 26, 2017

Copy link
Copy Markdown
Contributor

Fixes #16707

Comment thread src/compiler/factory.ts Outdated
|| node.questionToken !== questionToken
|| node.type !== type
|| node.initializer !== initializer
? updateNode(createProperty(decorators, modifiers, name, node.questionToken, type, initializer), node)

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.

If we are visiting questionToken, then the call to updateNode should take questionToken not node.questionToken

@aozgaa

aozgaa commented Jun 29, 2017

Copy link
Copy Markdown
Contributor Author

Can you take another look, @rbuckton ?

@aozgaa aozgaa merged commit ad291d9 into microsoft:master Jul 6, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
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.

4 participants