Mercurial > projects > ddmd
annotate dmd/FuncAliasDeclaration.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 |
rev | line source |
---|---|
0 | 1 module dmd.FuncAliasDeclaration; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.FuncDeclaration; |
5 | |
6 import dmd.backend.Symbol; | |
7 import dmd.backend.Symbol; | |
8 | |
9 import dmd.Loc; | |
10 import dmd.STC; | |
11 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
12 import dmd.DDMDExtensions; |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
13 |
0 | 14 class FuncAliasDeclaration : FuncDeclaration |
15 { | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
16 mixin insertMemberExtension!(typeof(this)); |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
17 |
0 | 18 FuncDeclaration funcalias; |
19 | |
20 this(FuncDeclaration funcalias) | |
21 { | |
178 | 22 register(); |
0 | 23 super(funcalias.loc, funcalias.endloc, funcalias.ident, funcalias.storage_class, funcalias.type); |
24 assert(funcalias !is this); | |
25 this.funcalias = funcalias; | |
26 } | |
27 | |
72 | 28 override FuncAliasDeclaration isFuncAliasDeclaration() { return this; } |
0 | 29 |
72 | 30 override string kind() |
0 | 31 { |
32 return "function alias"; | |
33 } | |
34 | |
72 | 35 override Symbol* toSymbol() |
0 | 36 { |
37 assert(false); | |
38 } | |
72 | 39 } |