0
|
1 module dmd.StructInitializer;
|
|
2
|
|
3 import dmd.Initializer;
|
|
4 import dmd.ArrayTypes;
|
|
5 import dmd.Array;
|
|
6 import dmd.Loc;
|
|
7 import dmd.Type;
|
|
8 import dmd.Scope;
|
|
9 import dmd.Identifier;
|
|
10 import dmd.AggregateDeclaration;
|
|
11 import dmd.OutBuffer;
|
|
12 import dmd.HdrGenState;
|
|
13 import dmd.Expression;
|
|
14
|
|
15 import dmd.backend.dt_t;
|
|
16
|
|
17 class StructInitializer : Initializer
|
|
18 {
|
|
19 Identifiers field; // of Identifier *'s
|
|
20 Initializers value; // parallel array of Initializer *'s
|
|
21
|
|
22 Array vars; // parallel array of VarDeclaration *'s
|
|
23 AggregateDeclaration ad; // which aggregate this is for
|
|
24
|
|
25 this(Loc loc)
|
|
26 {
|
|
27 assert(false);
|
|
28 super(loc);
|
|
29 }
|
|
30
|
|
31 Initializer syntaxCopy()
|
|
32 {
|
|
33 assert(false);
|
|
34 }
|
|
35
|
|
36 void addInit(Identifier field, Initializer value)
|
|
37 {
|
|
38 assert(false);
|
|
39 }
|
|
40
|
|
41 Initializer semantic(Scope sc, Type t)
|
|
42 {
|
|
43 assert(false);
|
|
44 }
|
|
45
|
|
46 Expression toExpression()
|
|
47 {
|
|
48 assert(false);
|
|
49 }
|
|
50
|
|
51 void toCBuffer(OutBuffer buf, HdrGenState* hgs)
|
|
52 {
|
|
53 assert(false);
|
|
54 }
|
|
55
|
|
56 dt_t* toDt()
|
|
57 {
|
|
58 assert(false);
|
|
59 }
|
|
60
|
|
61 StructInitializer isStructInitializer() { return this; }
|
|
62 } |