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