diff dmd/GotoStatement.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/GotoStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/GotoStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -34,13 +34,13 @@
 		this.ident = ident;
 	}
 	
-    Statement syntaxCopy()
+    override Statement syntaxCopy()
 	{
 		GotoStatement s = new GotoStatement(loc, ident);
 		return s;
 	}
 	
-    Statement semantic(Scope sc)
+    override Statement semantic(Scope sc)
 	{
 		FuncDeclaration fd = sc.parent.isFuncDeclaration();
 
@@ -69,18 +69,18 @@
 		return this;
 	}
 
-    BE blockExit()
+    override BE blockExit()
 	{
 		//printf("GotoStatement.blockExit(%p)\n", this);
 		return BE.BEgoto;
 	}
 	
-    Expression interpret(InterState istate)
+    override Expression interpret(InterState istate)
 	{
 		assert(false);
 	}
 
-    void toIR(IRState* irs)
+    override void toIR(IRState* irs)
 	{
 		block* b;
 		block* bdest;
@@ -121,7 +121,7 @@
 		block_next(blx,BCgoto,null);
 	}
 	
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		buf.writestring("goto ");
 		buf.writestring(ident.toChars());
@@ -129,5 +129,5 @@
 		buf.writenl();
 	}
 	
-    GotoStatement isGotoStatement() { return this; }
-}
\ No newline at end of file
+    override GotoStatement isGotoStatement() { return this; }
+}