0
|
1 module dmd.TemplateThisParameter;
|
|
2
|
114
|
3 import dmd.common;
|
0
|
4 import dmd.TemplateTypeParameter;
|
|
5 import dmd.Type;
|
|
6 import dmd.Loc;
|
|
7 import dmd.Identifier;
|
|
8 import dmd.TemplateParameter;
|
|
9 import dmd.OutBuffer;
|
|
10 import dmd.HdrGenState;
|
|
11
|
|
12 class TemplateThisParameter : TemplateTypeParameter
|
|
13 {
|
|
14 /* Syntax:
|
|
15 * this ident : specType = defaultType
|
|
16 */
|
|
17 Type specType; // type parameter: if !=NULL, this is the type specialization
|
|
18 Type defaultType;
|
|
19
|
|
20 this(Loc loc, Identifier ident, Type specType, Type defaultType)
|
|
21 {
|
|
22 assert(false);
|
|
23 super(loc, ident, specType, defaultType);
|
|
24 }
|
|
25
|
72
|
26 override TemplateThisParameter isTemplateThisParameter()
|
0
|
27 {
|
|
28 assert(false);
|
|
29 }
|
|
30
|
72
|
31 override TemplateParameter syntaxCopy()
|
0
|
32 {
|
|
33 assert(false);
|
|
34 }
|
|
35
|
72
|
36 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
|
0
|
37 {
|
|
38 assert(false);
|
|
39 }
|
72
|
40 }
|