Mercurial > projects > dil
diff trunk/src/dil/semantic/Symbols.d @ 617:0749f30ef2d0
Added member 'EnumType type' to class Enum.
Added method setType() to Enum.
Fixed module name of src/dil/Types.d.
Added member enumSymbol to EnumType.
Removed 'TypeBasic' from newTB declaration.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Thu, 10 Jan 2008 19:47:34 +0100 |
parents | a05457530ac2 |
children | e2cd28cfc6ae |
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Symbols.d Wed Jan 09 17:41:22 2008 +0100 +++ b/trunk/src/dil/semantic/Symbols.d Thu Jan 10 19:47:34 2008 +0100 @@ -96,13 +96,18 @@ class Enum : ScopeSymbol { - Identifier* ident; + EnumType type; this(Identifier* ident, Node enumNode) { this.sid = SYM.Enum; this.ident = ident; this.node = enumNode; } + + void setType(EnumType type) + { + this.type = type; + } } class Function : ScopeSymbol