Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(compiler-cli): avoid superfluous parenthesis around statemen…
…ts (#33514) Previously, due to a bug a `Context` with `isStatement: false` could be returned in places where a `Context` with `isStatement: true` was requested. As a result, some statements would be unnecessarily wrapped in parenthesis. This commit fixes the bug in `Context#withStatementMode` to always return a `Context` with the correct `isStatement` value. Note that this does not have any impact on the generated code other than avoiding some superfluous parenthesis on certain statements. PR Close #33514
- Loading branch information
Showing
4 changed files
with
30 additions
and
30 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
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