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