20 references to ContextualKind
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Symbols.cs (1)
1015
(invocation.Expression as IdentifierNameSyntax)?.Identifier.
ContextualKind
() == SyntaxKind.NameOfKeyword):
CSharpExtensions.cs (1)
74
return identifier.
ContextualKind
() == SyntaxKind.UnderscoreToken;
Symbols\Source\ModifierUtils.cs (2)
395
DeclarationModifiers one = ToDeclarationModifier(modifier.
ContextualKind
());
411
var isPartialAsyncMethod = isOrdinaryMethod && i == modifiers.Count - 2 && modifiers[i + 1].
ContextualKind
() is SyntaxKind.AsyncKeyword;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
486
if (aliasSyntax.Identifier.
ContextualKind
() == SyntaxKind.GlobalKeyword)
654
if (identifier.
ContextualKind
() == SyntaxKind.GlobalKeyword)
Syntax\ParameterSyntax.cs (1)
13
return this.Type == null && this.Identifier.
ContextualKind
() == SyntaxKind.ArgListKeyword;
Syntax\SyntaxNodeExtensions.cs (1)
56
((IdentifierNameSyntax)node.Expression).Identifier.
ContextualKind
() == SyntaxKind.NameOfKeyword &&
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenDeconstructTests.cs (1)
3645
return tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(i => i.Identifier.
ContextualKind
() == SyntaxKind.UnderscoreToken);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\AccessCheckTests.cs (1)
761
var discards = tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(i => i.Identifier.
ContextualKind
() == SyntaxKind.UnderscoreToken).ToArray();
Semantics\MethodTypeInferenceTests.cs (1)
863
return tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(i => i.Identifier.
ContextualKind
() == SyntaxKind.UnderscoreToken);
Semantics\OutVarTests.cs (1)
865
return tree.GetRoot().DescendantNodes().OfType<IdentifierNameSyntax>().Where(i => i.Identifier.
ContextualKind
() == SyntaxKind.UnderscoreToken);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
LexicalAndXml\PreprocessorTests.cs (1)
4571
Assert.Equal(SyntaxKind.IdentifierToken, token.
ContextualKind
());
Parsing\ExpressionParsingTests.cs (2)
2663
Assert.Equal(SyntaxKind.AscendingKeyword, os.AscendingOrDescendingKeyword.
ContextualKind
());
2711
Assert.Equal(SyntaxKind.DescendingKeyword, os.AscendingOrDescendingKeyword.
ContextualKind
());
Parsing\ParsingErrorRecoveryTests.cs (1)
6136
Assert.Equal(SyntaxKind.PartialKeyword, subitem2.Modifiers[0].
ContextualKind
());
Parsing\StatementParsingTests.cs (4)
1195
Assert.Equal(SyntaxKind.ThrowKeyword, ts.ThrowKeyword.
ContextualKind
());
1215
Assert.Equal(SyntaxKind.ThrowKeyword, ts.ThrowKeyword.
ContextualKind
());
2626
Assert.Equal(SyntaxKind.AwaitKeyword, us.AwaitKeyword.
ContextualKind
());
3349
Assert.Equal(kind, name.Identifier.
ContextualKind
());