14 references to SerializedValueCheckType
System.Text.Json.SourceGeneration (14)
JsonSourceGenerator.Emitter.cs (14)
1550SerializedValueCheckType defaultCheckType = GetCheckType(contextSpec, propertyGenSpec); 1562if (defaultCheckType != SerializedValueCheckType.None) 1576case SerializedValueCheckType.Ignore: 1579case SerializedValueCheckType.IgnoreWhenNull: 1590case SerializedValueCheckType.IgnoreWhenDefault: 1601case SerializedValueCheckType.DisallowNull: 1841private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec) 1845JsonIgnoreCondition.WhenWriting => SerializedValueCheckType.Ignore, 1846JsonIgnoreCondition.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None, 1847JsonIgnoreCondition.WhenWritingDefault => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault, 1848_ when propertySpec.IsGetterNonNullableAnnotation && contextSpec.GeneratedOptionsSpec?.RespectNullableAnnotations is true => SerializedValueCheckType.DisallowNull, 1849_ => SerializedValueCheckType.None,