14 references to SerializedValueCheckType
System.Text.Json.SourceGeneration (14)
JsonSourceGenerator.Emitter.cs (14)
850SerializedValueCheckType defaultCheckType = GetCheckType(contextSpec, propertyGenSpec); 859if (defaultCheckType != SerializedValueCheckType.None) 873case SerializedValueCheckType.Ignore: 876case SerializedValueCheckType.IgnoreWhenNull: 887case SerializedValueCheckType.IgnoreWhenDefault: 898case SerializedValueCheckType.DisallowNull: 1126private static SerializedValueCheckType GetCheckType(ContextGenerationSpec contextSpec, PropertyGenerationSpec propertySpec) 1130JsonIgnoreCondition.WhenWriting => SerializedValueCheckType.Ignore, 1131JsonIgnoreCondition.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None, 1132JsonIgnoreCondition.WhenWritingDefault => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault, 1133_ when propertySpec.IsGetterNonNullableAnnotation && contextSpec.GeneratedOptionsSpec?.RespectNullableAnnotations is true => SerializedValueCheckType.DisallowNull, 1134_ => SerializedValueCheckType.None,