return self._transitive_deps_by_target
// Sort from least to most dependent.
sorted_targets = reversed(InternalTarget.sort_targets(self._context.targets()))
transitive_deps_by_target = defaultdict(set)
// Iterate in dep order, to accumulate the transitive deps for each target.
for target in sorted_targets:
After Change
and injected deps are taken into account.
if self._transitive_deps_by_target is None:
return self._compute_transitive_deps_by_target()
else:
return self._transitive_deps_by_target
def _compute_transitive_deps_by_target(self):