diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-08-28 02:55:52 +0200 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-10-28 18:41:04 +0100 |
commit | b7e230a61b9f9682c5ee433e24cfb749cec8c9c5 (patch) | |
tree | faa46018409431286c4b8f4f601b18e9c5a36700 /giscanner/ast.py | |
parent | 9ff28e6abab52506933fb560de1360e16d8d3880 (diff) | |
download | gobject-introspection-b7e230a61b9f9682c5ee433e24cfb749cec8c9c5.tar.gz |
Ast: Add parent to Fields
Properties have it, there is no reason for Field not to, and in this
way mallard docs can treat a field almost like a property.
https://bugzilla.gnome.org/show_bug.cgi?id=683046
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index be974a09..e5c403e1 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -857,6 +857,7 @@ class Field(Annotated): self.bits = bits self.anonymous_node = anonymous_node self.private = False + self.parent = None # a compound def __cmp__(self, other): return cmp(self.name, other.name) |