1 instantiation of Entry
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (1)
63
var newEntry = new
Entry
(key, valueFactory(key));
8 references to Entry
Roslyn.Diagnostics.Analyzers (8)
src\RoslynAnalyzers\Utilities\Compiler\BoundedCacheWithFactory.cs (8)
20
private readonly List<WeakReference<
Entry
?>> _weakReferencedEntries = new()
22
new WeakReference<
Entry
?>(null),
23
new WeakReference<
Entry
?>(null),
24
new WeakReference<
Entry
?>(null),
25
new WeakReference<
Entry
?>(null),
26
new WeakReference<
Entry
?>(null),
37
if (!weakReferencedEntry.TryGetTarget(out
var
cachedEntry) ||
63
var
newEntry = new Entry(key, valueFactory(key));