diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-15 06:19:00 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-15 19:54:08 -0500 |
commit | 5ac33d8399b14b631971071f47c9973c9f462d95 (patch) | |
tree | 1b44c3ae0b4af453d92b38650123bb0f260019b0 /giscanner/ast.py | |
parent | df159069ed6ce9f5e0fa720036fc14a498391935 (diff) | |
download | gobject-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/ast.py')
-rw-r--r-- | giscanner/ast.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index efa39a91..3cf99ddd 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -964,7 +964,7 @@ class Signal(Callable): class Class(Node, Registered): - def __init__(self, name, parent, + def __init__(self, name, parent_type, ctype=None, gtype_name=None, get_type=None, @@ -974,7 +974,7 @@ class Class(Node, Registered): Registered.__init__(self, gtype_name, get_type) self.ctype = ctype self.c_symbol_prefix = c_symbol_prefix - self.parent = parent + self.parent_type = parent_type self.fundamental = False self.unref_func = None self.ref_func = None @@ -1013,7 +1013,7 @@ class Class(Node, Registered): class Interface(Node, Registered): - def __init__(self, name, parent, + def __init__(self, name, parent_type, ctype=None, gtype_name=None, get_type=None, @@ -1022,7 +1022,7 @@ class Interface(Node, Registered): Registered.__init__(self, gtype_name, get_type) self.ctype = ctype self.c_symbol_prefix = c_symbol_prefix - self.parent = parent + self.parent_type = parent_type self.parent_chain = [] self.methods = [] self.signals = [] |