10 references to HasMatchingText
Roslyn.Diagnostics.CSharp.Analyzers (10)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (5)
40=> token.Kind() == kind || token.HasMatchingText(kind); 109if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) 113if (token.HasMatchingText(SyntaxKind.FileKeyword)) 118if (token.HasMatchingText(SyntaxKind.ClosedKeyword)) 123if (token.HasMatchingText(SyntaxKind.PartialKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
451&& targetToken.HasMatchingText(SyntaxKind.AwaitKeyword))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
299if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) 838token.HasMatchingText(SyntaxKind.WhereKeyword) &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1582if (identifier.HasMatchingText(SyntaxKind.OrKeyword) || 1583identifier.HasMatchingText(SyntaxKind.AndKeyword))