20 references to GetCompatibleGenericBaseType
System.Text.Json.SourceGeneration (20)
JsonSourceGenerator.Parser.cs (20)
710
bool useDefaultCtorInAnnotatedStructs = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyValuePair) is null;
1342
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType) is not null ||
1343
type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType) is not null ||
1458
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IAsyncEnumerableOfTType) is INamedTypeSymbol iAsyncEnumerableType)
1477
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyedCollectionType)) != null)
1482
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ListOfTType)) != null)
1487
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.DictionaryOfTKeyTValueType)) != null)
1500
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType)) != null)
1507
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType)) != null)
1519
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IListOfTType)) != null)
1524
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ISetOfTType)) != null)
1529
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadOnlySetOfTType)) != null)
1534
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ICollectionOfTType)) != null)
1539
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.StackOfTType)) != null)
1544
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.QueueOfTType)) != null)
1549
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentStackType)) != null)
1554
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentQueueType)) != null)
1559
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IEnumerableOfTType)) != null)
1794
INamedTypeSymbol? actualDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType);
1807
INamedTypeSymbol? actualReadOnlyDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType);