diff trunk/src/dil/ast/Parameters.d @ 747:00f872d949ea

Added method scanCommentText() to DDocEmitter. Added method writeParams() and scanCodeSection(). Added method scanMacro() to MacroParser. Made fixes and improvements to the MacroExpander. Applied other minor fixes.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 11 Feb 2008 03:15:45 +0100
parents 65ad2f96df1f
children 3b34f6a95a27
line wrap: on
line diff
--- a/trunk/src/dil/ast/Parameters.d	Sun Feb 10 02:14:08 2008 +0100
+++ b/trunk/src/dil/ast/Parameters.d	Mon Feb 11 03:15:45 2008 +0100
@@ -37,8 +37,14 @@
     return !!(stc & StorageClass.Variadic);
   }
 
+  /// func(int[] values ...)
+  bool isDVariadic()
+  {
+    return isVariadic && !isCVariadic;
+  }
+
   /// func(...)
-  bool isOnlyVariadic()
+  bool isCVariadic()
   {
     return stc == StorageClass.Variadic &&
            type is null && name is null;
@@ -70,9 +76,9 @@
   { return children.length; }
 }
 
-/*********************
-  Template parameters:
-*/
+/*~~~~~~~~~~~~~~~~~~~~~~
+~ Template parameters: ~
+~~~~~~~~~~~~~~~~~~~~~~*/
 
 abstract class TemplateParameter : Node
 {