Mercurial > projects > ddmd
diff dmd/GotoDefaultStatement.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 | ee3a9f34dc48 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/GotoDefaultStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/GotoDefaultStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -26,13 +26,13 @@ sw = null; } - Statement syntaxCopy() + override Statement syntaxCopy() { GotoDefaultStatement s = new GotoDefaultStatement(loc); return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { sw = sc.sw; if (!sw) @@ -40,22 +40,22 @@ return this; } - Expression interpret(InterState istate) + override Expression interpret(InterState istate) { assert(false); } - BE blockExit() + override BE blockExit() { return BEgoto; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring("goto default;\n"); } - void toIR(IRState *irs) + override void toIR(IRState *irs) { block *b; Blockx *blx = irs.blx; @@ -86,4 +86,4 @@ incUsage(irs, loc); block_next(blx,BCgoto,null); } -} \ No newline at end of file +}