25 references to DiagnosticDescriptors
Microsoft.Extensions.Logging.Generators (25)
LoggerMessageGenerator.Parser.cs (25)
63Diag(DiagnosticDescriptors.MissingRequiredType, null, "System.Exception");
256Diag(DiagnosticDescriptors.MalformedFormatStrings, method.Identifier.GetLocation(), method.Identifier.ToString());
264Diag(DiagnosticDescriptors.InvalidLoggingMethodName, method.Identifier.GetLocation());
271Diag(DiagnosticDescriptors.LoggingMethodMustReturnVoid, method.ReturnType.GetLocation());
278Diag(DiagnosticDescriptors.LoggingMethodIsGeneric, method.Identifier.GetLocation());
298Diag(DiagnosticDescriptors.LoggingMethodMustBePartial, method.GetLocation());
305Diag(DiagnosticDescriptors.LoggingMethodHasBody, methodBody.GetLocation());
313Diag(DiagnosticDescriptors.ShouldntReuseEventIds, ma.GetLocation(), lm.EventId, classDec.Identifier.Text);
319Diag(DiagnosticDescriptors.ShouldntReuseEventNames, ma.GetLocation(), lm.EventName, classDec.Identifier.Text);
330Diag(DiagnosticDescriptors.RedundantQualifierInMessage, ma.GetLocation(), method.Identifier.ToString());
374Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterOut, paramSymbol.Locations[0], paramName);
402Diag(DiagnosticDescriptors.ShouldntMentionLoggerInMessage, paramSymbol.Locations[0], paramName);
407Diag(DiagnosticDescriptors.ShouldntMentionExceptionInMessage, paramSymbol.Locations[0], paramName);
412Diag(DiagnosticDescriptors.ShouldntMentionLogLevelInMessage, paramSymbol.Locations[0], paramName);
417Diag(DiagnosticDescriptors.ArgumentHasNoCorrespondingTemplate, paramSymbol.Locations[0], paramName);
421Diag(DiagnosticDescriptors.ArgumentHasNoCorrespondingTemplate, paramSymbol.Locations[0], paramName);
428Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterName, paramSymbol.Locations[0]);
442Diag(DiagnosticDescriptors.MissingLoggerArgument, method.GetLocation(), lm.Name);
447Diag(DiagnosticDescriptors.LoggingMethodShouldBeStatic, method.GetLocation());
458Diag(DiagnosticDescriptors.MultipleLoggerFields, method.GetLocation(), classDec.Identifier.Text);
463Diag(DiagnosticDescriptors.MissingLoggerField, method.GetLocation(), classDec.Identifier.Text);
474Diag(DiagnosticDescriptors.MissingLogLevel, method.GetLocation());
494Diag(DiagnosticDescriptors.TemplateHasNoCorrespondingArgument, ma.GetLocation(), t.Key);
597Diag(DiagnosticDescriptors.LoggingUnsupportedLanguageVersion, null, version.ToDisplayString(), LanguageVersion.CSharp8.ToDisplayString());
701Diag(DiagnosticDescriptors.PrimaryConstructorParameterLoggerHidden, parameter.Locations[0], classDec.Identifier.Text);