0
|
1 module dmd.TypeReference;
|
|
2
|
114
|
3 import dmd.common;
|
0
|
4 import dmd.Type;
|
|
5 import dmd.MOD;
|
|
6 import dmd.TypeNext;
|
|
7 import dmd.OutBuffer;
|
|
8 import dmd.Loc;
|
|
9 import dmd.Scope;
|
|
10 import dmd.HdrGenState;
|
|
11 import dmd.Expression;
|
|
12 import dmd.Identifier;
|
135
|
13 import dmd.NullExp;
|
0
|
14 import dmd.CppMangleState;
|
|
15 import dmd.TY;
|
|
16
|
|
17 class TypeReference : TypeNext
|
|
18 {
|
|
19 this(Type t)
|
|
20 {
|
|
21 super(TY.init, null);
|
|
22 assert(false);
|
|
23 }
|
|
24
|
|
25 version (DumbClone) {
|
|
26 } else {
|
|
27 Type clone()
|
|
28 {
|
|
29 assert(false);
|
|
30 }
|
|
31 }
|
|
32
|
72
|
33 override Type syntaxCopy()
|
0
|
34 {
|
|
35 assert(false);
|
|
36 }
|
|
37
|
72
|
38 override Type semantic(Loc loc, Scope sc)
|
0
|
39 {
|
|
40 assert(false);
|
|
41 }
|
|
42
|
72
|
43 override ulong size(Loc loc)
|
0
|
44 {
|
|
45 assert(false);
|
|
46 }
|
|
47
|
72
|
48 override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
|
0
|
49 {
|
|
50 assert(false);
|
|
51 }
|
|
52
|
72
|
53 override Expression dotExp(Scope sc, Expression e, Identifier ident)
|
0
|
54 {
|
|
55 assert(false);
|
|
56 }
|
|
57
|
72
|
58 override Expression defaultInit(Loc loc)
|
0
|
59 {
|
135
|
60 version(LOGDEFAULTINIT) {
|
|
61 printf("TypeReference::defaultInit() '%s'\n", toChars());
|
|
62 }
|
|
63 return new NullExp(loc, this);
|
0
|
64 }
|
|
65
|
72
|
66 override bool isZeroInit(Loc loc)
|
0
|
67 {
|
|
68 assert(false);
|
|
69 }
|
|
70
|
|
71 version (CPP_MANGLE) {
|
|
72 void toCppMangle(OutBuffer buf, CppMangleState* cms)
|
|
73 {
|
|
74 assert(false);
|
|
75 }
|
|
76 }
|
72
|
77 }
|