Skip to content

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

Merged
josefpihrt merged 4 commits intodotnet:mainfrom
jamesHargreaves12:fix/RCS1208
Jun 1, 2023
Merged

Improve SyntaxLogicalInverter to Handling Additional Cases and reduce Unnecesarry Parentheses#1086
josefpihrt merged 4 commits intodotnet:mainfrom
jamesHargreaves12:fix/RCS1208

Conversation

@jamesHargreaves12
Copy link
Copy Markdown
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.

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