7 references to IsKind
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
363if (previousStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) &&
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (2)
295if (!initializerValue.IsKind(SyntaxKind.AsExpression, out asExpression)) 306if (!assignment.Right.IsKind(SyntaxKind.AsExpression, out asExpression) ||
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (3)
174if (!isExpression.Parent.IsKind(SyntaxKind.IfStatement, out ifStatement)) 187if (!firstStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclarationStatement)) 198if (!declaratorValue.IsKind(SyntaxKind.CastExpression, out castExpression))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
418node.Expression.IsKind(parentBinaryExpression.Kind(), out BinaryExpressionSyntax? nodeBinary))