summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagn@cs.stanford.edu>2015-09-26 15:23:35 -0700
committerColin Walters <walters@verbum.org>2015-09-27 14:32:00 -0400
commit4d9453f218074d03a5c44dbd44eeadb8e9e89f6c (patch)
tree33f397cf60e89bcecfc72e621b58585e5abfdd68 /giscanner/transformer.py
parent232f3c831260f596e36159112292897962a505b4 (diff)
downloadgobject-introspection-4d9453f218074d03a5c44dbd44eeadb8e9e89f6c.tar.gz
giscanner: fix alias resolution
Atk has a "typedef GSList AtkAttributeSet", which causes an ast.Alias() targeting a ast.List(). The latter has a target_fundamental of '<list>', which cannot be looked up in ast.type_names (because it's not a real fundamental type), and that breaks the build. It turns out that we don't need to find the fundamental type and then the fundamental type node - the target field of the ast.Alias already points to the desired type node. https://bugzilla.gnome.org/show_bug.cgi?id=755681
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 7acca226..6cd7dc28 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -979,7 +979,7 @@ Note that type resolution may not succeed."""
if typenode.target.target_giname is not None:
typenode = self.lookup_giname(typenode.target.target_giname)
elif typenode.target.target_fundamental is not None:
- typenode = ast.type_names[typenode.target.target_fundamental]
+ typenode = typenode.target
else:
break
return typenode