diff src/dil/ast/Types.d @ 835:451ede0105e0

Applied minor fixes and tidied some code up a bit.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 12 Aug 2008 02:59:11 +0200
parents bcb74c9b895c
children
line wrap: on
line diff
--- a/src/dil/ast/Types.d	Mon Aug 11 19:14:28 2008 +0200
+++ b/src/dil/ast/Types.d	Tue Aug 12 02:59:11 2008 +0200
@@ -77,6 +77,7 @@
 class TypeofType : TypeNode
 {
   Expression e;
+  /// "typeof" "(" Expression ")"
   this(Expression e)
   {
     this();
@@ -84,12 +85,13 @@
     this.e = e;
   }
 
-  // For D2.0: "typeof" "(" "return" ")"
+  /// For D2.0: "typeof" "(" "return" ")"
   this()
   {
     mixin(set_kind);
   }
 
+  /// Returns true if this is a "typeof(return)".
   bool isTypeofReturn()
   {
     return e is null;