Mercurial > projects > ddmd
diff dmd/ForeachStatement.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 | efb1e5bdf63c |
children | ef02e2e203c2 |
line wrap: on
line diff
--- a/dmd/ForeachStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/ForeachStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -98,7 +98,7 @@ cases = new Array(); } - Statement syntaxCopy() + override Statement syntaxCopy() { Arguments args = Argument.arraySyntaxCopy(arguments); Expression exp = aggr.syntaxCopy(); @@ -107,7 +107,7 @@ return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { //printf("ForeachStatement.semantic() %p\n", this); ScopeDsymbol sym; @@ -781,22 +781,22 @@ return result; } - bool hasBreak() + override bool hasBreak() { return true; } - bool hasContinue() + override bool hasContinue() { return true; } - bool usesEH() + override bool usesEH() { return body_.usesEH(); } - BE blockExit() + override BE blockExit() { BE result = BEfallthru; @@ -810,7 +810,7 @@ return result; } - bool comeFrom() + override bool comeFrom() { if (body_) return body_.comeFrom(); @@ -818,12 +818,12 @@ return false; } - Expression interpret(InterState istate) + override Expression interpret(InterState istate) { assert(false); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring(Token.toChars(op)); buf.writestring(" ("); @@ -851,7 +851,7 @@ buf.writenl(); } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { aggr = aggr.inlineScan(iss); if (body_) @@ -859,8 +859,8 @@ return this; } - void toIR(IRState* irs) + override void toIR(IRState* irs) { assert(false); } -} \ No newline at end of file +}