5 instantiations of ConcurrentCache
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigSet.cs (1)
52
new
ConcurrentCache
<List<Section>, AnalyzerConfigOptionsResult>(50, SequenceEqualComparer.Instance); // arbitrary size
Compilation\Compilation.cs (2)
1209
ref _getTypeCache, static () => new
ConcurrentCache
<string, INamedTypeSymbol?>(50, ReferenceEqualityComparer.Instance));
1240
ref _getTypesCache, static () => new
ConcurrentCache
<string, ImmutableArray<INamedTypeSymbol>>(50, ReferenceEqualityComparer.Instance));
Emit\DebugDocumentsBuilder.cs (1)
33
_normalizedPathsCache = new
ConcurrentCache
<(string, string?), string>(16);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
175
new
ConcurrentCache
<string, (AssemblyIdentity? identity, AssemblyIdentityParts parts)>(1024, ReferenceEqualityComparer.Instance);
8 references to ConcurrentCache
Microsoft.CodeAnalysis (8)
Collections\ConcurrentCache.cs (1)
12
internal sealed class ConcurrentCache<TKey, TValue> : CachingBase<
ConcurrentCache
<TKey, TValue>.Entry>
CommandLine\AnalyzerConfigSet.cs (1)
51
private readonly
ConcurrentCache
<List<Section>, AnalyzerConfigOptionsResult> _optionsCache =
Compilation\Compilation.cs (4)
1162
private
ConcurrentCache
<string, INamedTypeSymbol?>? _getTypeCache;
1164
private
ConcurrentCache
<string, ImmutableArray<INamedTypeSymbol>>? _getTypesCache;
1208
var
getTypeCache = RoslynLazyInitializer.EnsureInitialized(
1239
var
getTypesCache = RoslynLazyInitializer.EnsureInitialized(
Emit\DebugDocumentsBuilder.cs (1)
21
private readonly
ConcurrentCache
<(string, string?), string> _normalizedPathsCache;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
174
private static readonly
ConcurrentCache
<string, (AssemblyIdentity? identity, AssemblyIdentityParts parts)> s_TryParseDisplayNameCache =