Variable.st
changeset 1382 10281d2f42d1
parent 1312 3393e713d8e8
child 1462 bf3d40b72bf3
--- a/Variable.st	Thu Mar 27 16:57:13 2003 +0100
+++ b/Variable.st	Thu Mar 27 23:31:40 2003 +0100
@@ -50,6 +50,10 @@
 name:name
     "return a new node for a variable named name"
     ^ (self new) name:name
+!
+
+type:type name:name
+    ^ (self new) type:type  name:name
 ! !
 
 !Variable methodsFor:'accessing'!
@@ -66,6 +70,11 @@
     name := aString
 !
 
+type:typeSymbol name:aString
+    type := typeSymbol.
+    name := aString
+!
+
 used
     "return the flag marking that this variable has been used"
 
@@ -144,5 +153,5 @@
 !Variable class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/Variable.st,v 1.17 2002-08-19 16:18:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Variable.st,v 1.18 2003-03-27 22:31:15 cg Exp $'
 ! !