1 instantiation of TextKeyedCache
Microsoft.CodeAnalysis (1)
InternalUtilities\TextKeyedCache.cs (1)
87pool => new TextKeyedCache<T>(pool),
12 references to TextKeyedCache
Microsoft.CodeAnalysis (6)
InternalUtilities\TextKeyedCache.cs (6)
75private TextKeyedCache(ObjectPool<TextKeyedCache<T>>? pool) 81private readonly ObjectPool<TextKeyedCache<T>>? _pool; 82private static readonly ObjectPool<TextKeyedCache<T>> s_staticPool = CreatePool(); 84private static ObjectPool<TextKeyedCache<T>> CreatePool() 86var pool = new ObjectPool<TextKeyedCache<T>>( 92public static TextKeyedCache<T> GetInstance()
Microsoft.CodeAnalysis.CSharp (6)
Parser\LexerCache.cs (6)
34private TextKeyedCache<SyntaxTrivia>? _triviaMap; 35private TextKeyedCache<SyntaxToken>? _tokenMap; 114private TextKeyedCache<SyntaxTrivia> TriviaMap 118_triviaMap ??= TextKeyedCache<SyntaxTrivia>.GetInstance(); 124private TextKeyedCache<SyntaxToken> TokenMap 128_tokenMap ??= TextKeyedCache<SyntaxToken>.GetInstance();