Skip to content

Commit

Permalink
Merge pull request #3000 from sharwell/rm-suppression
Browse files Browse the repository at this point in the history
Use code instead of pragma to document unused parameter
  • Loading branch information
sharwell authored Sep 3, 2019
2 parents d846215 + bbd5142 commit 1b968a5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,13 @@ internal static Accessibility GetDeclaredAccessibility(this BaseFieldDeclaration
return declaredSymbol?.DeclaredAccessibility ?? Accessibility.NotApplicable;
}

#pragma warning disable IDE0060 // Remove unused parameter - false positive
internal static Accessibility GetDeclaredAccessibility(this EnumMemberDeclarationSyntax syntax)
{
// Intentionally unused
_ = syntax;

return Accessibility.Public;
}
#pragma warning restore IDE0060 // Remove unused parameter

internal static Accessibility GetDeclaredAccessibility(this DelegateDeclarationSyntax syntax, SemanticModel semanticModel, CancellationToken cancellationToken)
{
Expand Down

0 comments on commit 1b968a5

Please sign in to comment.