Mercurial > projects > ddmd
annotate dmd/ThisDeclaration.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | 10317f0c89a5 |
children | e28b18c23469 |
rev | line source |
---|---|
0 | 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 | |
72 | 19 override Dsymbol syntaxCopy(Dsymbol) |
0 | 20 { |
21 assert(false); | |
22 } | |
23 | |
72 | 24 override ThisDeclaration isThisDeclaration() { return this; } |
25 } |