Mercurial > projects > ddmd
comparison dmd/TemplateThisParameter.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 |
---|---|
7 import dmd.Identifier; | 7 import dmd.Identifier; |
8 import dmd.TemplateParameter; | 8 import dmd.TemplateParameter; |
9 import dmd.OutBuffer; | 9 import dmd.OutBuffer; |
10 import dmd.HdrGenState; | 10 import dmd.HdrGenState; |
11 | 11 |
12 import dmd.DDMDExtensions; | |
13 | |
12 class TemplateThisParameter : TemplateTypeParameter | 14 class TemplateThisParameter : TemplateTypeParameter |
13 { | 15 { |
16 mixin insertMemberExtension!(typeof(this)); | |
17 | |
14 /* Syntax: | 18 /* Syntax: |
15 * this ident : specType = defaultType | 19 * this ident : specType = defaultType |
16 */ | 20 */ |
17 Type specType; // type parameter: if !=NULL, this is the type specialization | 21 Type specType; // type parameter: if !=NULL, this is the type specialization |
18 Type defaultType; | 22 Type defaultType; |