diff trunk/src/Types.d @ 154:0e7cefb15e43

- Renamed IdentifierListExpression to DotListExpression, and parseIdentifierListExpression() to parseDotListExpression(). - parseDotListExpression() parses NewExpression items as well. - Commented out code in parsePostExpression(). - Commented out code in parsePrimaryExpression() and replaced with a call to parseDotListExpression(). - Fix: parseArguments() was called with T.LParen instead of T.RParen. - Removed unused class DotExpression. - Added class DotListExpression.
author aziz
date Fri, 13 Jul 2007 09:43:00 +0000
parents 66790fc2c0a2
children 759f437313f9
line wrap: on
line diff
--- a/trunk/src/Types.d	Thu Jul 12 22:30:01 2007 +0000
+++ b/trunk/src/Types.d	Fri Jul 13 09:43:00 2007 +0000
@@ -130,7 +130,7 @@
   Delegate,
   Pointer,
   Array,
-  IdentifierList,
+  DotList,
   Identifier,
   Typeof,
   TemplateInstance,
@@ -165,15 +165,17 @@
   }
 }
 
-class IdentifierListType : Type
+class DotListType : Type
 {
-  Type[] identList;
-  this(Type[] identList)
+  Type[] dotList;
+  this(Type[] dotList)
   {
-    super(TID.IdentifierList, null);
+    super(TID.DotList, null);
+    this.dotList = dotList;
   }
 }
 
+/+
 class IdentifierType : Type
 {
   string[] idents;
@@ -199,7 +201,18 @@
     this.idents ~= ident;
   }
 }
++/
 
+class IdentifierType : Type
+{
+  string ident;
+  this(string ident)
+  {
+    super(TID.Identifier, null);
+    this.ident = ident;
+  }
+}
+/+
 class TypeofType : IdentifierType
 {
   Expression e;
@@ -209,6 +222,17 @@
     this.e = e;
   }
 }
++/
+
+class TypeofType : Type
+{
+  Expression e;
+  this(Expression e)
+  {
+    super(TID.Typeof, null);
+    this.e = e;
+  }
+}
 
 class TemplateInstanceType : Type
 {