diff trunk/src/dil/semantic/Symbol.d @ 615:a05457530ac2

Added member ident to class Symbol. Commented out inheritance of dil.semantic.Symbol by class dil.semantic.Type.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 08 Jan 2008 22:15:59 +0100
parents 8c5b1558244b
children e2cd28cfc6ae
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Symbol.d	Tue Jan 08 21:28:53 2008 +0100
+++ b/trunk/src/dil/semantic/Symbol.d	Tue Jan 08 22:15:59 2008 +0100
@@ -5,6 +5,7 @@
 module dil.semantic.Symbol;
 
 import dil.ast.Node;
+import dil.lexer.Identifier;
 import common;
 
 /// Symbol IDs.
@@ -18,7 +19,7 @@
   Enum,
   Variable,
   Function,
-  Type,
+//   Type,
 }
 
 /++
@@ -28,6 +29,7 @@
 {
   SYM sid;
   Symbol parent; /// The parent this symbol belongs to.
+  Identifier* ident; /// The name of this symbol.
   /// The AST node that produced this symbol.
   /// Useful for source code location info and retrieval of doc comments.
   Node node;
@@ -45,5 +47,5 @@
   mixin(is_!("Enum"));
   mixin(is_!("Variable"));
   mixin(is_!("Function"));
-  mixin(is_!("Type"));
+//   mixin(is_!("Type"));
 }