changeset 701:65ad2f96df1f

Moved TypeNode to new module dil.ast.Type.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sat, 26 Jan 2008 23:53:34 +0100
parents 8e252b7c1459
children e10838e0b182
files trunk/src/dil/ast/Parameters.d trunk/src/dil/ast/Type.d trunk/src/dil/ast/Types.d
diffstat 3 files changed, 29 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/ast/Parameters.d	Sat Jan 26 23:39:02 2008 +0100
+++ b/trunk/src/dil/ast/Parameters.d	Sat Jan 26 23:53:34 2008 +0100
@@ -5,7 +5,7 @@
 module dil.ast.Parameters;
 
 import dil.ast.Node;
-import dil.ast.Types;
+import dil.ast.Type;
 import dil.ast.Expression;
 import dil.lexer.Identifier;
 import dil.Enums;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/src/dil/ast/Type.d	Sat Jan 26 23:53:34 2008 +0100
@@ -0,0 +1,27 @@
+/++
+  Author: Aziz Köksal
+  License: GPL3
++/
+module dil.ast.Type;
+
+import dil.ast.Node;
+import dil.semantic.Types;
+
+/// The base class of all type nodes.
+abstract class TypeNode : Node
+{
+  TypeNode next;
+  Type type; /// The semantic type of this type node.
+
+  this()
+  {
+    this(null);
+  }
+
+  this(TypeNode next)
+  {
+    super(NodeCategory.Type);
+    addOptChild(next);
+    this.next = next;
+  }
+}
--- a/trunk/src/dil/ast/Types.d	Sat Jan 26 23:39:02 2008 +0100
+++ b/trunk/src/dil/ast/Types.d	Sat Jan 26 23:53:34 2008 +0100
@@ -4,6 +4,7 @@
 +/
 module dil.ast.Types;
 
+public import dil.ast.Type;
 import dil.ast.Node;
 import dil.ast.Expression;
 import dil.ast.Parameters;
@@ -11,25 +12,6 @@
 import dil.semantic.Types;
 import dil.Enums;
 
-/// The base class of all type nodes.
-abstract class TypeNode : Node
-{
-  TypeNode next;
-  Type type; /// The semantic type of this type node.
-
-  this()
-  {
-    this(null);
-  }
-
-  this(TypeNode next)
-  {
-    super(NodeCategory.Type);
-    addOptChild(next);
-    this.next = next;
-  }
-}
-
 /// Syntax error.
 class IllegalType : TypeNode
 {