9 references to HasMatchingText
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
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))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
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))