view 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 source

/++
  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;
  }
}