diff dmd/SwitchStatement.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 ad4792a1cfd6
line wrap: on
line diff
--- a/dmd/SwitchStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/SwitchStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -75,14 +75,14 @@
 		gotoCases = new Array();
 	}
 	
-    Statement syntaxCopy()
+    override Statement syntaxCopy()
 	{
 		SwitchStatement s = new SwitchStatement(loc,
 			condition.syntaxCopy(), body_.syntaxCopy(), isFinal);
 		return s;
 	}
 	
-    Statement semantic(Scope sc)
+    override Statement semantic(Scope sc)
 	{
 		//printf("SwitchStatement.semantic(%p)\n", this);
 		tf = sc.tf;
@@ -213,17 +213,17 @@
 		return this;
 	}
 	
-    bool hasBreak()
+    override bool hasBreak()
 	{
 		assert(false);
 	}
 	
-    bool usesEH()
+    override bool usesEH()
 	{
 		assert(false);
 	}
 	
-    BE blockExit()
+    override BE blockExit()
 	{
 		BE result = BE.BEnone;
 		if (condition.canThrow())
@@ -243,17 +243,17 @@
 		return result;
 	}
 
-    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)
 	{
 		//printf("SwitchStatement.inlineScan()\n");
 		condition = condition.inlineScan(iss);
@@ -271,7 +271,7 @@
 		return this;
 	}
 
-    void toIR(IRState* irs)
+    override void toIR(IRState* irs)
 	{
 		int string;
 		Blockx* blx = irs.blx;
@@ -444,4 +444,4 @@
 		 */
 		block_goto(blx, BCgoto, mystate.breakBlock);
 	}
-}
\ No newline at end of file
+}