Mercurial > projects > ddmd
diff dmd/TryFinallyStatement.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 |
line wrap: on
line diff
--- a/dmd/TryFinallyStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/TryFinallyStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -29,17 +29,17 @@ this.finalbody = finalbody; } - Statement syntaxCopy() + override Statement syntaxCopy() { assert(false); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { //printf("TryFinallyStatement::semantic()\n"); body_ = body_.semantic(sc); @@ -61,29 +61,29 @@ return this; } - bool hasBreak() + override bool hasBreak() { assert(false); } - bool hasContinue() + override bool hasContinue() { assert(false); } - bool usesEH() + override bool usesEH() { assert(false); } - BE blockExit() + override BE blockExit() { if (body_) return body_.blockExit(); return BE.BEfallthru; } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { if (body_) body_ = body_.inlineScan(iss); @@ -101,7 +101,7 @@ * finalbody * _ret */ - void toIR(IRState* irs) + override void toIR(IRState* irs) { //printf("TryFinallyStatement.toIR()\n"); Blockx* blx = irs.blx; @@ -157,4 +157,4 @@ list_append(&finallyblock.Bsucc, blx.curblock); list_append(&retblock.Bsucc, blx.curblock); } -} \ No newline at end of file +}