3 overrides of RequiresAttributeName
ILLink.RoslynAnalyzer (3)
RequiresAssemblyFilesAnalyzer.cs (1)
37
private protected override string
RequiresAttributeName
=> RequiresAssemblyFilesAttribute;
RequiresDynamicCodeAnalyzer.cs (1)
29
private protected override string
RequiresAttributeName
=> RequiresDynamicCodeAttribute;
RequiresUnreferencedCodeAnalyzer.cs (1)
50
private protected override string
RequiresAttributeName
=> RequiresUnreferencedCodeAttribute;
11 references to RequiresAttributeName
ILLink.RoslynAnalyzer (11)
RequiresAnalyzerBase.cs (11)
54
if (methodSymbol.IsStaticConstructor () && methodSymbol.HasAttribute (
RequiresAttributeName
))
66
if (syntaxNodeAnalysisContext.ContainingSymbol is not ISymbol containingSymbol || containingSymbol.IsInRequiresScope (
RequiresAttributeName
, out _))
98
if (instanceCtor.DoesMemberRequire (
RequiresAttributeName
, out var requiresAttribute) &&
157
if (containingSymbol.IsInRequiresScope (
RequiresAttributeName
, out _))
167
if (!member.DoesMemberRequire (
RequiresAttributeName
, out var requiresAttribute))
244
string message = MessageFormat.FormatRequiresAttributeMismatch (member.HasAttribute (
RequiresAttributeName
), isInterface,
RequiresAttributeName
, member.GetDisplayName (), baseMember.GetDisplayName ());
253
bool member1CreatesRequirement = member1.DoesMemberRequire (
RequiresAttributeName
, out _);
254
bool member2CreatesRequirement = member2.DoesMemberRequire (
RequiresAttributeName
, out _);
255
bool member1FulfillsRequirement = member1.IsInRequiresScope (
RequiresAttributeName
);
256
bool member2FulfillsRequirement = member2.IsInRequiresScope (
RequiresAttributeName
);