diff dmd/TypeIdentifier.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 b7d29f613539
children e28b18c23469
line wrap: on
line diff
--- a/dmd/TypeIdentifier.d	Sat Aug 28 16:14:07 2010 +0200
+++ b/dmd/TypeIdentifier.d	Sat Aug 28 16:19:48 2010 +0200
@@ -37,7 +37,7 @@
 		assert(false);
 	}
 }
-    Type syntaxCopy()
+    override Type syntaxCopy()
 	{
 		TypeIdentifier t = new TypeIdentifier(loc, ident);
 		t.syntaxCopyHelper(this);
@@ -48,14 +48,14 @@
 	
     //char *toChars();
 	
-    void toDecoBuffer(OutBuffer buf, int flag)
+    override void toDecoBuffer(OutBuffer buf, int flag)
 	{
 		Type.toDecoBuffer(buf, flag);
 		string name = ident.toChars();
 		buf.printf("%d%s", name.length, name);
 	}
 	
-    void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
+    override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
 	{
 		if (mod != this.mod)
 		{	
@@ -73,7 +73,7 @@
 	 *	if expression, *pe is set
 	 *	if type, *pt is set
 	 */
-    void resolve(Loc loc, Scope sc, Expression* pe, Type* pt, Dsymbol* ps)
+    override void resolve(Loc loc, Scope sc, Expression* pe, Type* pt, Dsymbol* ps)
 	{
 		Dsymbol scopesym;
 
@@ -88,7 +88,7 @@
 	 * See if type resolves to a symbol, if so,
 	 * return that symbol.
 	 */
-    Dsymbol toDsymbol(Scope sc)
+    override Dsymbol toDsymbol(Scope sc)
 	{
 		//printf("TypeIdentifier::toDsymbol('%s')\n", toChars());
 		if (!sc)
@@ -114,7 +114,7 @@
 		return s;
 	}
 	
-    Type semantic(Loc loc, Scope sc)
+    override Type semantic(Loc loc, Scope sc)
 	{
 		Type t;
 		Expression e;
@@ -156,7 +156,7 @@
 		return t;
 	}
 	
-    MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
+    override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes)
 	{
 	    // Extra check
 		if (tparam && tparam.ty == Tident)
@@ -175,12 +175,12 @@
 		return Type.deduceType(sc, tparam, parameters, dedtypes);
 	}
 	
-    Type reliesOnTident()
+    override Type reliesOnTident()
 	{
 		return this;
 	}
 	
-    Expression toExpression()
+    override Expression toExpression()
 	{
 		Expression e = new IdentifierExp(loc, ident);
 		for (int i = 0; i < idents.dim; i++)
@@ -191,4 +191,4 @@
 
 		return e;
 	}
-}
\ No newline at end of file
+}