8 references to FormatStringLiteral
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Emitter.cs (8)
657? $"typeof({property.DeclaringType.FullyQualifiedName}).GetProperty({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName}, null, typeof({property.PropertyType.FullyQualifiedName}), {EmptyTypeArray}, null)" 658: $"typeof({property.DeclaringType.FullyQualifiedName}).GetField({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName})"; 674PropertyName = {{FormatStringLiteral(property.MemberName)}}, 675JsonPropertyName = {{FormatStringLiteral(property.JsonPropertyName)}}, 757Name = {{FormatStringLiteral(spec.Name)}}, 875ThrowPropertyNullException({{FormatStringLiteral(propertyGenSpec.EffectiveJsonPropertyName)}}); 1235writer.WriteLine($"NewLine = {FormatStringLiteral(newLine)},"); 1427writer.WriteLine($$"""private static readonly {{JsonEncodedTextTypeRef}} {{name_varName_pair.Value}} = {{JsonEncodedTextTypeRef}}.Encode({{FormatStringLiteral(name_varName_pair.Key)}});""");