Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: don't modify operator precedence in operator-assignment autofixer (
#8358) * Fix: don't modify operator precedence in operator-assignment autofixer Previously, the operator-assignment autofixer could sometimes modify semantics or produce a syntax error due to different operator precedence. This commit updates the fixer to surround the right side of an assignment with parentheses if it has lower precedence than its new neighbor. * Add additional test
- Loading branch information
1 parent
f88375f
commit 3342e9f
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters