Mercurial > projects > ddmd
diff dmd/FuncExp.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 | ecf732dfe11e |
children | df6d0f967680 |
line wrap: on
line diff
--- a/dmd/FuncExp.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/FuncExp.d Sat Aug 28 16:19:48 2010 +0200 @@ -1,14 +1,14 @@ -module dmd.FuncExp; - -import dmd.Expression; -import dmd.backend.elem; -import dmd.OutBuffer; -import dmd.Loc; -import dmd.Scope; -import dmd.InlineCostState; -import dmd.IRState; -import dmd.HdrGenState; -import dmd.FuncLiteralDeclaration; +module dmd.FuncExp; + +import dmd.Expression; +import dmd.backend.elem; +import dmd.OutBuffer; +import dmd.Loc; +import dmd.Scope; +import dmd.InlineCostState; +import dmd.IRState; +import dmd.HdrGenState; +import dmd.FuncLiteralDeclaration; import dmd.TOK; import dmd.TypeFunction; import dmd.TypeDelegate; @@ -19,8 +19,8 @@ import dmd.backend.Util; import dmd.codegen.Util; import dmd.backend.TYM; -import dmd.backend.Symbol; - +import dmd.backend.Symbol; + class FuncExp : Expression { FuncLiteralDeclaration fd; @@ -31,12 +31,12 @@ this.fd = fd; } - Expression syntaxCopy() + override Expression syntaxCopy() { return new FuncExp(loc, cast(FuncLiteralDeclaration)fd.syntaxCopy(null)); } - Expression semantic(Scope sc) + override Expression semantic(Scope sc) { version (LOGSEMANTIC) { printf("FuncExp.semantic(%s)\n", toChars()); @@ -84,22 +84,22 @@ return this; } - void scanForNestedRef(Scope sc) + override void scanForNestedRef(Scope sc) { assert(false); } - string toChars() + override string toChars() { return fd.toChars(); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - elem* toElem(IRState* irs) + override elem* toElem(IRState* irs) { elem* e; Symbol* s; @@ -118,7 +118,7 @@ return e; } - int inlineCost(InlineCostState* ics) + override int inlineCost(InlineCostState* ics) { assert(false); }