20 references to GetCompatibleGenericBaseType
System.Text.Json.SourceGeneration (20)
JsonSourceGenerator.Parser.cs (20)
711
bool useDefaultCtorInAnnotatedStructs = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyValuePair) is null;
1629
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType) is not null ||
1630
type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType) is not null ||
1745
if (type.
GetCompatibleGenericBaseType
(_knownSymbols.IAsyncEnumerableOfTType) is INamedTypeSymbol iAsyncEnumerableType)
1764
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.KeyedCollectionType)) != null)
1769
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ListOfTType)) != null)
1774
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.DictionaryOfTKeyTValueType)) != null)
1787
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType)) != null)
1794
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType)) != null)
1806
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IListOfTType)) != null)
1811
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ISetOfTType)) != null)
1816
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadOnlySetOfTType)) != null)
1821
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ICollectionOfTType)) != null)
1826
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.StackOfTType)) != null)
1831
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.QueueOfTType)) != null)
1836
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentStackType)) != null)
1841
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.ConcurrentQueueType)) != null)
1846
else if ((actualTypeToConvert = type.
GetCompatibleGenericBaseType
(_knownSymbols.IEnumerableOfTType)) != null)
2081
INamedTypeSymbol? actualDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IDictionaryOfTKeyTValueType);
2094
INamedTypeSymbol? actualReadOnlyDictionaryType = type.
GetCompatibleGenericBaseType
(_knownSymbols.IReadonlyDictionaryOfTKeyTValueType);