

def link_references(self, progress_monitor=NullProgressMonitor(), local_object_id=None):
    ann_refs = self._get_query(self.ann_kind, local_object_id)
    acount = ann_refs.count()
    progress_monitor.info('Annotation count: {0}'.format(acount))
    try:
        self._link_annotations(queryset_iterator(ann_refs), acount, progress_monitor)
    except Exception:
        logger.exception('Error while processing annotations.')
    call_gc()
    enum_refs = self._get_query(self.enum_kind, local_object_id)
    ecount = enum_refs.count()
    progress_monitor.info('Enumeration count: {0}'.format(ecount))
    try:
        self._link_enumerations(queryset_iterator(enum_refs), ecount, progress_monitor)
    except Exception:
        logger.exception('Error while processing enumerations.')
    call_gc()
    class_refs = self._get_query(self.class_kind, local_object_id)
    ccount = class_refs.count()
    progress_monitor.info('Class count: {0}'.format(ccount))
    try:
        self._link_classes(queryset_iterator(class_refs), ccount, local_object_id)
    except Exception:
        logger.exception('Error while processing classes.')
    call_gc()

dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/codebase/linker/java_linkers.py JavaClassLinker.link_references/VarMisuse@206/342 `progress_monitor`->`local_object_id`