3 writes to _contextClassLocation
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
95
_contextClassLocation
= contextTypeSymbol.GetLocation();
109
_contextClassLocation
= null;
174
_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());
131
ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion,
_contextClassLocation
, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString());
138
ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial,
_contextClassLocation
, contextTypeSymbol.Name);
710
ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ??
_contextClassLocation
, typeInfoPropertyName);