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