comparison src/dil/semantic/Types.d @ 820:1d06b4aed7cf

Revised code in the first pass. Added code to handle anonymous unions and structs. Hope the idea will work. Added type to class Aggregate and isAnonymous to some other Symbol classes.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 14 Mar 2008 15:42:08 +0100
parents bcb74c9b895c
children 1ecf05e680ba
comparison
equal deleted inserted replaced
819:438ed3a72c9d 820:1d06b4aed7cf
128 } 128 }
129 129
130 /// Enum type. 130 /// Enum type.
131 class TypeEnum : Type 131 class TypeEnum : Type
132 { 132 {
133 this(Symbol symbol, Type baseType) 133 this(Symbol symbol)
134 { 134 {
135 super(baseType, TYP.Enum); 135 super(baseType, TYP.Enum);
136 this.symbol = symbol; 136 this.symbol = symbol;
137 } 137 }
138 138
139 /// Setter for the base type.
140 void baseType(Type type)
141 {
142 next = type;
143 }
144
145 /// Getter for the base type.
139 Type baseType() 146 Type baseType()
140 { 147 {
141 return next; 148 return next;
142 } 149 }
143 } 150 }