We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1338963 commit 1cab219Copy full SHA for 1cab219
CodeConverter/Util/CSharpUtil.cs
@@ -131,6 +131,8 @@ public static SyntaxKind GetExpressionOperatorTokenKind(SyntaxKind op)
131
/// </summary>
132
public static ExpressionSyntax AddParens(this ExpressionSyntax expression)
133
{
134
+ if (expression is ParenthesizedExpressionSyntax)
135
+ return expression;
136
return SyntaxFactory.ParenthesizedExpression(expression);
137
}
138
0 commit comments