diff trunk/src/Types.d @ 100:538e8b546669

- Added code for parsing IsExpressions. - Added class SpecializationType for IsExpressions. - Added missing default statement in parseDeclaratorSuffix(). - Added parameter identOptional to parseDeclarator().
author aziz
date Sat, 07 Jul 2007 13:55:01 +0000
parents 0eb4c8a5b32b
children 441962b0f526
line wrap: on
line diff
--- a/trunk/src/Types.d	Sat Jul 07 12:30:01 2007 +0000
+++ b/trunk/src/Types.d	Sat Jul 07 13:55:01 2007 +0000
@@ -90,3 +90,25 @@
     this.e = e;
   }
 }
+
+class SpecializationType : Type
+{
+  TOK specTok; // T.Colon|T.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
+
+  this(TOK specTok, TOK tokType)
+  {
+    super(TOK.Invalid, null);
+    this.specTok = specTok;
+    this.tokType = tokType;
+  }
+
+  this(TOK specTok, Type type)
+  {
+    super(TOK.Invalid, null);
+    this.specTok = specTok;
+    this.type = type;
+  }
+}