Mercurial > projects > dil
diff trunk/src/Types.d @ 106:441962b0f526
- Added parseArrayType() method.
- Added e2 member to ArrayType and two more constructors.
- Corrected function header of try_().
author | aziz |
---|---|
date | Sun, 08 Jul 2007 13:33:02 +0000 |
parents | 538e8b546669 |
children | 79857de26e86 |
line wrap: on
line diff
--- a/trunk/src/Types.d Sun Jul 08 11:57:03 2007 +0000 +++ b/trunk/src/Types.d Sun Jul 08 13:33:02 2007 +0000 @@ -83,20 +83,31 @@ class ArrayType : Type { - Expression e; - this(Type t, Expression e) + Expression e, e2; + Type assocType; + this(Type t) { super(TOK.Invalid, t); + } + this(Type t, Expression e, Expression e2) + { + this(t); this.e = e; + this.e2 = e2; + } + this(Type t, Type assocType) + { + this(t); + this.assocType = assocType; } } class SpecializationType : Type { - TOK specTok; // T.Colon|T.Equal + TOK specTok; // Colon|Equal Type type; - TOK tokType; // T.Typedef|T.Struct|T.Union|T.Class|T.Interface| - // T.Enum| T.Function|T.Delegate|T.Super|T.Return + TOK tokType; // Typedef|Struct|Union|Class|Interface| + // Enum|Function|Delegate|Super|Return this(TOK specTok, TOK tokType) {