20 references to GetCompatibleGenericBaseType
System.Text.Json.SourceGeneration (20)
JsonSourceGenerator.Parser.cs (20)
812
bool useDefaultCtorInAnnotatedStructs = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyValuePair) is null;
1873
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType) is not null ||
1874
type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType) is not null ||
1989
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IAsyncEnumerableOfTType) is INamedTypeSymbol iAsyncEnumerableType)
2008
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyedCollectionType)) != null)
2013
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ListOfTType)) != null)
2018
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.DictionaryOfTKeyTValueType)) != null)
2031
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType)) != null)
2038
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType)) != null)
2050
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IListOfTType)) != null)
2055
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ISetOfTType)) != null)
2060
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadOnlySetOfTType)) != null)
2065
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ICollectionOfTType)) != null)
2070
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.StackOfTType)) != null)
2075
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.QueueOfTType)) != null)
2080
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentStackType)) != null)
2085
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentQueueType)) != null)
2090
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IEnumerableOfTType)) != null)
2324
INamedTypeSymbol? actualDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType);
2337
INamedTypeSymbol? actualReadOnlyDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType);