module Cucumber::Core::Ast::HasLocation

def match_locations?(queried_locations)

def match_locations?(queried_locations)
  return true if attributes.any? { |node| node.match_locations? queried_locations }
  queried_locations.any? { |queried_location| queried_location.match? location }
end