comparison dmd/EnumMember.d @ 0:10317f0c89a5

Initial commit
author korDen
date Sat, 24 Oct 2009 08:42:06 +0400
parents
children 1628b221808d
comparison
equal deleted inserted replaced
-1:000000000000 0:10317f0c89a5
1 module dmd.EnumMember;
2
3 import dmd.Dsymbol;
4 import dmd.Expression;
5 import dmd.Type;
6 import dmd.Loc;
7 import dmd.Identifier;
8 import dmd.Scope;
9 import dmd.OutBuffer;
10 import dmd.HdrGenState;
11
12 class EnumMember : Dsymbol
13 {
14 Expression value;
15 Type type;
16
17 this(Loc loc, Identifier id, Expression value, Type type)
18 {
19 super(id);
20
21 this.value = value;
22 this.type = type;
23 this.loc = loc;
24 }
25
26 Dsymbol syntaxCopy(Dsymbol s)
27 {
28 assert(false);
29 }
30
31 void toCBuffer(OutBuffer buf, HdrGenState* hgs)
32 {
33 assert(false);
34 }
35
36 string kind()
37 {
38 assert(false);
39 }
40
41 void emitComment(Scope sc)
42 {
43 assert(false);
44 }
45
46 void toDocBuffer(OutBuffer buf)
47 {
48 assert(false);
49 }
50
51 EnumMember isEnumMember() { return this; }
52 }