1 write to DeclaringType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1253DeclaringType = declaringType,
6 references to DeclaringType
System.Text.Json.SourceGeneration (6)
JsonSourceGenerator.Emitter.cs (6)
614string declaringTypeFQN = property.DeclaringType.FullyQualifiedName; 669{ IsProperty: true } => $"typeof({property.DeclaringType.FullyQualifiedName}).GetProperty({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName}, null, typeof({propertyTypeFQN}), {EmptyTypeArray}, null)", 670_ => $"typeof({property.DeclaringType.FullyQualifiedName}).GetField({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName})", 679DeclaringType = typeof({{property.DeclaringType.FullyQualifiedName}}), 843string? objectExpr = propertyGenSpec.DeclaringType != typeGenSpec.TypeRef 844? $"(({propertyGenSpec.DeclaringType.FullyQualifiedName}){ValueVarName})"