2 writes to _contextClassLocation
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
95
_contextClassLocation
= contextTypeSymbol.GetLocation();
165
_contextClassLocation
= null;
8 references to _contextClassLocation
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Parser.cs (8)
55
Debug.Assert(
_contextClassLocation
!= null);
60
location =
_contextClassLocation
;
90
Debug.Assert(
_contextClassLocation
is null);
96
Debug.Assert(
_contextClassLocation
is not null);
100
ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType,
_contextClassLocation
, contextTypeSymbol.ToDisplayString());
122
ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion,
_contextClassLocation
, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString());
129
ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial,
_contextClassLocation
, contextTypeSymbol.Name);
647
ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ??
_contextClassLocation
, typeInfoPropertyName);