Mercurial > projects > dil
diff trunk/src/Expressions.d @ 99:6b8c248f5911
- Added member type to classes CastExpression and TypeidExpression.
- Parsing CastExpression and TypeDotIdExpression in parseUnaryExpression() correctly.
- Parsing type for TypeidExpression.
- Parsing declarator in parseParameters().
author | aziz |
---|---|
date | Sat, 07 Jul 2007 12:30:01 +0000 |
parents | 1a83e5070a84 |
children | 538e8b546669 |
line wrap: on
line diff
--- a/trunk/src/Expressions.d Sat Jul 07 10:51:00 2007 +0000 +++ b/trunk/src/Expressions.d Sat Jul 07 12:30:01 2007 +0000 @@ -320,8 +320,12 @@ class CastExpression : UnaryExpression { - this(Expression e) - { super(e); } + Type type; + this(Expression e, Type type) + { + super(e); + this.type = type; + } } class AnonClassExpression : UnaryExpression @@ -501,8 +505,11 @@ class TypeidExpression : Expression { - this() - {} + Type type; + this(Type type) + { + this.type = type; + } } class IsExpression : Expression