179
|
1 module dmd.SharedStaticDtorDeclaration;
|
|
2
|
|
3 import dmd.StaticDtorDeclaration;
|
|
4 import dmd.Loc;
|
|
5 import dmd.Dsymbol;
|
|
6 import dmd.OutBuffer;
|
|
7 import dmd.HdrGenState;
|
|
8 import dmd.FuncDeclaration;
|
|
9
|
|
10 class SharedStaticDtorDeclaration : StaticDtorDeclaration
|
|
11 {
|
|
12 this(Loc loc, Loc endloc)
|
|
13 {
|
|
14 super(loc, endloc, "_sharedStaticDtor");
|
|
15 }
|
|
16
|
|
17 Dsymbol syntaxCopy(Dsymbol s)
|
|
18 {
|
|
19 assert(!s);
|
|
20 SharedStaticDtorDeclaration sdd = new SharedStaticDtorDeclaration(loc, endloc);
|
|
21 return FuncDeclaration.syntaxCopy(sdd);
|
|
22 }
|
|
23
|
|
24 void toCBuffer(OutBuffer buf, HdrGenState* hgs)
|
|
25 {
|
|
26 if (!hgs.hdrgen)
|
|
27 {
|
|
28 buf.writestring("shared ");
|
|
29 StaticDtorDeclaration.toCBuffer(buf, hgs);
|
|
30 }
|
|
31 }
|
|
32
|
|
33 SharedStaticDtorDeclaration isSharedStaticDtorDeclaration() { return this; }
|
|
34 } |