def _get_target_type_info(self):
for alias, target_type in self._buildfile_aliases.target_types.items():
yield BuildSymbolInfo(alias,
self.get_description_from_docstring(target_type) or self.ADD_DESCR,
self.get_target_args(alias))
for alias, target_macro_factory in self._buildfile_aliases.target_macro_factories.items():
// Take the description from the first target type we encounter that has one.
After Change
def _get_target_type_info(self):
for alias, target_type in self._buildfile_aliases.target_types.items():
description, details = self.get_description_from_docstring(target_type)
description = description or self.ADD_DESCR
yield BuildSymbolInfo(alias, description, details, self.get_target_args(alias))
for alias, target_macro_factory in self._buildfile_aliases.target_macro_factories.items():
// Take the description from the first target type we encounter that has one.