--- a/src/eric7/Utilities/ClassBrowsers/protoclbr.py Tue Nov 08 16:57:46 2022 +0100 +++ b/src/eric7/Utilities/ClassBrowsers/protoclbr.py Tue Nov 08 18:03:11 2022 +0100 @@ -91,6 +91,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. @@ -201,7 +208,7 @@ VisibilityMixin.__init__(self) -def readmodule_ex(module, path=None): +def readmodule_ex(module, path=None, isTypeFile=False): """ Read a ProtoBuf protocol file and return a dictionary of messages, enums, services and rpc methods. @@ -210,6 +217,8 @@ @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 """