Mercurial > projects > ddmd
diff dmd/ThrowStatement.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 | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/ThrowStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/ThrowStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -29,13 +29,13 @@ this.exp = exp; } - Statement syntaxCopy() + override Statement syntaxCopy() { ThrowStatement s = new ThrowStatement(loc, exp.syntaxCopy()); return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { //printf("ThrowStatement::semantic()\n"); @@ -51,24 +51,24 @@ return this; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - BE blockExit() + override BE blockExit() { return BE.BEthrow; // obviously } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { if (exp) exp = exp.inlineScan(iss); return this; } - void toIR(IRState* irs) + override void toIR(IRState* irs) { // throw(exp) @@ -83,4 +83,4 @@ } block_appendexp(blx.curblock, e); } -} \ No newline at end of file +}