93 _normalize = re.compile(r"""[ \t]{2,}""").sub |
93 _normalize = re.compile(r"""[ \t]{2,}""").sub |
94 |
94 |
95 _modules = {} # cache of modules we've seen |
95 _modules = {} # cache of modules we've seen |
96 |
96 |
97 |
97 |
|
98 def clearModulesCache(): |
|
99 """ |
|
100 Function to clear the cached modules. |
|
101 """ |
|
102 _modules.clear() |
|
103 |
|
104 |
98 class VisibilityMixin(ClbrBaseClasses.ClbrVisibilityMixinBase): |
105 class VisibilityMixin(ClbrBaseClasses.ClbrVisibilityMixinBase): |
99 """ |
106 """ |
100 Mixin class implementing the notion of visibility. |
107 Mixin class implementing the notion of visibility. |
101 """ |
108 """ |
102 |
109 |
202 """ |
209 """ |
203 ClbrBaseClasses.Attribute.__init__(self, module, name, file, lineno) |
210 ClbrBaseClasses.Attribute.__init__(self, module, name, file, lineno) |
204 VisibilityMixin.__init__(self) |
211 VisibilityMixin.__init__(self) |
205 |
212 |
206 |
213 |
207 def readmodule_ex(module, path=None): |
214 def readmodule_ex(module, path=None, isTypeFile=False): |
208 """ |
215 """ |
209 Read a CORBA IDL file and return a dictionary of classes, functions and |
216 Read a CORBA IDL file and return a dictionary of classes, functions and |
210 modules. |
217 modules. |
211 |
218 |
212 @param module name of the CORBA IDL file |
219 @param module name of the IDL file |
213 @type str |
220 @type str |
214 @param path path the file should be searched in |
221 @param path path the file should be searched in |
215 @type list of str |
222 @type list of str |
|
223 @param isTypeFile flag indicating a file of this type |
|
224 @type bool |
216 @return the resulting dictionary |
225 @return the resulting dictionary |
217 @rtype dict |
226 @rtype dict |
218 """ |
227 """ |
219 global _modules |
228 global _modules |
220 |
229 |