12 references to SerializedValueCheckType
System.Text.Json.SourceGeneration (12)
JsonSourceGenerator.Emitter.cs (12)
826SerializedValueCheckType defaultCheckType = GetCheckType(contextSpec, propertyGenSpec); 835if (defaultCheckType != SerializedValueCheckType.None) 849case SerializedValueCheckType.IgnoreWhenNull: 860case SerializedValueCheckType.IgnoreWhenDefault: 871case SerializedValueCheckType.DisallowNull: 1058private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec) 1062JsonIgnoreCondition.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None, 1063JsonIgnoreCondition.WhenWritingDefault => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault, 1064_ when propertySpec.IsGetterNonNullableAnnotation && contextSpec.GeneratedOptionsSpec?.RespectNullableAnnotations is true => SerializedValueCheckType.DisallowNull, 1065_ => SerializedValueCheckType.None,