diff trunk/src/dil/Expressions.d @ 377:906599374b69

- Added tparams member to IsExpression. - Added code for parsing optional TemplateParameterList in IsExpression (D 2.0). - Separated common code to parseTemplateParameterList_(). - Added method parseTemplateParameterList2(). - Fix in ctor of TemplateDeclaration: tparams can be null.
author aziz
date Sat, 08 Sep 2007 18:25:01 +0000
parents 5ebe80ce84f2
children 33b566df6af4
line wrap: on
line diff
--- a/trunk/src/dil/Expressions.d	Sat Sep 08 17:24:05 2007 +0000
+++ b/trunk/src/dil/Expressions.d	Sat Sep 08 18:25:01 2007 +0000
@@ -819,17 +819,21 @@
   Token* ident;
   Token* opTok, specTok;
   Type specType;
-  this(Type type, Token* ident, Token* opTok, Token* specTok, Type specType)
+  TemplateParameters tparams; // D 2.0
+  this(Type type, Token* ident, Token* opTok, Token* specTok, Type specType, typeof(tparams) tparams)
   {
     mixin(set_kind);
     this.children = [type];
     if (specType)
       this.children ~= specType;
+    if (tparams)
+      this.children ~= tparams;
     this.type = type;
     this.ident = ident;
     this.opTok = opTok;
     this.specTok = specTok;
     this.specType = specType;
+    this.tparams = tparams;
   }
 }