Mercurial > projects > ddmd
diff dmd/AnonDeclaration.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 | a8b50ff7f201 |
children | 7e0d548de9e6 |
line wrap: on
line diff
--- a/dmd/AnonDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/AnonDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -1,18 +1,18 @@ -module dmd.AnonDeclaration; - -import dmd.OutBuffer; -import dmd.Loc; -import dmd.Scope; -import dmd.Array; -import dmd.AttribDeclaration; -import dmd.HdrGenState; +module dmd.AnonDeclaration; + +import dmd.OutBuffer; +import dmd.Loc; +import dmd.Scope; +import dmd.Array; +import dmd.AttribDeclaration; +import dmd.HdrGenState; import dmd.Dsymbol; import dmd.AggregateDeclaration; import dmd.AnonymousAggregateDeclaration; import dmd.STC; import dmd.Module; -import dmd.VarDeclaration; - +import dmd.VarDeclaration; + class AnonDeclaration : AttribDeclaration { int isunion; @@ -25,16 +25,16 @@ this.isunion = isunion; } - Dsymbol syntaxCopy(Dsymbol s) + override Dsymbol syntaxCopy(Dsymbol s) { - AnonDeclaration ad; - - assert(!s); - ad = new AnonDeclaration(loc, isunion, Dsymbol.arraySyntaxCopy(decl)); + AnonDeclaration ad; + + assert(!s); + ad = new AnonDeclaration(loc, isunion, Dsymbol.arraySyntaxCopy(decl)); return ad; } - void semantic(Scope sc) + override void semantic(Scope sc) { //printf("\tAnonDeclaration::semantic %s %p\n", isunion ? "union" : "struct", this); @@ -160,12 +160,12 @@ } } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - string kind() + override string kind() { assert(false); }