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