Skip to content
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

Improve SyntaxLogicalInverter to Handling Additional Cases and reduce Unnecesarry Parentheses #1086

Merged
merged 4 commits into from Jun 1, 2023

Conversation

jamesHargreaves12
Copy link
Contributor

@jamesHargreaves12 jamesHargreaves12 commented May 2, 2023

This PR updates the SyntaxLogicalInverter to handle a couple of new cases (NumericLiteralExpression, and StringLiteralExpression) - these were previously failing if running in debug mode e.g. causing errors in RCS1208.
Other changes of note:

  • Avoid adding parens for cases where it is clear that we do not need to add them.
  • Add a number of unit tests to ensure that things are working as they should.

@josefpihrt josefpihrt merged commit ee6668f into dotnet:main Jun 1, 2023
Haarmees pushed a commit to Haarmees/Roslynator that referenced this pull request Oct 30, 2023
… Unnecessary Parentheses (dotnet#1086)

Co-authored-by: Josef Pihrt <josef@pihrt.net>
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.

None yet

2 participants