Mercurial > projects > ddmd
diff dmd/IfStatement.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/IfStatement.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/IfStatement.d Sat Aug 28 16:19:48 2010 +0200 @@ -47,7 +47,7 @@ this.elsebody = elsebody; } - Statement syntaxCopy() + override Statement syntaxCopy() { Statement i = null; if (ifbody) @@ -62,7 +62,7 @@ return s; } - Statement semantic(Scope sc) + override Statement semantic(Scope sc) { condition = condition.semantic(sc); condition = resolveProperties(sc, condition); @@ -119,22 +119,22 @@ return this; } - 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); } - bool usesEH() + override bool usesEH() { assert(false); } - BE blockExit() + override BE blockExit() { //printf("IfStatement::blockExit(%p)\n", this); @@ -172,9 +172,9 @@ return result; } - IfStatement isIfStatement() { return this; } + override IfStatement isIfStatement() { return this; } - int inlineCost(InlineCostState* ics) + override int inlineCost(InlineCostState* ics) { int cost; @@ -214,7 +214,7 @@ return cost; } - Expression doInline(InlineDoState ids) + override Expression doInline(InlineDoState ids) { Expression econd; Expression e1; @@ -254,7 +254,7 @@ return e; } - Statement inlineScan(InlineScanState* iss) + override Statement inlineScan(InlineScanState* iss) { condition = condition.inlineScan(iss); if (ifbody) @@ -264,7 +264,7 @@ return this; } - void toIR(IRState* irs) + override void toIR(IRState* irs) { elem* e; Blockx* blx = irs.blx; @@ -318,4 +318,4 @@ block_next(blx, BC.BCgoto, bexit); } -} \ No newline at end of file +}