14 references to SerializedValueCheckType
System.Text.Json.SourceGeneration (14)
JsonSourceGenerator.Emitter.cs (14)
826SerializedValueCheckType defaultCheckType = GetCheckType(contextSpec, propertyGenSpec); 835if (defaultCheckType != SerializedValueCheckType.None) 849case SerializedValueCheckType.Ignore: 852case SerializedValueCheckType.IgnoreWhenNull: 863case SerializedValueCheckType.IgnoreWhenDefault: 874case SerializedValueCheckType.DisallowNull: 1062private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec) 1066JsonIgnoreCondition.WhenWriting => SerializedValueCheckType.Ignore, 1067JsonIgnoreCondition.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None, 1068JsonIgnoreCondition.WhenWritingDefault => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault, 1069_ when propertySpec.IsGetterNonNullableAnnotation && contextSpec.GeneratedOptionsSpec?.RespectNullableAnnotations is true => SerializedValueCheckType.DisallowNull, 1070_ => SerializedValueCheckType.None,