15 references to ValueVarName
System.Text.Json.SourceGeneration (15)
JsonSourceGenerator.Emitter.cs (15)
359
string addFuncNamedArg = $"(collection, {
ValueVarName
}) => collection.{addMethod}({
ValueVarName
})";
427
writer.WriteLine($"for (int i = 0; i < {
ValueVarName
}.Length; i++)");
428
getCurrentElementExpr = $"{
ValueVarName
}[i]";
433
writer.WriteLine($"foreach ({valueTypeGenerationSpec.TypeRef.FullyQualifiedName} {elementVarName} in {
ValueVarName
}.Span)");
440
writer.WriteLine($"for (int i = 0; i < {
ValueVarName
}.Count; i++)");
441
getCurrentElementExpr = $"{
ValueVarName
}[i]";
445
writer.WriteLine($"foreach ({valueTypeGenerationSpec.TypeRef.FullyQualifiedName} {elementVarName} in {
ValueVarName
})");
478
writer.WriteLine($"foreach ({KeyValuePairTypeRef}<{keyType.FullyQualifiedName}, {valueTypeGenerationSpec.TypeRef.FullyQualifiedName}> entry in {
ValueVarName
})");
793
writer.WriteLine($"((global::{JsonConstants.IJsonOnSerializingFullName}){
ValueVarName
}).OnSerializing();");
831
? $"(({propertyGenSpec.DeclaringType.FullyQualifiedName}){
ValueVarName
})"
832
:
ValueVarName
;
897
writer.WriteLine($"((global::{JsonConstants.IJsonOnSerializedFullName}){
ValueVarName
}).OnSerialized();");
977
private void {{methodName}}({{Utf8JsonWriterTypeRef}} {{WriterVarName}}, {{valueTypeRef}} {{
ValueVarName
}})
986
if ({{
ValueVarName
}} is null)