module RuboCop::Cop::RescueNode
def investigate(processed_source)
def investigate(processed_source) @modifier_locations = processed_source .tokens .select { |t| t.type == :kRESCUE_MOD } .map(&:pos) end
def rescue_modifier?(node)
def rescue_modifier?(node) node && node.resbody_type? && @modifier_locations.include?(node.loc.keyword) end