# HG changeset patch # User Aziz K?ksal # Date 1201388014 -3600 # Node ID 65ad2f96df1f1037d977c9a035297274899c85b1 # Parent 8e252b7c14591be44f221ab195e6fafe1fde45b1 Moved TypeNode to new module dil.ast.Type. diff -r 8e252b7c1459 -r 65ad2f96df1f trunk/src/dil/ast/Parameters.d --- 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; diff -r 8e252b7c1459 -r 65ad2f96df1f trunk/src/dil/ast/Type.d --- /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; + } +} diff -r 8e252b7c1459 -r 65ad2f96df1f trunk/src/dil/ast/Types.d --- 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 {