Mercurial > projects > ddmd
comparison dmd/NewAnonClassExp.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | 2e2a5c3f943a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:10317f0c89a5 |
---|---|
1 module dmd.NewAnonClassExp; | |
2 | |
3 import dmd.Expression; | |
4 import dmd.OutBuffer; | |
5 import dmd.Loc; | |
6 import dmd.Scope; | |
7 import dmd.ClassDeclaration; | |
8 import dmd.HdrGenState; | |
9 import dmd.ArrayTypes; | |
10 import dmd.TOK; | |
11 | |
12 class NewAnonClassExp : Expression | |
13 { | |
14 /* thisexp.new(newargs) class baseclasses { } (arguments) | |
15 */ | |
16 Expression thisexp; // if !NULL, 'this' for class being allocated | |
17 Expressions newargs; // Array of Expression's to call new operator | |
18 ClassDeclaration cd; // class being instantiated | |
19 Expressions arguments; // Array of Expression's to call class constructor | |
20 | |
21 this(Loc loc, Expression thisexp, Expressions newargs, ClassDeclaration cd, Expressions arguments) | |
22 { | |
23 assert(false); | |
24 super(loc, TOK.init, 0); | |
25 } | |
26 | |
27 Expression syntaxCopy() | |
28 { | |
29 assert(false); | |
30 } | |
31 | |
32 Expression semantic(Scope sc) | |
33 { | |
34 assert(false); | |
35 } | |
36 | |
37 bool checkSideEffect(int flag) | |
38 { | |
39 assert(false); | |
40 } | |
41 | |
42 void toCBuffer(OutBuffer buf, HdrGenState hgs) | |
43 { | |
44 assert(false); | |
45 } | |
46 | |
47 bool canThrow() | |
48 { | |
49 assert(false); | |
50 } | |
51 } | |
52 |