Skip to content

Skip parens and non-null assertions when looking for this-context #23097

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 3 commits into from
Apr 3, 2018

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Apr 2, 2018

The check is syntactic and was previously very simple.

Fixes #23040

@sandersn sandersn requested review from a user and weswigham April 2, 2018 23:01
return node;
}

export function skipParenthesesAndNonNull(node: Expression): Expression;
Copy link
Member

Choose a reason for hiding this comment

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

Should probably just use skipOuterExpressions, which is all this and more.

@sandersn sandersn merged commit 11eabc0 into master Apr 3, 2018
@sandersn sandersn deleted the skip-parens-and-bang-for-this-context branch April 3, 2018 13:24
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 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.

3 participants