3 writes to _contextClassLocation
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
107_contextClassLocation = contextTypeSymbol.GetLocation(); 121_contextClassLocation = null; 186_contextClassLocation = null;
8 references to _contextClassLocation
System.Text.Json.SourceGeneration (8)
JsonSourceGenerator.Parser.cs (8)
67Debug.Assert(_contextClassLocation != null); 72location = _contextClassLocation; 102Debug.Assert(_contextClassLocation is null); 108Debug.Assert(_contextClassLocation is not null); 112ReportDiagnostic(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType, _contextClassLocation, contextTypeSymbol.ToDisplayString()); 143ReportDiagnostic(DiagnosticDescriptors.JsonUnsupportedLanguageVersion, _contextClassLocation, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString()); 150ReportDiagnostic(DiagnosticDescriptors.ContextClassesMustBePartial, _contextClassLocation, contextTypeSymbol.Name); 800ReportDiagnostic(DiagnosticDescriptors.DuplicateTypeName, typeToGenerate.AttributeLocation ?? _contextClassLocation, typeInfoPropertyName);