Mercurial > projects > dil
comparison 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 |
comparison
equal
deleted
inserted
replaced
700:8e252b7c1459 | 701:65ad2f96df1f |
---|---|
1 /++ | |
2 Author: Aziz Köksal | |
3 License: GPL3 | |
4 +/ | |
5 module dil.ast.Type; | |
6 | |
7 import dil.ast.Node; | |
8 import dil.semantic.Types; | |
9 | |
10 /// The base class of all type nodes. | |
11 abstract class TypeNode : Node | |
12 { | |
13 TypeNode next; | |
14 Type type; /// The semantic type of this type node. | |
15 | |
16 this() | |
17 { | |
18 this(null); | |
19 } | |
20 | |
21 this(TypeNode next) | |
22 { | |
23 super(NodeCategory.Type); | |
24 addOptChild(next); | |
25 this.next = next; | |
26 } | |
27 } |