3 writes to _contextClassLocation
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
107
_contextClassLocation
= contextTypeSymbol.GetLocation();
121
_contextClassLocation
= null;
186
_contextClassLocation
= null;
8 references to _contextClassLocation
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Parser.cs (8)
67
Debug.Assert(
_contextClassLocation
!= null);
72
location =
_contextClassLocation
;
102
Debug.Assert(
_contextClassLocation
is null);
108
Debug.Assert(
_contextClassLocation
is not null);
112
ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType,
_contextClassLocation
, contextTypeSymbol.ToDisplayString());
143
ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion,
_contextClassLocation
, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString());
150
ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial,
_contextClassLocation
, contextTypeSymbol.Name);
800
ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ??
_contextClassLocation
, typeInfoPropertyName);