Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Reduce aggression of parenthesis removal in ts transform#24073

Merged
weswigham merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
weswigham:asi-parensweswigham/TypeScript:asi-parensCopy head branch name to clipboard
May 14, 2018
Merged

Reduce aggression of parenthesis removal in ts transform#24073
weswigham merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
weswigham:asi-parensweswigham/TypeScript:asi-parensCopy head branch name to clipboard

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes #24021

Since comments are the only way we introduce a line terminator (as we do not preserve input whitespace in general), simply checking for the presence of a leading comment is sufficient for checking if we need to preserve the parens when removing the parens around a cast or not.

@weswigham weswigham merged commit b58e4e1 into microsoft:master May 14, 2018
@weswigham weswigham deleted the asi-parens branch May 14, 2018 18:20
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.