14 references to SerializedValueCheckType
System.Text.Json.SourceGeneration (14)
JsonSourceGenerator.Emitter.cs (14)
839SerializedValueCheckType defaultCheckType = GetCheckType(contextSpec, propertyGenSpec); 848if (defaultCheckType != SerializedValueCheckType.None) 862case SerializedValueCheckType.Ignore: 865case SerializedValueCheckType.IgnoreWhenNull: 876case SerializedValueCheckType.IgnoreWhenDefault: 887case SerializedValueCheckType.DisallowNull: 1075private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec) 1079JsonIgnoreCondition.WhenWriting => SerializedValueCheckType.Ignore, 1080JsonIgnoreCondition.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None, 1081JsonIgnoreCondition.WhenWritingDefault => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault, 1082_ when propertySpec.IsGetterNonNullableAnnotation && contextSpec.GeneratedOptionsSpec?.RespectNullableAnnotations is true => SerializedValueCheckType.DisallowNull, 1083_ => SerializedValueCheckType.None,