diff trunk/src/Expressions.d @ 269:a416e09c08ea

- Implemented D 2.0 additions. - Added keyword __traits, TOK.Traits and TraitsExpression. - Added ForeachRangeStatement, ConstType and InvariantType. - Fix: avoid infinite loop by calling nT() to skip storage class. - Fix: don't call nT() in parseVersionDeclaration.parseIdentOrInt().
author aziz
date Sat, 04 Aug 2007 18:59:04 +0000
parents ebcf7941f1db
children e8de572e4d01
line wrap: on
line diff
--- a/trunk/src/Expressions.d	Sat Aug 04 13:23:01 2007 +0000
+++ b/trunk/src/Expressions.d	Sat Aug 04 18:59:04 2007 +0000
@@ -617,6 +617,19 @@
   }
 }
 
+version(D2)
+{
+class TraitsExpression : Expression
+{
+  Token* ident;
+  TemplateArguments targs;
+  this(typeof(ident) ident, typeof(targs) targs)
+  {
+    this.ident = ident;
+  }
+}
+}
+
 class VoidInitializer : Expression
 {