isDeclarationIgnoredFor static method

bool isDeclarationIgnoredFor(
  1. AstNode node, {
  2. required String toolName,
})

Static helper to check declaration-level suppression for a given toolName.

Implementation

static bool isDeclarationIgnoredFor(
  AstNode node, {
  required String toolName,
}) => CommentDirectiveParser(toolName).isDeclarationIgnored(node);