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)
55Debug.Assert(_contextClassLocation != null); 60location = _contextClassLocation; 90Debug.Assert(_contextClassLocation is null); 96Debug.Assert(_contextClassLocation is not null); 100ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType, _contextClassLocation, contextTypeSymbol.ToDisplayString()); 122ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion, _contextClassLocation, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString()); 129ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial, _contextClassLocation, contextTypeSymbol.Name); 647ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ?? _contextClassLocation, typeInfoPropertyName);