

def GetFunctionCompletions(self, script, glob=False):
    global cacheLock
    with cacheLock:
        global completionCache
        functions = completionCache.get('functions', None)
        if script:
            functions = functions.get(script, False)
            if (not functions):
                return None
            if glob:
                return functions.get('global', None)
            else:
                return functions.get('nonglobal', None)
        else:
            return None

dataset/ETHPy150Open Kapiainen/SublimePapyrus/Source/Modules/Skyrim/Plugin.py EventListener.GetFunctionCompletions/VarMisuse@39/50 `functions`->`script`