1 write to HasDefaultValue
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1489HasDefaultValue = parameterInfo.HasExplicitDefaultValue,
2 references to HasDefaultValue
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (2)
735HasDefaultValue = {{FormatBoolLiteral(spec.HasDefaultValue)}}, 736DefaultValue = {{(spec.HasDefaultValue ? CSharpSyntaxUtilities.FormatLiteral(spec.DefaultValue, spec.ParameterType) : "null")}},