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