1 instantiation of SumTypeInfoCache
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\SumConverter.cs (1)
197
var sumTypeInfoCache = SumTypeCache.GetOrAdd(objectType, (t) => new SumConverter.
SumTypeInfoCache
(t));
6 references to SumTypeInfoCache
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Protocol\Converters\SumConverter.cs (6)
184
private static readonly ConcurrentDictionary<Type, SumConverter.
SumTypeInfoCache
> SumTypeCache = new ConcurrentDictionary<Type, SumConverter.
SumTypeInfoCache
>();
197
var
sumTypeInfoCache = SumTypeCache.GetOrAdd(objectType, (t) => new SumConverter.SumTypeInfoCache(t));
220
var result = ((SumConverter.
SumTypeInfoCache
.UnionTypeInfo.StjReader<T>)unionTypeInfo.StjReaderFunction).Invoke(ref reader, options);
243
var result = ((SumConverter.
SumTypeInfoCache
.UnionTypeInfo.StjReader<T>)unionTypeInfo.StjReaderFunction).Invoke(ref reader, options);
282
private static bool IsTokenCompatibleWithType(ref Utf8JsonReader reader, SumConverter.
SumTypeInfoCache
.UnionTypeInfo unionTypeInfo)