1 write to DeclaringType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1228DeclaringType = declaringType,
6 references to DeclaringType
System.Text.Json.SourceGeneration (6)
JsonSourceGenerator.Emitter.cs (6)
614string declaringTypeFQN = property.DeclaringType.FullyQualifiedName; 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})"; 666DeclaringType = typeof({{property.DeclaringType.FullyQualifiedName}}), 830string? objectExpr = propertyGenSpec.DeclaringType != typeGenSpec.TypeRef 831? $"(({propertyGenSpec.DeclaringType.FullyQualifiedName}){ValueVarName})"