comparison dmd/NewAnonClassExp.d @ 187:b0d41ff5e0df

Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author Abscissa
date Tue, 07 Jun 2011 23:37:34 -0400
parents e3afd1303184
children
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
13 import dmd.HdrGenState; 13 import dmd.HdrGenState;
14 import dmd.ArrayTypes; 14 import dmd.ArrayTypes;
15 import dmd.TOK; 15 import dmd.TOK;
16 import dmd.expression.Util; 16 import dmd.expression.Util;
17 17
18 import dmd.DDMDExtensions;
19
18 class NewAnonClassExp : Expression 20 class NewAnonClassExp : Expression
19 { 21 {
22 mixin insertMemberExtension!(typeof(this));
23
20 /* thisexp.new(newargs) class baseclasses { } (arguments) 24 /* thisexp.new(newargs) class baseclasses { } (arguments)
21 */ 25 */
22 Expression thisexp; // if !NULL, 'this' for class being allocated 26 Expression thisexp; // if !NULL, 'this' for class being allocated
23 Expressions newargs; // Array of Expression's to call new operator 27 Expressions newargs; // Array of Expression's to call new operator
24 ClassDeclaration cd; // class being instantiated 28 ClassDeclaration cd; // class being instantiated