class RuboCop::Cop::Performance::Count
def on_send(node)
def on_send(node) count_candidate?(node) do |selector_node, selector, counter| return unless eligible_node?(node) range = source_starting_at(node) do selector_node.loc.selector.begin_pos end add_offense(range, message: format(MSG, selector: selector, counter: counter)) do |corrector| autocorrect(corrector, node, selector_node, selector) end end end