gobject-introspection r197 - trunk/giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r197 - trunk/giscanner
- Date: Mon, 21 Apr 2008 19:41:55 +0100 (BST)
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]