summaryrefslogtreecommitdiff
path: root/giscanner/docwriter.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/docwriter.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/docwriter.py')
-rw-r--r--giscanner/docwriter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 1a149374..763a09d6 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -352,8 +352,8 @@ class DocFormatter(object):
def get_class_hierarchy(self, node):
parent_chain = [node]
- while node.parent:
- node = self._transformer.lookup_typenode(node.parent)
+ while node.parent_type:
+ node = self._transformer.lookup_typenode(node.parent_type)
parent_chain.append(node)
parent_chain.reverse()