diff dmd/Declaration.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 ee3a9f34dc48
children 43073c7c7769
line wrap: on
line diff
--- a/dmd/Declaration.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/Declaration.d	Sat Aug 28 16:19:48 2010 +0200
@@ -88,16 +88,16 @@
 		super(id);
 	}
 	
-    void semantic(Scope sc)
+    override void semantic(Scope sc)
 	{
 	}
 	
-    string kind()
+    override string kind()
 	{
 		assert(false);
 	}
 	
-    uint size(Loc loc)
+    override uint size(Loc loc)
 	{
 		assert(false);
 	}
@@ -168,17 +168,17 @@
 		}
 	}
 
-    void emitComment(Scope sc)
+    override void emitComment(Scope sc)
 	{
 		assert(false);
 	}
 	
-    void toDocBuffer(OutBuffer buf)
+    override void toDocBuffer(OutBuffer buf)
 	{
 		assert(false);
 	}
 
-    string mangle()
+    override string mangle()
 	/+out (result)
 	{
 		try
@@ -292,7 +292,7 @@
     
 	int isParameter()    { return storage_class & STC.STCparameter; }
     
-	bool isDeprecated()   { return (storage_class & STC.STCdeprecated)  != 0; }
+	override bool isDeprecated()   { return (storage_class & STC.STCdeprecated)  != 0; }
     
 	int isOverride()     { return storage_class & STC.STCoverride; }
 
@@ -302,10 +302,10 @@
     
 	int isRef()   { return storage_class & STC.STCref; }
 
-    PROT prot()
+    override PROT prot()
 	{
 		return protection;
 	}
 
-    Declaration isDeclaration() { return this; }
+    override Declaration isDeclaration() { return this; }
 }