Mercurial > projects > ddmd
diff dmd/LabelStatement.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/LabelStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/LabelStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -38,13 +38,13 @@ this.statement = statement; } - Statement syntaxCopy() + override Statement syntaxCopy() { LabelStatement s = new LabelStatement(loc, ident, statement.syntaxCopy()); return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { LabelDsymbol ls; FuncDeclaration fd = sc.parent.isFuncDeclaration(); @@ -66,7 +66,7 @@ return this; } - Statements flatten(Scope sc) + override Statements flatten(Scope sc) { Statements a = null; @@ -88,29 +88,29 @@ return a; } - bool usesEH() + override bool usesEH() { return statement ? statement.usesEH() : false; } - BE blockExit() + override BE blockExit() { //printf("LabelStatement.blockExit(%p)\n", this); return statement ? statement.blockExit() : BE.BEfallthru; } - bool comeFrom() + override bool comeFrom() { //printf("LabelStatement.comeFrom()\n"); return true; } - 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(ident.toChars()); buf.writebyte(':'); @@ -119,14 +119,14 @@ statement.toCBuffer(buf, hgs); } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { if (statement) statement = statement.inlineScan(iss); return this; } - void toIR(IRState* irs) + override void toIR(IRState* irs) { //printf("LabelStatement.toIR() %p, statement = %p\n", this, statement); Blockx* blx = irs.blx; @@ -150,4 +150,4 @@ if (statement) statement.toIR(&mystate); } -} \ No newline at end of file +}