Mercurial > projects > dil
diff trunk/src/dil/ast/Type.d @ 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 | |
children | f88b5285b86b |
line wrap: on
line diff
--- /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; + } +}