13 instantiations of CachingDictionary
Microsoft.CodeAnalysis.CSharp (1)
Symbols\MergedNamespaceSymbol.cs (1)
93_cachedLookup = new CachingDictionary<ReadOnlyMemory<char>, Symbol>(SlowGetChildrenOfName, SlowGetChildNames, ReadOnlyMemoryOfCharComparer.Instance);
Microsoft.CodeAnalysis.UnitTests (12)
CachingLookupTests.cs (12)
163var look2 = new CachingDictionary<string, int>( 169look2 = new CachingDictionary<string, int>( 176look2 = new CachingDictionary<string, int>( 195var look2 = new CachingDictionary<string, int>( 201look2 = new CachingDictionary<string, int>( 208look2 = new CachingDictionary<string, int>( 227var look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 232look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 238look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 259var look1 = new CachingDictionary<string, int>(s => 299lookup = new CachingDictionary<int, FullyPopulateRaceHelper>(getElementsOfKey, getKeys, EqualityComparer<int>.Default); 336lookup = new CachingDictionary<int, FullyPopulateRaceHelper>(getElementsOfKey, getKeys, EqualityComparer<int>.Default);
10 references to CachingDictionary
Microsoft.CodeAnalysis.CSharp (1)
Symbols\MergedNamespaceSymbol.cs (1)
43private readonly CachingDictionary<ReadOnlyMemory<char>, Symbol> _cachedLookup;
Microsoft.CodeAnalysis.UnitTests (9)
CachingLookupTests.cs (9)
104private void CompareLookups1(ILookup<string, int> look1, CachingDictionary<string, int> look2, SegmentedHashSet<string> keys) 121private void CompareLookups2(ILookup<string, int> look1, CachingDictionary<string, int> look2, SegmentedHashSet<string> keys) 136private void CompareLookups2(CachingDictionary<string, int> look1, ILookup<string, int> look2, SegmentedHashSet<string> keys) 163var look2 = new CachingDictionary<string, int>( 195var look2 = new CachingDictionary<string, int>( 227var look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(), 259var look1 = new CachingDictionary<string, int>(s => 296CachingDictionary<int, FullyPopulateRaceHelper> lookup = null; 333CachingDictionary<int, FullyPopulateRaceHelper> lookup = null;