[gobject-introspection/wip/transformer] major: Parse static methods on unions
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] major: Parse static methods on unions
- Date: Mon, 23 Aug 2010 20:45:50 +0000 (UTC)
commit d6fa8791c14e7b8be6d507ea6c9f61697cefcf10
Author: Colin Walters <walters verbum org>
Date: Mon Aug 23 15:49:26 2010 -0400
major: Parse static methods on unions
giscanner/girparser.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index acb005c..540779f 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -389,6 +389,9 @@ class GIRParser(object):
for method in self._find_children(node, _corens('method')):
union.methods.append(
self._parse_function_common(method, ast.Function))
+ for func in self._find_children(node, _corens('function')):
+ union.static_methods.append(
+ self._parse_function_common(func, ast.Function))
for ctor in self._find_children(node, _corens('constructor')):
union.constructors.append(
self._parse_function_common(ctor, ast.Function))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]