
- 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.
26 lines
636 B
Ruby
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
|