Skip to content

Commit bec2a49

Browse files
Timur KelmanTimur Kelman
authored andcommitted
use slightly more compact syntax
1 parent bcdb0d1 commit bec2a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeConverter/Common/DocumentExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private static bool CsWouldBeSimplifiedIncorrectly(SyntaxNode n)
5252
{
5353
//"private int value = unchecked((int)0x80000010);" is simplified to "private int value = unchecked(0x80000010);"
5454
// which causes CS0266: "Cannot implicitly convert type 'uint' to 'int'"
55-
return (n is CSSyntax.CastExpressionSyntax && n.Parent is CSSyntax.CheckedExpressionSyntax);
55+
return (n is CSSyntax.CastExpressionSyntax { Parent : CSSyntax.CheckedExpressionSyntax });
5656
}
5757

5858
public static async Task<Document> WithExpandedRootAsync(this Document document, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)