1 instantiation of WellKnownTypeProvider
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
47
static WellKnownTypeProvider CreateWellKnownTypeProvider(Compilation compilation) =>
new
(compilation);
14 references to WellKnownTypeProvider
Roslyn.Diagnostics.Analyzers (14)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (2)
23
WellKnownTypeProvider =
WellKnownTypeProvider
.GetOrCreate(compilation);
32
public
WellKnownTypeProvider
WellKnownTypeProvider { get; }
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (5)
41
internal static void AddCoupledNamedTypes(ImmutableHashSet<INamedTypeSymbol>.Builder builder,
WellKnownTypeProvider
wellKnownTypeProvider,
50
internal static void AddCoupledNamedTypes(ImmutableHashSet<INamedTypeSymbol>.Builder builder,
WellKnownTypeProvider
wellKnownTypeProvider,
56
internal static void AddCoupledNamedTypes(ImmutableHashSet<INamedTypeSymbol>.Builder builder,
WellKnownTypeProvider
wellKnownTypeProvider,
352
WellKnownTypeProvider
wellKnownTypeProvider)
372
static bool isIgnoreableType(INamedTypeSymbol namedType,
WellKnownTypeProvider
wellKnownTypeProvider)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\CompilationExtensions.cs (2)
61
WellKnownTypeProvider
.GetOrCreate(compilation).GetOrCreateTypeByMetadataName(fullTypeName);
70
WellKnownTypeProvider
.GetOrCreate(compilation).TryGetOrCreateTypeByMetadataName(fullTypeName, out namedTypeSymbol);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (2)
333
/// <param name="wellKnownTypeProvider">An instance of the <see cref="
WellKnownTypeProvider
"/> used to access the three described known types.</param>
335
public static bool HasAnyCollectionCountProperty([NotNullWhen(returnValue: true)] this ITypeSymbol? invocationTarget,
WellKnownTypeProvider
wellKnownTypeProvider)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (3)
25
private static readonly BoundedCacheWithFactory<Compilation,
WellKnownTypeProvider
> s_providerCache = new();
42
public static
WellKnownTypeProvider
GetOrCreate(Compilation compilation)
47
static
WellKnownTypeProvider
CreateWellKnownTypeProvider(Compilation compilation) => new(compilation);