summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-02-24 03:55:18 -0500
committerColin Walters <walters@verbum.org>2013-02-26 16:25:11 -0500
commitdfeaf33c8a4ae7e25b4a83d0b31c4d435b4ef7de (patch)
tree86776c3fbf1ddb2db7d29125c48d6830d8b5ffc5 /giscanner/ast.py
parent971d1f98053eec324756429a7966aab2279abd87 (diff)
downloadgobject-introspection-dfeaf33c8a4ae7e25b4a83d0b31c4d435b4ef7de.tar.gz
scanner: internals cleanup: Key more things off Namespace
The .gir format has a weird legacy where stuff like the includes are outside of the <namespace>. But conceptually they're tied together, so let's start reflecting this in the code. This way we can just pass around and look at a Namespace object instead of a 4-tuple of (namespace, includes, c_includes, pkg_config). https://bugzilla.gnome.org/show_bug.cgi?id=694593
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 09616f65..d9f23539 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -372,6 +372,7 @@ class Namespace(object):
self.type_names = {} # Maps from GTName -> node
self.ctypes = {} # Maps from CType -> node
self.symbols = {} # Maps from function symbols -> Function
+ self.includes = set() # Include
def type_from_name(self, name, ctype=None):
"""Backwards compatibility method for older .gir files, which