1 instantiation of WellKnownTypeProvider
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
47static WellKnownTypeProvider CreateWellKnownTypeProvider(Compilation compilation) => new(compilation);
14 references to WellKnownTypeProvider
Roslyn.Diagnostics.Analyzers (14)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (2)
23WellKnownTypeProvider = WellKnownTypeProvider.GetOrCreate(compilation); 32public WellKnownTypeProvider WellKnownTypeProvider { get; }
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (5)
41internal static void AddCoupledNamedTypes(ImmutableHashSet<INamedTypeSymbol>.Builder builder, WellKnownTypeProvider wellKnownTypeProvider, 50internal static void AddCoupledNamedTypes(ImmutableHashSet<INamedTypeSymbol>.Builder builder, WellKnownTypeProvider wellKnownTypeProvider, 56internal static void AddCoupledNamedTypes(ImmutableHashSet<INamedTypeSymbol>.Builder builder, WellKnownTypeProvider wellKnownTypeProvider, 352WellKnownTypeProvider wellKnownTypeProvider) 372static bool isIgnoreableType(INamedTypeSymbol namedType, WellKnownTypeProvider wellKnownTypeProvider)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\CompilationExtensions.cs (2)
61WellKnownTypeProvider.GetOrCreate(compilation).GetOrCreateTypeByMetadataName(fullTypeName); 70WellKnownTypeProvider.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> 335public static bool HasAnyCollectionCountProperty([NotNullWhen(returnValue: true)] this ITypeSymbol? invocationTarget, WellKnownTypeProvider wellKnownTypeProvider)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (3)
25private static readonly BoundedCacheWithFactory<Compilation, WellKnownTypeProvider> s_providerCache = new(); 42public static WellKnownTypeProvider GetOrCreate(Compilation compilation) 47static WellKnownTypeProvider CreateWellKnownTypeProvider(Compilation compilation) => new(compilation);