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