summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-15 06:19:00 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-15 19:54:08 -0500
commit5ac33d8399b14b631971071f47c9973c9f462d95 (patch)
tree1b44c3ae0b4af453d92b38650123bb0f260019b0 /giscanner/girwriter.py
parentdf159069ed6ce9f5e0fa720036fc14a498391935 (diff)
downloadgobject-introspection-5ac33d8399b14b631971071f47c9973c9f462d95.tar.gz
ast: Rename Class.parent to parent_type
The eventual model I want to have is that .parent is the "container" of the node. In all the cases where we don't explicitly set the parent, this is the namespace, but having this under one field name would be a big cleanup for the docwriter. https://bugzilla.gnome.org/show_bug.cgi?id=693876
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 90f7e1ed..ea9305cd 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -388,9 +388,9 @@ and/or use gtk-doc annotations. ''')
self._append_node_generic(node, attrs)
if isinstance(node, ast.Class):
tag_name = 'class'
- if node.parent is not None:
+ if node.parent_type is not None:
attrs.append(('parent',
- self._type_to_name(node.parent)))
+ self._type_to_name(node.parent_type)))
if node.is_abstract:
attrs.append(('abstract', '1'))
else: