diff options
author | Johan Dahlin <johan@gnome.org> | 2011-09-13 11:57:28 -0300 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2011-09-14 08:04:09 -0300 |
commit | de5401b5c5760c5384f24161373e80bc50fdd442 (patch) | |
tree | b71dde9bb3e9839a7b66df8170b22eefb5967107 /giscanner/ast.py | |
parent | 128431773deae4545f9f3a6f0085efc082f49c92 (diff) | |
download | gobject-introspection-de5401b5c5760c5384f24161373e80bc50fdd442.tar.gz |
Add constant value annotation
Add an annotation tag "Value:" which can be used on
constants to override the value.
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index d2975afc..b228a561 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -993,10 +993,11 @@ class Interface(Node, Registered): class Constant(Node): - def __init__(self, name, value_type, value): + def __init__(self, name, value_type, value, ctype): Node.__init__(self, name) self.value_type = value_type self.value = value + self.ctype = ctype class Property(Node): |