diff dmd/SymOffExp.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 4290d870944a
children ef02e2e203c2
line wrap: on
line diff
--- a/dmd/SymOffExp.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/SymOffExp.d	Sat Aug 28 16:19:48 2010 +0200
@@ -1,15 +1,15 @@
-module dmd.SymOffExp;
-
-import dmd.Expression;
-import dmd.Declaration;
-import dmd.MATCH;
-import dmd.Type;
-import dmd.OutBuffer;
-import dmd.Loc;
-import dmd.Scope;
-import dmd.InlineDoState;
-import dmd.HdrGenState;
-import dmd.backend.dt_t;
+module dmd.SymOffExp;
+
+import dmd.Expression;
+import dmd.Declaration;
+import dmd.MATCH;
+import dmd.Type;
+import dmd.OutBuffer;
+import dmd.Loc;
+import dmd.Scope;
+import dmd.InlineDoState;
+import dmd.HdrGenState;
+import dmd.backend.dt_t;
 import dmd.SymbolExp;
 import dmd.VarDeclaration;
 import dmd.DelegateExp;
@@ -17,13 +17,13 @@
 import dmd.FuncDeclaration;
 import dmd.IntegerExp;
 import dmd.ErrorExp;
-import dmd.TY;
+import dmd.TY;
 import dmd.TOK;
 
 import dmd.backend.Symbol;
 import dmd.backend.Util;
 import dmd.backend.TYM;
-
+
 class SymOffExp : SymbolExp
 {
 	uint offset;
@@ -38,7 +38,7 @@
 			error("need 'this' for address of %s", v.toChars());
 	}
 
-	Expression semantic(Scope sc)
+	override Expression semantic(Scope sc)
 	{
 	version(LOGSEMANTIC) {
 		printf("SymOffExp::semantic('%s')\n", toChars());
@@ -52,7 +52,7 @@
 		return this;
 	}
 
-	void checkEscape()
+	override void checkEscape()
 	{
 		VarDeclaration v = var.isVarDeclaration();
 		if (v)
@@ -62,22 +62,22 @@
 		}
 	}
 
-	void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		assert(false);
 	}
 
-	int isConst()
+	override int isConst()
 	{
 		return 2;
 	}
 
-	bool isBool(bool result)
+	override bool isBool(bool result)
 	{
 		assert(false);
 	}
 
-	Expression doInline(InlineDoState ids)
+	override Expression doInline(InlineDoState ids)
 	{
 		int i;
 
@@ -95,7 +95,7 @@
 		return this;
 	}
 
-	MATCH implicitConvTo(Type t)
+	override MATCH implicitConvTo(Type t)
 	{
 	static if (false) {
 		printf("SymOffExp::implicitConvTo(this=%s, type=%s, t=%s)\n", toChars(), type.toChars(), t.toChars());
@@ -131,7 +131,7 @@
 		return result;
 	}
 
-	Expression castTo(Scope sc, Type t)
+	override Expression castTo(Scope sc, Type t)
 	{
 	static if (false) {
 		printf("SymOffExp::castTo(this=%s, type=%s, t=%s)\n", toChars(), type.toChars(), t.toChars());
@@ -204,15 +204,15 @@
 		return e;
 	}
 
-	void scanForNestedRef(Scope sc)
+	override void scanForNestedRef(Scope sc)
 	{
-		//printf("SymOffExp.scanForNestedRef(%s)\n", toChars());
-		VarDeclaration v = var.isVarDeclaration();
-		if (v)
+		//printf("SymOffExp.scanForNestedRef(%s)\n", toChars());
+		VarDeclaration v = var.isVarDeclaration();
+		if (v)
 			v.checkNestedReference(sc, Loc(0));
 	}
 
-	dt_t** toDt(dt_t** pdt)
+	override dt_t** toDt(dt_t** pdt)
 	{
 		//printf("SymOffExp.toDt('%s')\n", var.toChars());
 		assert(var);