

def SetFunctionCompletions(self, script, obj, glob=False):
    global cacheLock
    with cacheLock:
        global completionCache
        functions = completionCache.get('functions', None)
        if (not functions):
            completionCache['functions'] = {
                
            }
            functions = completionCache.get('functions', None)
        if (not functions.get(script, False)):
            functions[script] = {
                
            }
        if glob:
            functions[script]['global'] = obj
        else:
            functions[glob]['nonglobal'] = obj

dataset/ETHPy150Open Kapiainen/SublimePapyrus/Source/Modules/Skyrim/Plugin.py EventListener.SetFunctionCompletions/VarMisuse@118/141 `script`->`glob`