1 write to InferClosedTypePolymorphism
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
623InferClosedTypePolymorphism = inferClosedTypePolymorphism,
5 references to InferClosedTypePolymorphism
System.Text.Json.SourceGeneration (5)
JsonSourceGenerator.Emitter.cs (1)
2113if (optionsSpec.InferClosedTypePolymorphism is bool inferClosedTypePolymorphism)
JsonSourceGenerator.Parser.cs (3)
919options?.InferClosedTypePolymorphism is not true && 1127options?.InferClosedTypePolymorphism is true && !hasExplicitDerivedTypeAttribute; 1129options?.InferClosedTypePolymorphism is not true &&
Model\TypeGenerationSpec.cs (1)
58/// (because <see cref="SourceGenerationOptionsSpec.InferClosedTypePolymorphism"/> was not enabled).