Skip to content

[Gardening] Normalize the way paren types are stripped in Sema. #5163

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 1 commit into from
Oct 12, 2016

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 6, 2016

Does what it says on the can. Noticed we were duplicating the definition of getWithoutParens in quite a few places while writing #5110.

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 6, 2016

@swift-ci please smoke test.

@jrose-apple
Copy link
Contributor

Technically some of these were unwrapping one level of parentheses, while getWithoutParens unwraps all levels. Is it okay to change that behavior?

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 6, 2016

The only change I'm not 100% on is the ASTVerifier. The comments in and around the others seem to indicate they intend to strip everything before passing it on.

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 7, 2016

@DougGregor @slavapestov Can one of you quickly verify I haven't done something strange here?

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 12, 2016

@swift-ci please smoke test.

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 12, 2016

@swift-ci please smoke test and merge.

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 12, 2016

⛵️

@CodaFi CodaFi merged commit 7ba11dd into swiftlang:master Oct 12, 2016
@CodaFi CodaFi deleted the the-paren-trap branch October 12, 2016 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants