Mercurial > projects > ddmd
comparison dmd/TemplateThisParameter.d @ 162:438eaa11eed4
updated build script to use dmd2.039
some missing methods implemented
author | korDen |
---|---|
date | Tue, 21 Sep 2010 14:59:56 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
161:584dc990e12f | 162:438eaa11eed4 |
---|---|
17 Type specType; // type parameter: if !=NULL, this is the type specialization | 17 Type specType; // type parameter: if !=NULL, this is the type specialization |
18 Type defaultType; | 18 Type defaultType; |
19 | 19 |
20 this(Loc loc, Identifier ident, Type specType, Type defaultType) | 20 this(Loc loc, Identifier ident, Type specType, Type defaultType) |
21 { | 21 { |
22 assert(false); | |
23 super(loc, ident, specType, defaultType); | 22 super(loc, ident, specType, defaultType); |
24 } | 23 } |
25 | 24 |
26 override TemplateThisParameter isTemplateThisParameter() | 25 override TemplateThisParameter isTemplateThisParameter() |
27 { | 26 { |
28 assert(false); | 27 return this; |
29 } | 28 } |
30 | 29 |
31 override TemplateParameter syntaxCopy() | 30 override TemplateParameter syntaxCopy() |
32 { | 31 { |
33 assert(false); | 32 TemplateThisParameter tp = new TemplateThisParameter(loc, ident, specType, defaultType); |
33 if (tp.specType) | |
34 tp.specType = specType.syntaxCopy(); | |
35 if (defaultType) | |
36 tp.defaultType = defaultType.syntaxCopy(); | |
37 return tp; | |
34 } | 38 } |
35 | 39 |
36 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 40 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
37 { | 41 { |
38 assert(false); | 42 buf.writestring("this "); |
43 super.toCBuffer(buf, hgs); | |
39 } | 44 } |
40 } | 45 } |