diff trunk/src/Declarations.d @ 123:0f55c0ac6589

- Added method parseVersionDeclaration(). - Simplified parseDebugDeclaration(). - Added an assert statement to parseDeclarationsBlock().
author aziz
date Mon, 09 Jul 2007 21:04:02 +0000
parents 9849a263f148
children 240a8b053803
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Mon Jul 09 20:24:03 2007 +0000
+++ b/trunk/src/Declarations.d	Mon Jul 09 21:04:02 2007 +0000
@@ -213,3 +213,23 @@
     this.elseDecls = elseDecls;
   }
 }
+
+class VersionDeclaration : Declaration
+{
+  int levelSpec;
+  string identSpec;
+  int levelCond;
+  string identCond;
+  Declaration[] decls, elseDecls;
+
+  this(int levelSpec, string identSpec, int levelCond, string identCond, Declaration[] decls, Declaration[] elseDecls)
+  {
+    super(decls.length != 0);
+    this.levelSpec = levelSpec;
+    this.identSpec = identSpec;
+    this.levelCond = levelCond;
+    this.identCond = identCond;
+    this.decls = decls;
+    this.elseDecls = elseDecls;
+  }
+}