3 writes to _contextClassLocation
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
111
_contextClassLocation
= contextTypeSymbol.GetLocation();
125
_contextClassLocation
= null;
194
_contextClassLocation
= null;
8 references to _contextClassLocation
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Parser.cs (8)
70
Debug.Assert(
_contextClassLocation
!= null);
75
location =
_contextClassLocation
;
106
Debug.Assert(
_contextClassLocation
is null);
112
Debug.Assert(
_contextClassLocation
is not null);
116
ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType,
_contextClassLocation
, contextTypeSymbol.ToDisplayString());
147
ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion,
_contextClassLocation
, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString());
154
ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial,
_contextClassLocation
, contextTypeSymbol.Name);
917
ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ??
_contextClassLocation
, typeInfoPropertyName);