4 references to HasAttribute
ILLink.RoslynAnalyzer (4)
COMAnalyzer.cs (1)
42 if (!targetMethod.HasAttribute (DllImportAttribute))
RequiresAnalyzerBase.cs (2)
54 if (methodSymbol.IsStaticConstructor () && methodSymbol.HasAttribute (RequiresAttributeName)) 244 string message = MessageFormat.FormatRequiresAttributeMismatch (member.HasAttribute (RequiresAttributeName), isInterface, RequiresAttributeName, member.GetDisplayName (), baseMember.GetDisplayName ());
RequiresUnreferencedCodeAnalyzer.cs (1)
32 if (symbolAnalysisContext.Symbol is INamedTypeSymbol typeSymbol && !typeSymbol.HasAttribute (RequiresUnreferencedCodeAttribute)