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)
70Debug.Assert(_contextClassLocation != null); 75location = _contextClassLocation; 106Debug.Assert(_contextClassLocation is null); 112Debug.Assert(_contextClassLocation is not null); 116ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType, _contextClassLocation, contextTypeSymbol.ToDisplayString()); 147ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion, _contextClassLocation, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString()); 154ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial, _contextClassLocation, contextTypeSymbol.Name); 917ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ?? _contextClassLocation, typeInfoPropertyName);