Mercurial > projects > ddmd
annotate dmd/SharedStaticCtorDeclaration.d @ 192:eb38fdcb3e62 default tip
updated to compile with dmd2.062
author | korDen |
---|---|
date | Sat, 02 Mar 2013 01:25:52 -0800 |
parents | b0d41ff5e0df |
children |
rev | line source |
---|---|
179 | 1 module dmd.SharedStaticCtorDeclaration; |
2 | |
3 import dmd.StaticCtorDeclaration; | |
4 import dmd.Loc; | |
5 import dmd.Dsymbol; | |
6 import dmd.OutBuffer; | |
7 import dmd.HdrGenState; | |
8 import dmd.FuncDeclaration; | |
9 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
179
diff
changeset
|
10 import dmd.DDMDExtensions; |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
179
diff
changeset
|
11 |
179 | 12 class SharedStaticCtorDeclaration : StaticCtorDeclaration |
13 { | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
179
diff
changeset
|
14 mixin insertMemberExtension!(typeof(this)); |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
179
diff
changeset
|
15 |
179 | 16 this(Loc loc, Loc endloc) |
17 { | |
18 super(loc, endloc, "_sharedStaticCtor"); | |
19 } | |
20 | |
192 | 21 override Dsymbol syntaxCopy(Dsymbol s) |
179 | 22 { |
23 assert(!s); | |
24 SharedStaticCtorDeclaration scd = new SharedStaticCtorDeclaration(loc, endloc); | |
25 return FuncDeclaration.syntaxCopy(scd); | |
26 } | |
27 | |
192 | 28 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
179 | 29 { |
30 buf.writestring("shared "); | |
31 StaticCtorDeclaration.toCBuffer(buf, hgs); | |
32 } | |
33 | |
192 | 34 override SharedStaticCtorDeclaration isSharedStaticCtorDeclaration() { return this; } |
179 | 35 } |