12 references to HasMatchingText
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
60&& !(targetToken.IsKind(SyntaxKind.IdentifierToken) && targetToken.HasMatchingText(SyntaxKind.AliasKeyword)))
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
100(targetToken.Kind() == SyntaxKind.IdentifierToken && targetToken.HasMatchingText(SyntaxKind.PartialKeyword)))
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
90if (token.Parent is IdentifierNameSyntax && token.HasMatchingText(SyntaxKind.WhereKeyword))
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
320identifierName.Identifier.HasMatchingText(SyntaxKind.FromKeyword) &&
CSharpSyntaxContext.cs (1)
444&& targetToken.HasMatchingText(SyntaxKind.AwaitKeyword))
CSharpTypeInferenceService.TypeInferrer.cs (2)
1530if (identifier.HasMatchingText(SyntaxKind.OrKeyword) || 1531identifier.HasMatchingText(SyntaxKind.AndKeyword))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
39=> token.Kind() == kind || token.HasMatchingText(kind);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
60if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) 67if (token.HasMatchingText(SyntaxKind.FileKeyword))
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
298if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) 830token.HasMatchingText(SyntaxKind.WhereKeyword) &&