Skip to content

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

Merged
sandersn merged 3 commits into
masterfrom
skip-parens-and-bang-for-this-context
Apr 3, 2018
Merged

Skip parens and non-null assertions when looking for this-context#23097
sandersn merged 3 commits into
masterfrom
skip-parens-and-bang-for-this-context

Conversation

@sandersn
Copy link
Copy Markdown
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
Comment thread src/compiler/utilities.ts Outdated
return node;
}

export function skipParenthesesAndNonNull(node: Expression): Expression;
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.

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