1 write to Name
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
18
Name
= type.Name;
10 references to Name
System.Text.Json.SourceGeneration (10)
JsonSourceGenerator.Emitter.cs (6)
116
AddSource($"{contextGenerationSpec.ContextType.
Name
}.{typeGenerationSpec.TypeInfoPropertyName}.g.cs", sourceText);
120
string contextName = contextGenerationSpec.ContextType.
Name
;
622
=> $"""static _ => throw new {InvalidOperationExceptionTypeRef}("{string.Format(ExceptionMessages.InaccessibleJsonIncludePropertiesNotSupported, typeGenerationSpec.TypeRef.
Name
, propertyName)}")""",
636
=> $"""static (obj, value) => throw new {InvalidOperationExceptionTypeRef}("{string.Format(ExceptionMessages.InaccessibleJsonIncludePropertiesNotSupported, typeGenerationSpec.TypeRef.
Name
, property.MemberName)}")""",
909
throw new {{JsonExceptionTypeRef}}(string.Format("{{ExceptionMessages.PropertyGetterDisallowNull}}", propertyName, {{FormatStringLiteral(typeGenSpec.TypeRef.
Name
)}}));
1119
string contextTypeName = contextSpec.ContextType.
Name
;
JsonSourceGenerator.Parser.cs (4)
1159
ReportDiagnostic(DiagnosticDescriptors.InaccessibleJsonIncludePropertiesNotSupported, memberInfo.GetLocation(), declaringType.
Name
, memberInfo.Name);
1166
ReportDiagnostic(DiagnosticDescriptors.MultipleJsonExtensionDataAttribute, typeLocation, declaringType.
Name
);
1171
ReportDiagnostic(DiagnosticDescriptors.DataExtensionPropertyInvalid, memberInfo.GetLocation(), declaringType.
Name
, memberInfo.Name);
1191
ReportDiagnostic(DiagnosticDescriptors.TypeContainsRefLikeMember, memberInfo.GetLocation(), declaringType.
Name
, memberInfo.Name);