Skip to content

Clean up Printer.emitExpression #190

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 2 commits into from
Dec 18, 2024

Conversation

rbuckton
Copy link

This does some minor cleanup of Printer.emitExpression by introducing a "Parenthesis" operator precedence to force parentheses in some cases and merging emitExpressionEx, emitExpressionWithParentheses, and emitExpression as all callers now pass an appropriate ast.OperatorPrecedence value.

@rbuckton rbuckton merged commit afc0ce8 into microsoft:main Dec 18, 2024
12 checks passed
@rbuckton rbuckton deleted the emitExpression-cleanup branch December 18, 2024 19:41
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.

3 participants