diff dmd/CompileStatement.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 460959608115
children e28b18c23469
line wrap: on
line diff
--- a/dmd/CompileStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/CompileStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -24,14 +24,14 @@
 		this.exp = exp;
 	}
 
-	Statement syntaxCopy()
+	override Statement syntaxCopy()
 	{
 		Expression e = exp.syntaxCopy();
 		CompileStatement es = new CompileStatement(loc, e);
 		return es;
 	}
 
-	void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		buf.writestring("mixin(");
 		exp.toCBuffer(buf, hgs);
@@ -40,7 +40,7 @@
 			buf.writenl();
 	}
 
-	Statements flatten(Scope sc)
+	override Statements flatten(Scope sc)
 	{
 		//printf("CompileStatement::flatten() %s\n", exp->toChars());
 		exp = exp.semantic(sc);
@@ -65,7 +65,7 @@
 		return a;
 	}
 
-	Statement semantic(Scope sc)
+	override Statement semantic(Scope sc)
 	{
 		//printf("CompileStatement::semantic() %s\n", exp->toChars());
 		Statements a = flatten(sc);