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