target_set = OrderedSet()
for target in self._target_roots:
target_set.update(target.closure())
return filter(predicate, target_set)
def dependents(self, on_predicate=None, from_predicate=None):
Returns a map from targets that satisfy the from_predicate to targets they depend on that
After Change
:return: a list of targets evaluated by the predicate in inorder traversal order.
target_root_addresses = [target.addressfor target in self._target_roots]
target_set = self.build_graph.transitive_subgraph_of_addresses(target_root_addresses)
return filter(predicate, target_set)