

def _register_target_macro_factory_alias(self, alias, target_macro_factory):
    if (alias in self._target_macro_factory_by_alias):
        logger.debug('TargetMacro alias {} has already been registered. Overwriting!'.format(alias))
    target_type._target_macro_factory_by_alias[alias] = target_macro_factory
    for target_type in target_macro_factory.target_types:
        self._subsystems.update(target_type.subsystems())

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/build_graph/build_configuration.py BuildConfiguration._register_target_macro_factory_alias/VarMisuse@38/73 `self`->`target_type`