diff src/dil/semantic/Pass1.d @ 823:fde064aca673

Added support for version(unittest).
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 24 Mar 2008 18:53:15 +0100
parents 1d06b4aed7cf
children 80eb3251e010
line wrap: on
line diff
--- a/src/dil/semantic/Pass1.d	Fri Mar 14 11:03:11 2008 -0400
+++ b/src/dil/semantic/Pass1.d	Mon Mar 24 18:53:15 2008 +0100
@@ -415,7 +415,7 @@
   D visit(DebugDeclaration d)
   {
     if (d.isSpecification)
-    { // debug = Id|Int
+    { // debug = Id | Int
       if (!isModuleScope())
         error(d.begin, MSG.DebugSpecModuleLevel, d.spec.srcText);
       else if (d.spec.kind == TOK.Identifier)
@@ -424,7 +424,7 @@
         context.debugLevel = d.spec.uint_;
     }
     else
-    {
+    { // debug ( Condition )
       if (debugBranchChoice(d.cond, context))
         d.compiledDecls = d.decls;
       else
@@ -437,7 +437,7 @@
   D visit(VersionDeclaration d)
   {
     if (d.isSpecification)
-    { // version = Id|Int
+    { // version = Id | Int
       if (!isModuleScope())
         error(d.begin, MSG.VersionSpecModuleLevel, d.spec.srcText);
       else if (d.spec.kind == TOK.Identifier)
@@ -446,7 +446,7 @@
         context.versionLevel = d.spec.uint_;
     }
     else
-    {
+    { // version ( Condition )
       if (versionBranchChoice(d.cond, context))
         d.compiledDecls = d.decls;
       else