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