diff dmd/DoStatement.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/DoStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/DoStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -29,13 +29,13 @@
 		condition = c;
 	}
 	
-    Statement syntaxCopy()
+    override Statement syntaxCopy()
 	{
 		DoStatement s = new DoStatement(loc, body_ ? body_.syntaxCopy() : null, condition.syntaxCopy());
 		return s;
 	}
 
-    Statement semantic(Scope sc)
+    override Statement semantic(Scope sc)
 	{
 		sc.noctor++;
 		if (body_)
@@ -50,22 +50,22 @@
 		return this;
 	}
 
-    bool hasBreak()
+    override bool hasBreak()
 	{
 		return true;
 	}
 
-    bool hasContinue()
+    override bool hasContinue()
 	{
 		return true;
 	}
 
-    bool usesEH()
+    override bool usesEH()
 	{
 		return body_ ? body_.usesEH() : false;
 	}
 
-    BE blockExit()
+    override BE blockExit()
 	{
 		BE result;
 
@@ -92,29 +92,29 @@
 		return result;
 	}
 
-    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)
 	{
 		body_ = body_ ? body_.inlineScan(iss) : null;
 		condition = condition.inlineScan(iss);
 		return this;
 	}
 
-    void toIR(IRState* irs)
+    override void toIR(IRState* irs)
 	{
 		Blockx *blx = irs.blx;
 
@@ -138,4 +138,4 @@
 		block_appendexp(mystate.contBlock, condition.toElem(&mystate));
 		block_next(blx, BCiftrue, mystate.breakBlock);
 	}
-}
\ No newline at end of file
+}