diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-04-21 18:41:55 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-21 18:41:55 +0000 |
commit | 63bc0a9589fe144a55023c79e7da54d5534a793e (patch) | |
tree | 6f0b8c756ed15996ec9c47dd9c847977c56d98f4 /giscanner | |
parent | 9e00ec6c10ae7d795b739ce4cf8f293e7a075894 (diff) | |
download | gobject-introspection-63bc0a9589fe144a55023c79e7da54d5534a793e.tar.gz |
Add Constant, so far unused
svn path=/trunk/; revision=197
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/treebuilder.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/giscanner/treebuilder.py b/giscanner/treebuilder.py index 22147bde..9f2b42b4 100644 --- a/giscanner/treebuilder.py +++ b/giscanner/treebuilder.py @@ -80,6 +80,17 @@ class Interface(Node): return 'Interface(%r, %r)' % (self.name, self.methods) +class Constant(Node): + def __init__(self, name, type, value): + self.name = name + self.type = type + self.value = value + + def __repr__(self): + return 'Constant(%r, %r, %r)' % ( + self.name, self.type, self.value) + + class TreeBuilder(object): def __init__(self, generator): self.generator = generator @@ -147,3 +158,4 @@ class TreeBuilder(object): def _create_struct(self, symbol): return Struct(symbol.ident) + |