diff trunk/src/dil/ast/Declarations.d @ 751:8caf18892c1b

Improved DDocEmitter and fixed bugs.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 11 Feb 2008 22:39:58 +0100
parents 7917811f8116
children bc812843603c
line wrap: on
line diff
--- a/trunk/src/dil/ast/Declarations.d	Mon Feb 11 21:39:02 2008 +0100
+++ b/trunk/src/dil/ast/Declarations.d	Mon Feb 11 22:39:58 2008 +0100
@@ -382,6 +382,12 @@
   {
     this.linkageType = linkageType;
   }
+
+  bool isTemplatized()
+  { // E.g.: void func(T)(T t)
+    //                  ^ params.begin.prevNWS
+    return params.begin.prevNWS.kind == TOK.RParen;
+  }
 }
 
 /// VariablesDeclaration := Type? Identifier ("=" Init)? ("," Identifier ("=" Init)?)* ";"