0
|
1 module dmd.WithStatement;
|
|
2
|
|
3 import dmd.Statement;
|
|
4 import dmd.Expression;
|
|
5 import dmd.VarDeclaration;
|
|
6 import dmd.Loc;
|
|
7 import dmd.OutBuffer;
|
|
8 import dmd.HdrGenState;
|
|
9 import dmd.InlineScanState;
|
|
10 import dmd.IRState;
|
|
11 import dmd.Scope;
|
|
12 import dmd.BE;
|
|
13
|
|
14 class WithStatement : Statement
|
|
15 {
|
|
16 Expression exp;
|
|
17 Statement body_;
|
|
18 VarDeclaration wthis;
|
|
19
|
|
20 this(Loc loc, Expression exp, Statement body_)
|
|
21 {
|
|
22 super(loc);
|
49
|
23 this.exp = exp;
|
|
24 this.body_ = body_;
|
|
25 wthis = null;
|
0
|
26 }
|
|
27
|
72
|
28 override Statement syntaxCopy()
|
0
|
29 {
|
|
30 assert(false);
|
|
31 }
|
|
32
|
72
|
33 override Statement semantic(Scope sc)
|
0
|
34 {
|
|
35 assert(false);
|
|
36 }
|
|
37
|
72
|
38 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
|
0
|
39 {
|
|
40 assert(false);
|
|
41 }
|
|
42
|
72
|
43 override bool usesEH()
|
0
|
44 {
|
|
45 assert(false);
|
|
46 }
|
|
47
|
72
|
48 override BE blockExit()
|
0
|
49 {
|
|
50 assert(false);
|
|
51 }
|
|
52
|
72
|
53 override Statement inlineScan(InlineScanState* iss)
|
0
|
54 {
|
|
55 assert(false);
|
|
56 }
|
|
57
|
72
|
58 override void toIR(IRState* irs)
|
0
|
59 {
|
|
60 assert(false);
|
|
61 }
|
72
|
62 }
|