Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 498a8c9

Browse files
committedJul 23, 2021
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

+1-1
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)
Please sign in to comment.