

def link_refs(self, dbfunctions, langs):
    'Connect functions to their respective languages\n\n        :param dbfunctions: dictionary of functions\n\n        Fills in the `functions` dictionary for each language by\n        traversing the `dbfunctions` dictionary, which is keyed by\n        schema and function name.\n        '
    for (sch, fnc, arg) in dbfunctions:
        func = dbfunctions[(sch, fnc, arg)]
        if (func.language in ['sql', 'c', 'internal']):
            continue
        try:
            language = self[func.language]
        except KeyError as exc:
            if (func.language in langs):
                continue
            raise exc
        if isinstance(func, Function):
            if (not hasattr(language, 'functions')):
                language.functions = {
                    
                }
            language.functions.update({
                fnc: func,
            })

dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/language.py LanguageDict.link_refs/original