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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
179
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
1 module dmd.SharedStaticCtorDeclaration;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
2
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
3 import dmd.StaticCtorDeclaration;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
4 import dmd.Loc;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
5 import dmd.Dsymbol;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
6 import dmd.OutBuffer;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
7 import dmd.HdrGenState;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
8 import dmd.FuncDeclaration;
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
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
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
12 class SharedStaticCtorDeclaration : StaticCtorDeclaration
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
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
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
16 this(Loc loc, Loc endloc)
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
17 {
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
18 super(loc, endloc, "_sharedStaticCtor");
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
19 }
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
20
192
eb38fdcb3e62 updated to compile with dmd2.062
korDen
parents: 187
diff changeset
21 override Dsymbol syntaxCopy(Dsymbol s)
179
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
22 {
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
23 assert(!s);
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
24 SharedStaticCtorDeclaration scd = new SharedStaticCtorDeclaration(loc, endloc);
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
25 return FuncDeclaration.syntaxCopy(scd);
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
26 }
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
27
192
eb38fdcb3e62 updated to compile with dmd2.062
korDen
parents: 187
diff changeset
28 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
179
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
29 {
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
30 buf.writestring("shared ");
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
31 StaticCtorDeclaration.toCBuffer(buf, hgs);
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
32 }
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
33
192
eb38fdcb3e62 updated to compile with dmd2.062
korDen
parents: 187
diff changeset
34 override SharedStaticCtorDeclaration isSharedStaticCtorDeclaration() { return this; }
179
cd48cb899aee Updated to dmd2.040
korDen
parents:
diff changeset
35 }