diff dmd/CaseStatement.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/CaseStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/CaseStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -42,13 +42,13 @@
 		this.statement = s;
 	}
 	
-    Statement syntaxCopy()
+    override Statement syntaxCopy()
 	{
 		CaseStatement s = new CaseStatement(loc, exp.syntaxCopy(), statement.syntaxCopy());
 		return s;
 	}
 	
-    Statement semantic(Scope sc)
+    override Statement semantic(Scope sc)
 	{
 		SwitchStatement sw = sc.sw;
 
@@ -119,7 +119,7 @@
 		return this;
 	}
 	
-    int opCmp(Object obj)
+    override int opCmp(Object obj)
 	{
 		// Sort cases so we can do an efficient lookup
 		CaseStatement cs2 = cast(CaseStatement)obj;
@@ -127,32 +127,32 @@
 		return exp.opCmp(cs2.exp);
 	}
 	
-    bool usesEH()
+    override bool usesEH()
 	{
 		assert(false);
 	}
 	
-    BE blockExit()
+    override BE blockExit()
 	{
 		return statement.blockExit();
 	}
 	
-    bool comeFrom()
+    override bool comeFrom()
 	{
 		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)
 	{
 		assert(false);
 	}
 
-    Statement inlineScan(InlineScanState* iss)
+    override Statement inlineScan(InlineScanState* iss)
 	{
 		//printf("CaseStatement.inlineScan()\n");
 		exp = exp.inlineScan(iss);
@@ -161,7 +161,7 @@
 		return this;
 	}
 
-    void toIR(IRState *irs)
+    override void toIR(IRState *irs)
 	{
 		Blockx* blx = irs.blx;
 		block* bcase = blx.curblock;
@@ -178,4 +178,4 @@
 		if (statement)
 			statement.toIR(irs);
 	}
-}
\ No newline at end of file
+}