0
|
1 module dmd.StaticAssertStatement;
|
|
2
|
|
3 import dmd.Statement;
|
|
4 import dmd.StaticAssert;
|
|
5 import dmd.OutBuffer;
|
|
6 import dmd.HdrGenState;
|
|
7 import dmd.Scope;
|
|
8 import dmd.Loc;
|
|
9
|
|
10 class StaticAssertStatement : Statement
|
|
11 {
|
|
12 StaticAssert sa;
|
|
13
|
|
14 this(StaticAssert sa)
|
|
15 {
|
|
16 super(sa.loc);
|
|
17 this.sa = sa;
|
|
18 }
|
|
19
|
72
|
20 override Statement syntaxCopy()
|
0
|
21 {
|
51
|
22 StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null));
|
|
23 return s;
|
0
|
24 }
|
|
25
|
72
|
26 override Statement semantic(Scope sc)
|
0
|
27 {
|
|
28 sa.semantic2(sc);
|
|
29 return null;
|
|
30 }
|
|
31
|
72
|
32 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
|
0
|
33 {
|
|
34 assert(false);
|
|
35 }
|
72
|
36 }
|