15 references to GetCompatibleGenericBaseType
System.Text.Json.SourceGeneration (15)
JsonSourceGenerator.Parser.cs (15)
613
bool useDefaultCtorInAnnotatedStructs = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyValuePair) is null;
772
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IAsyncEnumerableOfTType) is INamedTypeSymbol iAsyncEnumerableType)
791
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyedCollectionType)) != null)
796
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ListOfTType)) != null)
801
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.DictionaryOfTKeyTValueType)) != null)
814
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType)) != null)
821
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType)) != null)
833
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IListOfTType)) != null)
838
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ISetOfTType)) != null)
843
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ICollectionOfTType)) != null)
848
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.StackOfTType)) != null)
853
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.QueueOfTType)) != null)
858
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentStackType)) != null)
863
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentQueueType)) != null)
868
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IEnumerableOfTType)) != null)