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

Fix to #20322 - Print Switch in expression tree #20326

Merged
merged 1 commit into from
Mar 18, 2020
Merged

Fix to #20322 - Print Switch in expression tree #20326

merged 1 commit into from
Mar 18, 2020

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Mar 18, 2020

Adding proper handling for SwitchExpresions.

Resolves #20322

@maumar maumar requested a review from smitpatel March 18, 2020 01:34
_stringBuilder.AppendLine(": ");
}

using (var indent = _stringBuilder.Indent())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove the variable indent. It should work without putting the value in variable.

@@ -3,6 +3,7 @@

using System;
using System.Collections.Generic;
using System.Diagnostics;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Copy link
Member

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be add a unit test in expression printer tests?

Adding proper handling for SwitchExpresions.

Resolves #20322
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.

Print Switch in expression tree
2 participants