diff dmd/ExpStatement.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 43073c7c7769
line wrap: on
line diff
--- a/dmd/ExpStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/ExpStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -31,14 +31,14 @@
 		this.exp = exp;
 	}
 	
-    Statement syntaxCopy()
+    override Statement syntaxCopy()
 	{
 		Expression e = exp ? exp.syntaxCopy() : null;
 		ExpStatement es = new ExpStatement(loc, e);
 		return es;
 	}
 	
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		if (exp)
 			exp.toCBuffer(buf, hgs);
@@ -47,7 +47,7 @@
 			buf.writenl();
 	}
 	
-    Statement semantic(Scope sc)
+    override Statement semantic(Scope sc)
 	{
 		if (exp)
 		{
@@ -66,7 +66,7 @@
 		return this;
 	}
 
-    Expression interpret(InterState istate)
+    override Expression interpret(InterState istate)
 	{
 version (LOG) {
 		printf("ExpStatement.interpret(%s)\n", exp ? exp.toChars() : "");
@@ -84,7 +84,7 @@
 		return null;
 	}
 
-    BE blockExit()
+    override BE blockExit()
 	{
 		BE result = BE.BEfallthru;
 
@@ -105,12 +105,12 @@
 		return result;
 	}
 
-    int inlineCost(InlineCostState* ics)
+    override int inlineCost(InlineCostState* ics)
 	{
 		return exp ? exp.inlineCost(ics) : 0;
 	}
 
-    Expression doInline(InlineDoState ids)
+    override Expression doInline(InlineDoState ids)
 	{
 	version (LOG) {
 		if (exp) printf("ExpStatement.doInline() '%s'\n", exp.toChars());
@@ -118,7 +118,7 @@
 		return exp ? exp.doInline(ids) : null;
 	}
 
-    Statement inlineScan(InlineScanState* iss)
+    override Statement inlineScan(InlineScanState* iss)
 	{
 	version (LOG) {
 		printf("ExpStatement.inlineScan(%s)\n", toChars());
@@ -128,7 +128,7 @@
 		return this;
 	}
 
-    void toIR(IRState* irs)
+    override void toIR(IRState* irs)
 	{
 		Blockx* blx = irs.blx;