Skip to content

Commit 498a8c9

Browse files
committed
Use other API for attribute types
1 parent f93ad20 commit 498a8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/Generic/RuleSuppression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public static List<RuleSuppression> GetSuppressions(IEnumerable<AttributeAst> at
308308
}
309309

310310
IEnumerable<AttributeAst> suppressionAttribute = attrAsts.Where(
311-
item => item.TypeName.GetReflectionType() == typeof(System.Diagnostics.CodeAnalysis.SuppressMessageAttribute));
311+
item => item.TypeName.GetReflectionAttributeType() == typeof(System.Diagnostics.CodeAnalysis.SuppressMessageAttribute));
312312

313313
foreach (var attributeAst in suppressionAttribute)
314314
{

0 commit comments

Comments
 (0)