22 import Utilities.ClassBrowsers as ClassBrowsers |
22 import Utilities.ClassBrowsers as ClassBrowsers |
23 from . import ClbrBaseClasses |
23 from . import ClbrBaseClasses |
24 |
24 |
25 SUPPORTED_TYPES = [ClassBrowsers.IDL_SOURCE] |
25 SUPPORTED_TYPES = [ClassBrowsers.IDL_SOURCE] |
26 |
26 |
27 _getnext = re.compile(r""" |
27 _getnext = re.compile( |
|
28 r""" |
28 (?P<String> |
29 (?P<String> |
29 " [^"\\\n]* (?: \\. [^"\\\n]*)* " |
30 " [^"\\\n]* (?: \\. [^"\\\n]*)* " |
30 ) |
31 ) |
31 |
32 |
32 | (?P<Comment> |
33 | (?P<Comment> |
301 # the interface inherits from other interfaces |
302 # the interface inherits from other interfaces |
302 inherit = inherit[1:].strip() |
303 inherit = inherit[1:].strip() |
303 inherit = [_commentsub('', inherit)] |
304 inherit = [_commentsub('', inherit)] |
304 # remember this interface |
305 # remember this interface |
305 cur_class = Interface(module, class_name, inherit, |
306 cur_class = Interface(module, class_name, inherit, |
306 file, lineno) |
307 file, lineno) |
307 if not classstack: |
308 if not classstack: |
308 dict[class_name] = cur_class |
309 dict[class_name] = cur_class |
309 else: |
310 else: |
310 cls = classstack[-1][0] |
311 cls = classstack[-1][0] |
311 cls._addclass(class_name, cur_class) |
312 cls._addclass(class_name, cur_class) |