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