diff options
author | Colin Walters <walters@verbum.org> | 2008-11-25 22:29:20 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-25 22:29:20 +0000 |
commit | 792c394d3b0350652291f2f93f9d769c3a03024e (patch) | |
tree | ca01bd0a4ad24825e7470f8a5e187a5d82844f7b /giscanner/girwriter.py | |
parent | 620a59eec01141746f560a3b37357b838a47177a (diff) | |
download | gobject-introspection-792c394d3b0350652291f2f93f9d769c3a03024e.tar.gz |
Bug 559705 – Missing association between static methods and classes
2008-11-25 Colin Walters <walters@verbum.org>
Bug 559705 – Missing association between static methods and classes
* docs/typelib-format.txt:
* girepository/ginfo.c (g_function_info_get_flags):
* girepository/girmodule.c (g_ir_module_build_typelib):
* girepository/girnode.c (g_ir_node_get_size),
(g_ir_node_build_typelib):
* girepository/girparser.c (start_function):
* girepository/gtypelib.c (g_typelib_check_sanity),
(validate_header), (validate_function_blob):
* girepository/gtypelib.h:
* giscanner/ast.py:
* giscanner/girwriter.py:
* giscanner/glibtransformer.py:
* tests/scanner/foo-1.0-expected.gir:
* tests/scanner/foo-1.0-expected.tgir:
* tests/scanner/foo.h:
svn path=/trunk/; revision=972
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index a5c50d97..23d3a927 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -121,6 +121,9 @@ class GIRWriter(XMLWriter): def _write_method(self, method): self._write_function(method, tag_name='method') + def _write_static_method(self, method): + self._write_function(method, tag_name='function') + def _write_constructor(self, method): self._write_function(method, tag_name='constructor') @@ -260,6 +263,8 @@ class GIRWriter(XMLWriter): if isinstance(node, Class): for method in node.constructors: self._write_constructor(method) + for method in node.static_methods: + self._write_static_method(method) for method in node.methods: self._write_method(method) for prop in node.properties: |