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