gobject-introspection r197 - trunk/giscanner



Author: johan
Date: Mon Apr 21 18:41:55 2008
New Revision: 197
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=197&view=rev

Log:
Add Constant, so far unused

Modified:
   trunk/giscanner/treebuilder.py

Modified: trunk/giscanner/treebuilder.py
==============================================================================
--- trunk/giscanner/treebuilder.py	(original)
+++ trunk/giscanner/treebuilder.py	Mon Apr 21 18:41:55 2008
@@ -80,6 +80,17 @@
         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 @@
 
     def _create_struct(self, symbol):
         return Struct(symbol.ident)
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]