diff trunk/src/Expressions.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 fdbd47d72614
line wrap: on
line diff
--- a/trunk/src/Expressions.d	Thu Jul 12 22:30:01 2007 +0000
+++ b/trunk/src/Expressions.d	Fri Jul 13 09:43:00 2007 +0000
@@ -290,12 +290,6 @@
   { super(e); }
 }
 
-class DotExpression : UnaryExpression
-{
-  this(Expression e)
-  { super(e); }
-}
-
 class DotIdExpression : UnaryExpression
 {
   string ident;
@@ -328,29 +322,29 @@
   }
 }
 
-class NewExpression : UnaryExpression
+class NewExpression : /*Unary*/Expression
 {
   Expression[] newArgs;
   Type type;
   Expression[] ctorArgs;
-  this(Expression e, Expression[] newArgs, Type type, Expression[] ctorArgs)
+  this(/*Expression e, */Expression[] newArgs, Type type, Expression[] ctorArgs)
   {
-    super(e);
+    /*super(e);*/
     this.newArgs = newArgs;
     this.type = type;
     this.ctorArgs = ctorArgs;
   }
 }
 
-class NewAnonClassExpression : UnaryExpression
+class NewAnonClassExpression : /*Unary*/Expression
 {
   Expression[] newArgs;
   BaseClass[] bases;
   Expression[] ctorArgs;
   Declaration[] decls;
-  this(Expression e, Expression[] newArgs, BaseClass[] bases, Expression[] ctorArgs, Declaration[] decls)
+  this(/*Expression e, */Expression[] newArgs, BaseClass[] bases, Expression[] ctorArgs, Declaration[] decls)
   {
-    super(e);
+    /*super(e);*/
     this.newArgs = newArgs;
     this.bases = bases;
     this.ctorArgs = ctorArgs;
@@ -410,7 +404,7 @@
     this.identifier = identifier;
   }
 }
-
+/*
 class IdentifierListExpression : Expression
 {
   Expression[] identList;
@@ -419,6 +413,15 @@
     this.identList = identList;
   }
 }
+*/
+class DotListExpression : Expression
+{
+  Expression[] identList;
+  this(Expression[] identList)
+  {
+    this.identList = identList;
+  }
+}
 
 class TemplateInstanceExpression : Expression
 {