diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-03 08:54:16 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-07 04:29:15 -0500 |
commit | 7bdc0b75872dcff2e154d05121568de54996a947 (patch) | |
tree | a1b5f0002e9173835f7ac162e05229c62a5bd305 /giscanner/maintransformer.py | |
parent | 71bc26058124b2b9f2e283eeb07fae5eb3e52710 (diff) | |
download | gobject-introspection-7bdc0b75872dcff2e154d05121568de54996a947.tar.gz |
transformer: Ensure that types aren't resolved if we can't find them
This ensures that things can't try to reference undefined/invalid types
without emitting warnings, and that users need to include other GIRs at
build time if they want to reference another type.
https://bugzilla.gnome.org/show_bug.cgi?id=693098
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index d149f30a..4eaf6401 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -306,7 +306,7 @@ usage is void (*_gtk_reserved1)(void);""" else: text = type_str message.warn_node(parent, "%s: Unknown type: %r" % - (text, result.ctype), positions=position) + (text, type_str), positions=position) return result def _resolve_toplevel(self, type_str, type_node=None, node=None, parent=None): |