5 references to IsPotentialTypeName
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\KeywordRecommenders\InKeywordRecommender.cs (2)
89
if (!typeSyntax.
IsPotentialTypeName
(context.SemanticModel, cancellationToken))
130
!joinClause.Type.
IsPotentialTypeName
(context.SemanticModel, cancellationToken))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
2326
if (binary.Left is TypeSyntax type && type.
IsPotentialTypeName
(semanticModel, cancellationToken))
2357
if (!underlyingType.
IsPotentialTypeName
(semanticModel, cancellationToken))
2388
|| !type.
IsPotentialTypeName
(semanticModel, cancellationToken);