summaryrefslogtreecommitdiff
path: root/giscanner/girparser.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/girparser.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/girparser.py')
-rw-r--r--giscanner/girparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 18f41d39..4cba5065 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -216,7 +216,7 @@ class GIRParser(object):
parent_type = None
ctor_kwargs = {'name': node.attrib['name'],
- 'parent': parent_type,
+ 'parent_type': parent_type,
'gtype_name': node.attrib[_glibns('type-name')],
'get_type': node.attrib[_glibns('get-type')],
'c_symbol_prefix': node.attrib.get(_cns('symbol-prefix')),