29 references to ClassType
System.Text.Json.SourceGeneration (29)
JsonSourceGenerator.Emitter.cs (13)
198
case
ClassType
.BuiltInSupportType:
201
case
ClassType
.TypeWithDesignTimeProvidedCustomConverter:
204
case
ClassType
.Nullable:
207
case
ClassType
.Enum:
210
case
ClassType
.Enumerable:
211
case
ClassType
.Dictionary:
214
case
ClassType
.Object:
217
case
ClassType
.UnsupportedType:
220
case
ClassType
.TypeUnsupportedBySourceGen:
326
Debug.Assert(!(typeGenerationSpec.ClassType ==
ClassType
.Dictionary && collectionKeyType == null));
399
if (typeGenerationSpec.ClassType ==
ClassType
.Enumerable)
814
if (propertyTypeSpec.ClassType is
ClassType
.TypeUnsupportedBySourceGen)
1402
if (metadata.ClassType !=
ClassType
.TypeUnsupportedBySourceGen)
JsonSourceGenerator.Parser.cs (16)
505
ClassType
classType;
533
classType =
ClassType
.TypeUnsupportedBySourceGen;
538
?
ClassType
.TypeWithDesignTimeProvidedCustomConverter
539
:
ClassType
.TypeUnsupportedBySourceGen;
543
classType =
ClassType
.BuiltInSupportType;
547
classType =
ClassType
.UnsupportedType;
551
classType =
ClassType
.Nullable;
562
classType =
ClassType
.TypeWithDesignTimeProvidedCustomConverter;
566
classType =
ClassType
.Enum;
579
classType =
ClassType
.UnsupportedType;
585
classType =
ClassType
.TypeUnsupportedBySourceGen;
597
classType = keyType != null ?
ClassType
.Dictionary :
ClassType
.Enumerable;
625
classType =
ClassType
.Object;
638
if (classType is
ClassType
.TypeUnsupportedBySourceGen)
648
classType =
ClassType
.TypeUnsupportedBySourceGen;