diff trunk/src/Declarations.d @ 240:deab661906ae

- Classes Declaration, Expression, Statement and Type inherit from Node now. - Added System to enum Linkage and Export to enum Protection.
author aziz
date Mon, 30 Jul 2007 15:41:05 +0000
parents d64413278bec
children 93d37f874658
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Mon Jul 30 12:36:04 2007 +0000
+++ b/trunk/src/Declarations.d	Mon Jul 30 15:41:05 2007 +0000
@@ -3,16 +3,18 @@
   License: GPL2
 +/
 module Declarations;
+import SyntaxTree;
 import Expressions;
 import Types;
 import Statements;
 import Token;
 
-class Declaration
+class Declaration : Node
 {
   bool hasBody;
   this(bool hasBody)
   {
+    super(NodeType.Declaration);
     this.hasBody = hasBody;
   }
 }