

def register_aliases(self, aliases):
    'Registers the given aliases to be exposed in parsed BUILD files.\n\n    :param aliases: The BuildFileAliases to register.\n    :type aliases: :class:`pants.build_graph.build_file_aliases.BuildFileAliases`\n    '
    if (not isinstance(aliases, BuildFileAliases)):
        raise TypeError('The aliases must be a BuildFileAliases, given {}'.format(aliases))
    for (alias, target_type) in aliases.target_types.items():
        self._register_target_alias(alias, target_type)
    for (alias, target_macro_factory) in aliases.target_macro_factories.items():
        self._register_target_macro_factory_alias(alias, target_macro_factory)
    for (alias, obj) in aliases.objects.items():
        self._register_exposed_object(alias, obj)
    for (alias, context_aware_object_factory) in aliases.context_aware_object_factories.items():
        self._register_exposed_context_aware_object_factory(alias, context_aware_object_factory)

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/build_graph/build_configuration.py BuildConfiguration.register_aliases/original