diff dmd/AliasDeclaration.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 5c9b78899f5d
children 43073c7c7769
line wrap: on
line diff
--- a/dmd/AliasDeclaration.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/AliasDeclaration.d	Sat Aug 28 16:19:48 2010 +0200
@@ -57,7 +57,7 @@
 		assert(s);
 	}
 
-	Dsymbol syntaxCopy(Dsymbol s)
+	override Dsymbol syntaxCopy(Dsymbol s)
 	{
 		//printf("AliasDeclaration::syntaxCopy()\n");
 		assert(!s);
@@ -88,7 +88,7 @@
 		return sa;
 	}
 
-	void semantic(Scope sc)
+	override void semantic(Scope sc)
 	{
 		//printf("AliasDeclaration.semantic() %s\n", toChars());
 		if (aliassym)
@@ -198,7 +198,7 @@
 		this.inSemantic = 0;
 	}
 
-	bool overloadInsert(Dsymbol s)
+	override bool overloadInsert(Dsymbol s)
 	{
 		/* Don't know yet what the aliased symbol is, so assume it can
 		 * be overloaded and check later for correctness.
@@ -216,17 +216,17 @@
 		}
 	}
 
-	string kind()
+	override string kind()
 	{
 		return "alias";
 	}
 
-	Type getType()
+	override Type getType()
 	{
 		return type;
 	}
 
-	Dsymbol toAlias()
+	override Dsymbol toAlias()
 	{
 		//printf("AliasDeclaration::toAlias('%s', this = %p, aliassym = %p, kind = '%s')\n", toChars(), this, aliassym, aliassym ? aliassym->kind() : "");
 		assert(this !is aliassym);
@@ -241,7 +241,7 @@
 		return s;
 	}
 
-	void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		assert(false);
 	}
@@ -250,10 +250,10 @@
 		Type htype;
 		Dsymbol haliassym;
 	}
-	void toDocBuffer(OutBuffer buf)
+	override void toDocBuffer(OutBuffer buf)
 	{
 		assert(false);
 	}
 
-	AliasDeclaration isAliasDeclaration() { return this; }
+	override AliasDeclaration isAliasDeclaration() { return this; }
 	}