diff dmd/CompoundStatement.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/CompoundStatement.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/CompoundStatement.d	Sat Aug 28 16:19:48 2010 +0200
@@ -46,7 +46,7 @@
 		statements.push(cast(void*)s2);
 	}
 	
-    Statement syntaxCopy()
+    override Statement syntaxCopy()
 	{
 		Statements a = new Statements();
 		a.setDim(statements.dim);
@@ -62,7 +62,7 @@
 		return new CompoundStatement(loc, a);
 	}
 	
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		assert(false);
 	}
@@ -70,7 +70,7 @@
 	static int indent = 0;
 	static int depth = 0;
 	
-    Statement semantic(Scope sc)
+    override Statement semantic(Scope sc)
 	{
 		Statement s;
 
@@ -201,12 +201,12 @@
 		return this;
 	}
 	
-    bool usesEH()
+    override bool usesEH()
 	{
 		assert(false);
 	}
 	
-    BE blockExit()
+    override BE blockExit()
 	{
 		//printf("CompoundStatement::blockExit(%p) %d\n", this, statements->dim);
 		BE result = BE.BEfallthru;
@@ -230,12 +230,12 @@
 		return result;
 	}
 	
-    bool comeFrom()
+    override bool comeFrom()
 	{
 		assert(false);
 	}
 	
-    bool isEmpty()
+    override bool isEmpty()
 	{
 		for (int i = 0; i < statements.dim; i++)
 		{	
@@ -246,12 +246,12 @@
 		return true;
 	}
 
-    Statements flatten(Scope sc)
+    override Statements flatten(Scope sc)
 	{
 		return statements;
 	}
 
-    ReturnStatement isReturnStatement()
+    override ReturnStatement isReturnStatement()
 	{
 		ReturnStatement rs = null;
 
@@ -268,7 +268,7 @@
 		return rs;
 	}
 
-    Expression interpret(InterState istate)
+    override Expression interpret(InterState istate)
 	{
 		Expression e = null;
 
@@ -297,7 +297,7 @@
 		return e;
 	}
 
-    int inlineCost(InlineCostState* ics)
+    override int inlineCost(InlineCostState* ics)
 	{
 		int cost = 0;
 
@@ -315,7 +315,7 @@
 		return cost;
 	}
 
-    Expression doInline(InlineDoState ids)
+    override Expression doInline(InlineDoState ids)
 	{
 		Expression e = null;
 
@@ -347,7 +347,7 @@
 		return e;
 	}
 	
-    Statement inlineScan(InlineScanState* iss)
+    override Statement inlineScan(InlineScanState* iss)
 	{
 		for (size_t i = 0; i < statements.dim; i++)
 		{	
@@ -359,7 +359,7 @@
 		return this;
 	}
 
-    void toIR(IRState* irs)
+    override void toIR(IRState* irs)
 	{
 		if (statements)
 		{
@@ -375,5 +375,5 @@
 		}
 	}
 
-    CompoundStatement isCompoundStatement() { return this; }
-}
\ No newline at end of file
+    override CompoundStatement isCompoundStatement() { return this; }
+}