changeset 606:e98d659f1c29

Moved class BaseClass to module dil.ast.BaseClass.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 06 Jan 2008 01:19:29 +0100
parents 9daa6c34c45a
children 2ed1e6d638cd
files trunk/src/dil/ast/BaseClass.d trunk/src/dil/ast/Declarations.d trunk/src/dil/ast/Expressions.d trunk/src/dil/ast/Types.d trunk/src/dil/parser/Parser.d
diffstat 5 files changed, 26 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/src/dil/ast/BaseClass.d	Sun Jan 06 01:19:29 2008 +0100
@@ -0,0 +1,23 @@
+/++
+  Author: Aziz Köksal
+  License: GPL3
++/
+module dil.ast.BaseClass;
+
+import dil.ast.Node;
+import dil.ast.Types;
+import dil.Enums;
+
+class BaseClass : Node
+{
+  Protection prot;
+  TypeNode type;
+  this(Protection prot, TypeNode type)
+  {
+    super(NodeCategory.Other);
+    mixin(set_kind);
+    addChild(type);
+    this.prot = prot;
+    this.type = type;
+  }
+}
--- a/trunk/src/dil/ast/Declarations.d	Sun Jan 06 01:09:54 2008 +0100
+++ b/trunk/src/dil/ast/Declarations.d	Sun Jan 06 01:19:29 2008 +0100
@@ -9,6 +9,7 @@
 import dil.ast.Types;
 import dil.ast.Statements;
 import dil.ast.Parameter;
+import dil.ast.BaseClass;
 import dil.lexer.IdTable;
 import dil.semantic.Scope;
 import dil.semantic.Analysis;
--- a/trunk/src/dil/ast/Expressions.d	Sun Jan 06 01:09:54 2008 +0100
+++ b/trunk/src/dil/ast/Expressions.d	Sun Jan 06 01:19:29 2008 +0100
@@ -9,6 +9,7 @@
 import dil.ast.Declarations;
 import dil.ast.Statements;
 import dil.ast.Parameter;
+import dil.ast.BaseClass;
 import dil.lexer.Identifier;
 import dil.semantic.Scope;
 import dil.semantic.Types;
--- a/trunk/src/dil/ast/Types.d	Sun Jan 06 01:09:54 2008 +0100
+++ b/trunk/src/dil/ast/Types.d	Sun Jan 06 01:19:29 2008 +0100
@@ -12,20 +12,6 @@
 import dil.semantic.Scope;
 import dil.semantic.Types;
 
-class BaseClass : Node
-{
-  Protection prot;
-  TypeNode type;
-  this(Protection prot, TypeNode type)
-  {
-    super(NodeCategory.Other);
-    mixin(set_kind);
-    addChild(type);
-    this.prot = prot;
-    this.type = type;
-  }
-}
-
 enum TID
 {
   Void    = TOK.Void,
--- a/trunk/src/dil/parser/Parser.d	Sun Jan 06 01:09:54 2008 +0100
+++ b/trunk/src/dil/parser/Parser.d	Sun Jan 06 01:19:29 2008 +0100
@@ -11,6 +11,7 @@
 import dil.ast.Expressions;
 import dil.ast.Types;
 import dil.ast.Parameter;
+import dil.ast.BaseClass;
 import dil.lexer.IdTable;
 import dil.Messages;
 import dil.Information;