gobject-introspection r375 - in trunk: . giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r375 - in trunk: . giscanner
- Date: Thu, 14 Aug 2008 16:56:47 +0000 (UTC)
Author: johan
Date: Thu Aug 14 16:56:47 2008
New Revision: 375
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=375&view=rev
Log:
2008-08-14 Johan Dahlin <johan gnome org>
* giscanner/transformer.py:
New internal function for adding a new node.
Modified:
trunk/ChangeLog
trunk/giscanner/transformer.py
Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py (original)
+++ trunk/giscanner/transformer.py Thu Aug 14 16:56:47 2008
@@ -66,12 +66,7 @@
nodes = []
for symbol in self.generator.get_symbols():
node = self._traverse_one(symbol)
- if node is None:
- continue
- if node.name.startswith('_'):
- continue
- self._namespace.nodes.append(node)
- self._output_ns[node.name] = node
+ self._add_node(node)
return self._namespace
def register_include(self, filename):
@@ -104,6 +99,14 @@
# Private
+ def _add_node(self, node):
+ if node is None:
+ return
+ if node.name.startswith('_'):
+ return
+ self._namespace.nodes.append(node)
+ self._output_ns[node.name] = node
+
def _strip_namespace_func(self, name):
orig_name = name
prefix = self._namespace.name.lower() + '_'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]