def __addParams(node, data):

    rel = getattr(node, "rel", None)
    if rel == "body" and node.parent.type == "function":
        # In expressed_form the function name belongs to the function body, not to the parent scope
        if node.parent.functionForm == "expressed_form":
            data.name = getattr(node.parent, "name", None)
        
        paramList = getattr(node.parent, "params", None)
        if paramList:
            for paramIdentifier in paramList:
                data.params.add(paramIdentifier.value)
Wraps a function or object to produce a ``Delayed``.
dataset/ETHPy150Open zynga/jasy/jasy/js/parse/ScopeScanner.py/__addParams--crossover with--dataset/ETHPy150Open dask/dask/dask/delayed.py/delayed