Mercurial > projects > ddmd
comparison dmd/SharedStaticCtorDeclaration.d @ 179:cd48cb899aee
Updated to dmd2.040
author | korDen |
---|---|
date | Sun, 17 Oct 2010 20:56:07 +0400 |
parents | |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
178:e3afd1303184 | 179:cd48cb899aee |
---|---|
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 | |
10 class SharedStaticCtorDeclaration : StaticCtorDeclaration | |
11 { | |
12 this(Loc loc, Loc endloc) | |
13 { | |
14 super(loc, endloc, "_sharedStaticCtor"); | |
15 } | |
16 | |
17 Dsymbol syntaxCopy(Dsymbol s) | |
18 { | |
19 assert(!s); | |
20 SharedStaticCtorDeclaration scd = new SharedStaticCtorDeclaration(loc, endloc); | |
21 return FuncDeclaration.syntaxCopy(scd); | |
22 } | |
23 | |
24 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | |
25 { | |
26 buf.writestring("shared "); | |
27 StaticCtorDeclaration.toCBuffer(buf, hgs); | |
28 } | |
29 | |
30 SharedStaticCtorDeclaration isSharedStaticCtorDeclaration() { return this; } | |
31 } |