Skip to content

Commit

Permalink
Use IsKind
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Aug 3, 2024
1 parent 322892d commit 3af5f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Riok.Mapperly/Descriptors/InlineExpressionRewriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public override SyntaxNode VisitTypeArgumentList(TypeArgumentListSyntax node)

if (
result is BinaryExpressionSyntax typedResult
&& typedResult.Kind() is SyntaxKind.AsExpression
&& typedResult.IsKind(SyntaxKind.AsExpression)
&& semanticModel.GetSymbolInfo(node.Right).Symbol is ITypeSymbol namedTypeSymbol
)
{
Expand Down

0 comments on commit 3af5f54

Please sign in to comment.