23 references to DiagDescriptors
Microsoft.Extensions.Options.SourceGeneration (23)
Parser.cs (23)
64Diag(DiagDescriptors.CantBeStaticClass, syntax.GetLocation()); 74Diag(DiagDescriptors.DoesntImplementIValidateOptions, syntax.GetLocation(), validatorType.Name); 96Diag(DiagDescriptors.AlreadyImplementsValidateMethod, syntax.GetLocation(), validatorType.Name); 110Diag(DiagDescriptors.NoEligibleMembersFromValidator, syntax.GetLocation(), modelType.ToString(), validatorType.ToString()); 154Diag(DiagDescriptors.OptionsUnsupportedLanguageVersion, null, version.ToDisplayString(), LanguageVersion.CSharp8.ToDisplayString()); 305Diag(DiagDescriptors.MemberIsInaccessible, member.Locations.First(), member.Name); 359Diag(DiagDescriptors.CantUseWithGenericTypes, attrLoc, genericType); 379Diag(DiagDescriptors.ValidatorsNeedSimpleConstructor, attrLoc, transValidatorType.Name); 384Diag(DiagDescriptors.DoesntImplementIValidateOptions, attrLoc, transValidatorType.Name, memberType.Name); 389Diag(DiagDescriptors.NullValidatorType, attrLoc); 394Diag(DiagDescriptors.CircularTypeReferences, attrLoc, memberType.ToString()); 413Diag(DiagDescriptors.NotEnumerableType, attrLoc, memberType); 424Diag(DiagDescriptors.CantUseWithGenericTypes, attrLoc, genericType); 442Diag(DiagDescriptors.ValidatorsNeedSimpleConstructor, attrLoc, enumerationValidatorType.Name); 447Diag(DiagDescriptors.DoesntImplementIValidateOptions, attrLoc, enumerationValidatorType.Name, enumeratedType.Name); 452Diag(DiagDescriptors.NullValidatorType, attrLoc); 457Diag(DiagDescriptors.CircularTypeReferences, attrLoc, enumeratedType.ToString()); 475Diag(DiagDescriptors.InaccessibleValidationAttribute, location, attributeType.Name, member.OriginalDefinition.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat), validatorType.Name); 542Diag(DiagDescriptors.CantValidateStaticOrConstMember, location, member.Name); 557Diag(DiagDescriptors.PotentiallyMissingTransitiveValidation, location, memberType.Name, member.Name); 573Diag(DiagDescriptors.PotentiallyMissingEnumerableValidation, location, enumeratedType.Name, member.Name); 611Diag(DiagDescriptors.IncompatibleWithTypeForValidationAttribute, location, attributeType.Name, memberType.Name); 703Diag(DiagDescriptors.NoEligibleMember, location, mt.ToString(), member.ToString());