brew/Library/Homebrew/rubocops/cask/discontinued.rbi
Issy Long 06441f1337
Generic RuboCop::AST::Node for stanza method nodes
- These can be either BlockNode, SendNode or AsgnNode,
  which are all a type of Node.
- This causes errors in other places because we call
  BlockNode or SendNode methods on a Node now. Still TODO.
2025-01-25 22:20:08 +00:00

26 lines
636 B
Ruby

# typed: strict
module RuboCop
module Cop
module Cask
class Discontinued < Base
sig {
params(
base_node: RuboCop::AST::Node,
block: T.nilable(T.proc.params(node: RuboCop::AST::SendNode).void),
).returns(T::Boolean)
}
def caveats_contains_only_discontinued?(base_node, &block); end
sig {
params(
base_node: RuboCop::AST::Node,
block: T.proc.params(node: RuboCop::AST::SendNode).void,
).void
}
def find_discontinued_method_call(base_node, &block); end
end
end
end
end