1 write to HasJsonInclude
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1399HasJsonInclude = hasJsonInclude && !hasJsonIncludeButIsInaccessible,
5 references to HasJsonInclude
System.Text.Json.SourceGeneration (5)
JsonSourceGenerator.Emitter.cs (3)
683HasJsonInclude = {{FormatBoolLiteral(property.HasJsonInclude)}}, 732=> !property.CanUseGetter && property.HasJsonInclude && property.DefaultIgnoreCondition is not JsonIgnoreCondition.Always; 752if (!property.CanUseSetter && property.HasJsonInclude)
Model\PropertyGenerationSpec.cs (2)
202if (!CanUseGetter && !HasJsonInclude) 208if (!IsProperty && !HasJsonInclude && contextSpec.GeneratedOptionsSpec?.IncludeFields != true)