[gobject-introspection] giscanner: fix alias resolution
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: fix alias resolution
- Date: Sun, 27 Sep 2015 18:32:16 +0000 (UTC)
commit 4d9453f218074d03a5c44dbd44eeadb8e9e89f6c
Author: Giovanni Campagna <gcampagn cs stanford edu>
Date: Sat Sep 26 15:23:35 2015 -0700
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
giscanner/transformer.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 7acca22..6cd7dc2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]