3 writes to _contextClassLocation
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
104
_contextClassLocation
= contextTypeSymbol.GetLocation();
118
_contextClassLocation
= null;
183
_contextClassLocation
= null;
8 references to _contextClassLocation
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Parser.cs (8)
64
Debug.Assert(
_contextClassLocation
!= null);
69
location =
_contextClassLocation
;
99
Debug.Assert(
_contextClassLocation
is null);
105
Debug.Assert(
_contextClassLocation
is not null);
109
ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType,
_contextClassLocation
, contextTypeSymbol.ToDisplayString());
140
ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion,
_contextClassLocation
, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString());
147
ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial,
_contextClassLocation
, contextTypeSymbol.Name);
723
ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ??
_contextClassLocation
, typeInfoPropertyName);