20 references to GetCompatibleGenericBaseType
System.Text.Json.SourceGeneration (20)
JsonSourceGenerator.Parser.cs (20)
783
bool useDefaultCtorInAnnotatedStructs = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyValuePair) is null;
1914
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType) is not null ||
1915
type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType) is not null ||
2029
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IAsyncEnumerableOfTType) is INamedTypeSymbol iAsyncEnumerableType)
2048
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyedCollectionType)) != null)
2053
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ListOfTType)) != null)
2058
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.DictionaryOfTKeyTValueType)) != null)
2071
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType)) != null)
2078
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType)) != null)
2090
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IListOfTType)) != null)
2095
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ISetOfTType)) != null)
2100
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadOnlySetOfTType)) != null)
2105
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ICollectionOfTType)) != null)
2110
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.StackOfTType)) != null)
2115
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.QueueOfTType)) != null)
2120
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentStackType)) != null)
2125
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentQueueType)) != null)
2130
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IEnumerableOfTType)) != null)
2367
INamedTypeSymbol? actualDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType);
2380
INamedTypeSymbol? actualReadOnlyDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType);