diff trunk/src/dil/ast/Node.d @ 636:15a0f37caabe

Added more visit() methods to dil.semantic.SemanticPass1.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 14 Jan 2008 00:21:13 +0100
parents b2fc028d8b55
children f1325a4506de
line wrap: on
line diff
--- a/trunk/src/dil/ast/Node.d	Sun Jan 13 21:53:01 2008 +0100
+++ b/trunk/src/dil/ast/Node.d	Mon Jan 14 00:21:13 2008 +0100
@@ -85,6 +85,11 @@
     return null;
   }
 
+  Class to(Class)()
+  {
+    return cast(Class)cast(void*)this;
+  }
+
   static bool isDoxygenComment(Token* token)
   { // Doxygen: '/+!' '/*!' '//!'
     return token.type == TOK.Comment && token.start[2] == '!';