19 references to FormatBoolLiteral
System.Text.Json.SourceGeneration (19)
JsonSourceGenerator.Emitter.cs (19)
787IsProperty = {{FormatBoolLiteral(property.IsProperty)}}, 788IsPublic = {{FormatBoolLiteral(property.IsPublic)}}, 789IsVirtual = {{FormatBoolLiteral(property.IsVirtual)}}, 795HasJsonInclude = {{FormatBoolLiteral(property.HasJsonInclude)}}, 796IsExtensionData = {{FormatBoolLiteral(property.IsExtensionData)}}, 1386HasDefaultValue = {{FormatBoolLiteral(spec.HasDefaultValue)}}, 1388IsNullable = {{FormatBoolLiteral(spec.IsNullable)}}, 1411IsNullable = {{FormatBoolLiteral(spec.IsNullable)}}, 1904writer.WriteLine($"AllowDuplicateProperties = {FormatBoolLiteral(allowDuplicateProperties)},"); 1907writer.WriteLine($"AllowOutOfOrderMetadataProperties = {FormatBoolLiteral(allowOutOfOrderMetadataProperties)},"); 1910writer.WriteLine($"AllowTrailingCommas = {FormatBoolLiteral(allowTrailingCommas)},"); 1952writer.WriteLine($"RespectNullableAnnotations = {FormatBoolLiteral(respectNullableAnnotations)},"); 1955writer.WriteLine($"RespectRequiredConstructorParameters = {FormatBoolLiteral(respectRequiredConstructorParameters)},"); 1958writer.WriteLine($"IgnoreReadOnlyFields = {FormatBoolLiteral(ignoreReadOnlyFields)},"); 1961writer.WriteLine($"IgnoreReadOnlyProperties = {FormatBoolLiteral(ignoreReadOnlyProperties)},"); 1964writer.WriteLine($"IncludeFields = {FormatBoolLiteral(includeFields)},"); 1979writer.WriteLine($"PropertyNameCaseInsensitive = {FormatBoolLiteral(propertyNameCaseInsensitive)},"); 1997writer.WriteLine($"WriteIndented = {FormatBoolLiteral(writeIndented)},"); 2195source.AppendLine($" IgnoreUnrecognizedTypeDiscriminators = {FormatBoolLiteral(options.IgnoreUnrecognizedTypeDiscriminators)},");