72
|
1 module dmd.NewAnonClassExp;
|
|
2
|
114
|
3 import dmd.common;
|
72
|
4 import dmd.Expression;
|
|
5 import dmd.OutBuffer;
|
|
6 import dmd.Loc;
|
|
7 import dmd.Scope;
|
|
8 import dmd.ClassDeclaration;
|
|
9 import dmd.HdrGenState;
|
0
|
10 import dmd.ArrayTypes;
|
72
|
11 import dmd.TOK;
|
|
12
|
0
|
13 class NewAnonClassExp : Expression
|
|
14 {
|
|
15 /* thisexp.new(newargs) class baseclasses { } (arguments)
|
|
16 */
|
|
17 Expression thisexp; // if !NULL, 'this' for class being allocated
|
|
18 Expressions newargs; // Array of Expression's to call new operator
|
|
19 ClassDeclaration cd; // class being instantiated
|
|
20 Expressions arguments; // Array of Expression's to call class constructor
|
|
21
|
|
22 this(Loc loc, Expression thisexp, Expressions newargs, ClassDeclaration cd, Expressions arguments)
|
|
23 {
|
|
24 assert(false);
|
|
25 super(loc, TOK.init, 0);
|
|
26 }
|
|
27
|
72
|
28 override Expression syntaxCopy()
|
0
|
29 {
|
|
30 assert(false);
|
|
31 }
|
|
32
|
72
|
33 override Expression semantic(Scope sc)
|
0
|
34 {
|
|
35 assert(false);
|
|
36 }
|
|
37
|
72
|
38 override bool checkSideEffect(int flag)
|
0
|
39 {
|
|
40 assert(false);
|
|
41 }
|
|
42
|
|
43 void toCBuffer(OutBuffer buf, HdrGenState hgs)
|
|
44 {
|
|
45 assert(false);
|
|
46 }
|
|
47
|
72
|
48 override bool canThrow()
|
0
|
49 {
|
|
50 assert(false);
|
|
51 }
|
|
52 }
|
|
53
|