if node.product is not LegacyTarget:
continue
if type(node) is not TaskNode:
continue
// We have a successfully parsed LegacyTarget, which includes its declared dependencies.
address = state.value.adaptor.address
all_addresses.add(address)
if address not in self._target_by_address:
new_targets.append(self._index_target(state.value))
After Change
"Build graph construction failed for {}:\n{}".format(node, trace))
elif type(state) is not Return:
State.raise_unrecognized(state)
if type(state.value) is not HydratedTargets:
raise TypeError("Expected roots to hold {}; got: {}".format(
HydratedTargets, type(state.value)))