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