diff -r c03b8323d11a -r 77b8d3a635b7 src/eric7/Utilities/ClassBrowsers/jsclbr.py --- a/src/eric7/Utilities/ClassBrowsers/jsclbr.py Tue Nov 08 16:57:46 2022 +0100 +++ b/src/eric7/Utilities/ClassBrowsers/jsclbr.py Tue Nov 08 18:03:11 2022 +0100 @@ -22,6 +22,13 @@ _modules = {} # cache of modules we've seen +def clearModulesCache(): + """ + Function to clear the cached modules. + """ + _modules.clear() + + class VisibilityMixin(ClbrBaseClasses.ClbrVisibilityMixinBase): """ Mixin class implementing the notion of visibility. @@ -286,13 +293,18 @@ ) -def readmodule_ex(module, path=None): +def readmodule_ex(module, path=None, isTypeFile=False): """ Read a JavaScript file and return a dictionary of functions and variables. - @param module name of the JavaScript file (string) - @param path path the file should be searched in (list of strings) + @param module name of the JavaScript file + @type str + @param path path the file should be searched in + @type list of str + @param isTypeFile flag indicating a file of this type + @type bool @return the resulting dictionary + @rtype dict """ global _modules