0
|
1 module dmd.ThisDeclaration;
|
|
2
|
114
|
3 import dmd.common;
|
0
|
4 import dmd.VarDeclaration;
|
|
5 import dmd.Dsymbol;
|
|
6 import dmd.Loc;
|
|
7 import dmd.Type;
|
|
8 import dmd.Id;
|
|
9
|
|
10 // For the "this" parameter to member functions
|
|
11
|
|
12 class ThisDeclaration : VarDeclaration
|
|
13 {
|
|
14 this(Loc loc, Type t)
|
|
15 {
|
|
16 super(loc, t, Id.This, null);
|
|
17 noauto = true;
|
|
18 }
|
|
19
|
72
|
20 override Dsymbol syntaxCopy(Dsymbol)
|
0
|
21 {
|
|
22 assert(false);
|
|
23 }
|
|
24
|
72
|
25 override ThisDeclaration isThisDeclaration() { return this; }
|
|
26 }
|