diff dmd/Import.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 427f8aa74d28
children 43073c7c7769
line wrap: on
line diff
--- a/dmd/Import.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/Import.d	Sat Aug 28 16:19:48 2010 +0200
@@ -88,12 +88,12 @@
 		aliases.push(cast(void*)alias_);
 	}
 
-    string kind()
+    override string kind()
 	{
 		return isstatic ? "static import" : "import";
 	}
 	
-    Dsymbol syntaxCopy(Dsymbol s)	// copy only syntax trees
+    override Dsymbol syntaxCopy(Dsymbol s)	// copy only syntax trees
 	{
 		assert(false);
 	}
@@ -137,7 +137,7 @@
 		//writef("-Import::load('%s'), pkg = %p\n", toChars(), pkg);
 	}
 	
-    void semantic(Scope sc)
+    override void semantic(Scope sc)
 	{
 		//writef("Import.semantic('%s')\n", toChars());
 
@@ -261,7 +261,7 @@
 		//printf("-Import.semantic('%s'), pkg = %p\n", toChars(), pkg);
 	}
 	
-    void semantic2(Scope sc)
+    override void semantic2(Scope sc)
 	{
 		//printf("Import::semantic2('%s')\n", toChars());
 		mod.semantic2();
@@ -269,7 +269,7 @@
 			sc.module_.needmoduleinfo = 1;
 	}
 	
-    Dsymbol toAlias()
+    override Dsymbol toAlias()
 	{
 		if (aliasId)
 			return mod;
@@ -279,7 +279,7 @@
 	/*****************************
 	 * Add import to sd's symbol table.
 	 */
-    bool addMember(Scope sc, ScopeDsymbol sd, bool memnum)
+    override bool addMember(Scope sc, ScopeDsymbol sd, bool memnum)
 	{
 		bool result = false;
 
@@ -310,7 +310,7 @@
 		return result;
 	}
 	
-    Dsymbol search(Loc loc, Identifier ident, int flags)
+    override Dsymbol search(Loc loc, Identifier ident, int flags)
 	{
 		//printf("%s.Import.search(ident = '%s', flags = x%x)\n", toChars(), ident.toChars(), flags);
 
@@ -324,16 +324,16 @@
 		return pkg.search(loc, ident, flags);
 	}
 	
-    bool overloadInsert(Dsymbol s)
+    override bool overloadInsert(Dsymbol s)
 	{
 		// Allow multiple imports of the same name
 		return s.isImport() !is null;
 	}
 	
-    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		assert(false);
 	}
 
-    Import isImport() { return this; }
-}
\ No newline at end of file
+    override Import isImport() { return this; }
+}