Mercurial > projects > ddmd
comparison dmd/TypeExp.d @ 104:a1cf34da9ebe
+ TemplateDeclaration.toCBuffer
+ TypeExp.rvalue
+ TypeExp.toElem
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 16:35:41 +0200 |
parents | 2e2a5c3f943a |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
102:3ddadd0c4534 | 104:a1cf34da9ebe |
---|---|
1 module dmd.TypeExp; | 1 module dmd.TypeExp; |
2 | 2 |
3 import dmd.Expression; | 3 import dmd.Expression; |
4 import dmd.backend.TYM; | |
5 import dmd.backend.Util; | |
4 import dmd.backend.elem; | 6 import dmd.backend.elem; |
5 import dmd.Type; | 7 import dmd.Type; |
6 import dmd.OutBuffer; | 8 import dmd.OutBuffer; |
7 import dmd.Loc; | 9 import dmd.Loc; |
8 import dmd.Scope; | 10 import dmd.Scope; |
39 return this; | 41 return this; |
40 } | 42 } |
41 | 43 |
42 override void rvalue() | 44 override void rvalue() |
43 { | 45 { |
44 assert(false); | 46 error("type %s has no value", toChars()); |
45 } | 47 } |
46 | 48 |
47 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 49 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
48 { | 50 { |
49 type.toCBuffer(buf, null, hgs); | 51 type.toCBuffer(buf, null, hgs); |
54 return this; | 56 return this; |
55 } | 57 } |
56 | 58 |
57 override elem* toElem(IRState* irs) | 59 override elem* toElem(IRState* irs) |
58 { | 60 { |
59 assert(false); | 61 debug |
62 writef("TypeExp.toElem()\n"); | |
63 | |
64 error("type %s is not an expression", toChars()); | |
65 return el_long(TYint, 0); | |
60 } | 66 } |
61 } | 67 } |
62 | 68 |