2 references to RequiresAttributeOnMethod
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
49
if (
RequiresAttributeOnMethod
&& (requiredAttributeType = GetRequiredAttributeType(compilationStartAnalysisContext.Compilation)) == null)
65
if (
RequiresAttributeOnMethod
&& !method.HasAnyAttribute(requiredAttributeType))