1 write to PropertyType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1412
PropertyType
= propertyTypeRef,
12 references to PropertyType
System.Text.Json.SourceGeneration (12)
JsonSourceGenerator.Emitter.cs (9)
642
!_typeIndex.ContainsKey(property.
PropertyType
);
644
string propertyTypeFQN = isIgnoredPropertyOfUnusedType ? "object" : property.
PropertyType
.FullyQualifiedName;
657
TypeRef? nullableUnderlyingType = _typeIndex[property.
PropertyType
].NullableUnderlyingType;
903
string propertyTypeFQN = property.
PropertyType
.FullyQualifiedName;
1353
TypeGenerationSpec propertyTypeSpec = _typeIndex[propertyGenSpec.
PropertyType
];
1383
writer.WriteLine($"{propertyGenSpec.
PropertyType
.FullyQualifiedName} {localVariableName} = {rawValueExpr};");
1408
writer.WriteLine($"if (!{EqualityComparerTypeRef}<{propertyGenSpec.
PropertyType
.FullyQualifiedName}>.Default.Equals(default, {propValueExpr}))");
1665
JsonIgnoreCondition.WhenWritingNull => propertySpec.
PropertyType
.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None,
1666
JsonIgnoreCondition.WhenWritingDefault => propertySpec.
PropertyType
.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault,
JsonSourceGenerator.Parser.cs (2)
1769
ParameterType = property.
PropertyType
,
1773
IsNullable = property.
PropertyType
.CanBeNull && !property.IsSetterNonNullableAnnotation,
Model\TypeGenerationSpec.cs (1)
135
if (property.
PropertyType
.SpecialType is SpecialType.System_Object ||