22 references to IsKind
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
ParenthesizedExpressionSyntaxExtensions.cs (3)
356
if (nodeOrToken.IsNode && !nodeOrToken.
IsKind
(SyntaxKind.ParenthesizedExpression))
362
if (nodeOrToken.
IsKind
(SyntaxKind.ColonToken) || nodeOrToken.
IsKind
(SyntaxKind.ColonColonToken))
Microsoft.CodeAnalysis.CSharp.Features (12)
StringIndentation\CSharpStringIndentationService.cs (2)
76
if (child.
IsKind
(SyntaxKind.MultiLineRawStringLiteralToken) ||
77
child.
IsKind
(SyntaxKind.Utf8MultiLineRawStringLiteralToken))
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
38
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.ConstructorDeclaration));
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (1)
40
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.ConversionOperatorDeclaration));
Structure\Providers\EventDeclarationStructureProvider.cs (2)
39
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.EventDeclaration) || nextSibling.
IsKind
(SyntaxKind.EventFieldDeclaration));
Structure\Providers\IndexerDeclarationStructureProvider.cs (2)
39
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.IndexerDeclaration) || nextSibling.
IsKind
(SyntaxKind.PropertyDeclaration));
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
38
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.MethodDeclaration));
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
38
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.OperatorDeclaration));
Structure\Providers\PropertyDeclarationStructureProvider.cs (2)
38
&& (!nextSibling.IsNode || nextSibling.
IsKind
(SyntaxKind.PropertyDeclaration) || nextSibling.
IsKind
(SyntaxKind.IndexerDeclaration));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
IncrementalParsing\IncrementalParsingTests.cs (1)
118
if (diffI < diffs.Length && diffs[diffI].
IsKind
(kind))
Syntax\SyntaxListTests.cs (2)
296
Assert.True(item.
IsKind
(SyntaxKind.Argument));
304
Assert.True(item.
IsKind
(SyntaxKind.CommaToken));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
63
if (node.
IsKind
(kind))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
ParenthesizedExpressionSyntaxExtensions.cs (3)
356
if (nodeOrToken.IsNode && !nodeOrToken.
IsKind
(SyntaxKind.ParenthesizedExpression))
362
if (nodeOrToken.
IsKind
(SyntaxKind.ColonToken) || nodeOrToken.
IsKind
(SyntaxKind.ColonColonToken))