3 references to ReportDiagnostic
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
100
ReportDiagnostic
(DiagnosticDescriptors.JsonSerializableAttributeOnNonContextType, _contextClassLocation, contextTypeSymbol.ToDisplayString());
122
ReportDiagnostic
(DiagnosticDescriptors.JsonUnsupportedLanguageVersion, _contextClassLocation, langVersion?.ToDisplayString(), MinimumSupportedLanguageVersion.ToDisplayString());
129
ReportDiagnostic
(DiagnosticDescriptors.ContextClassesMustBePartial, _contextClassLocation, contextTypeSymbol.Name);