Mercurial > projects > ddmd
comparison dmd/ThisDeclaration.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | 2e2a5c3f943a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:10317f0c89a5 |
---|---|
1 module dmd.ThisDeclaration; | |
2 | |
3 import dmd.VarDeclaration; | |
4 import dmd.Dsymbol; | |
5 import dmd.Loc; | |
6 import dmd.Type; | |
7 import dmd.Id; | |
8 | |
9 // For the "this" parameter to member functions | |
10 | |
11 class ThisDeclaration : VarDeclaration | |
12 { | |
13 this(Loc loc, Type t) | |
14 { | |
15 super(loc, t, Id.This, null); | |
16 noauto = true; | |
17 } | |
18 | |
19 Dsymbol syntaxCopy(Dsymbol) | |
20 { | |
21 assert(false); | |
22 } | |
23 | |
24 ThisDeclaration isThisDeclaration() { return this; } | |
25 } |