1 write to IsNullable
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
752
IsNullable
= acceptsNull,
2 references to IsNullable
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (2)
621
UnionCaseSpec? nullCase = unionCases.FirstOrDefault(c => c.
IsNullable
);
625
: $$"""new {{JsonUnionCaseInfoTypeRef}}[] { {{string.Join(", ", unionCases.Select(c => $"new {JsonUnionCaseInfoTypeRef}(typeof({c.CaseType.FullyQualifiedName})) {{ IsNullable = {(c.
IsNullable
? "true" : "false")} }}"))}} }""";