17 references to WriterVarName
System.Text.Json.SourceGeneration (17)
JsonSourceGenerator.Emitter.cs (17)
419writer.WriteLine($"{WriterVarName}.WriteStartArray();"); 459writer.WriteLine($"{WriterVarName}.WriteEndArray();"); 475writer.WriteLine($"{WriterVarName}.WriteStartObject();"); 488writer.WriteLine($"{WriterVarName}.WriteEndObject();"); 797writer.WriteLine($"{WriterVarName}.WriteStartObject();"); 892writer.WriteLine($"{WriterVarName}.WriteEndObject();"); 977private void {{methodName}}({{Utf8JsonWriterTypeRef}} {{WriterVarName}}, {{valueTypeRef}} {{ValueVarName}}) 988{{WriterVarName}}.WriteNullValue(); 1002writer.WriteLine($"{WriterVarName}.{primitiveWriterMethod}Value({valueExpr}.ToString());"); 1006writer.WriteLine($"{WriterVarName}.{primitiveWriterMethod}Value({valueExpr});"); 1013writer.WriteLine($"{typeSpec.TypeInfoPropertyName}{SerializeHandlerPropName}({WriterVarName}, {valueExpr});"); 1017writer.WriteLine($"{JsonSerializerTypeRef}.Serialize({WriterVarName}, {valueExpr}, {typeSpec.TypeInfoPropertyName});"); 1028writer.WriteLine($"{WriterVarName}.{primitiveWriterMethod}({propertyNameExpr}, {valueExpr}.ToString());"); 1032writer.WriteLine($"{WriterVarName}.{primitiveWriterMethod}({propertyNameExpr}, {valueExpr});"); 1037writer.WriteLine($"{WriterVarName}.WritePropertyName({propertyNameExpr});"); 1041writer.WriteLine($"{typeSpec.TypeInfoPropertyName}{SerializeHandlerPropName}({WriterVarName}, {valueExpr});"); 1045writer.WriteLine($"{JsonSerializerTypeRef}.Serialize({WriterVarName}, {valueExpr}, {typeSpec.TypeInfoPropertyName});");