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