Mercurial > projects > ddmd
diff dmd/WhileStatement.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 | cab4c37afb89 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/WhileStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/WhileStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -24,13 +24,13 @@ body_ = b; } - Statement syntaxCopy() + override Statement syntaxCopy() { WhileStatement s = new WhileStatement(loc, condition.syntaxCopy(), body_ ? body_.syntaxCopy() : null); return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { /* Rewrite as a for(;condition;) loop */ @@ -40,48 +40,48 @@ return s; } - bool hasBreak() + override bool hasBreak() { return true; } - bool hasContinue() + override bool hasContinue() { assert(false); } - bool usesEH() + override bool usesEH() { assert(false); } - BE blockExit() + override BE blockExit() { assert(false); } - bool comeFrom() + override bool comeFrom() { assert(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) { assert(false); } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { assert(false); } - void toIR(IRState* irs) + override void toIR(IRState* irs) { assert(false); } -} \ No newline at end of file +}