13 references to HasMatchingText
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
59&& !(targetToken.IsKind(SyntaxKind.IdentifierToken) && targetToken.HasMatchingText(SyntaxKind.AliasKeyword)))
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
93(targetToken.Kind() == SyntaxKind.IdentifierToken && targetToken.HasMatchingText(SyntaxKind.PartialKeyword)))
Completion\KeywordRecommenders\WhereKeywordRecommender.cs (1)
91if (token.Parent is IdentifierNameSyntax && token.HasMatchingText(SyntaxKind.WhereKeyword))
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
291name.Identifier.HasMatchingText(SyntaxKind.FromKeyword) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (4)
40=> token.Kind() == kind || token.HasMatchingText(kind); 106if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) 110if (token.HasMatchingText(SyntaxKind.FileKeyword)) 114if (token.HasMatchingText(SyntaxKind.PartialKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
450&& targetToken.HasMatchingText(SyntaxKind.AwaitKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
299if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) 831token.HasMatchingText(SyntaxKind.WhereKeyword) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1504if (identifier.HasMatchingText(SyntaxKind.OrKeyword) || 1505identifier.HasMatchingText(SyntaxKind.AndKeyword))