Mercurial > projects > ddmd
diff dmd/TypeFunction.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 | fd4acc376c45 |
children | ef02e2e203c2 |
line wrap: on
line diff
--- a/dmd/TypeFunction.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/TypeFunction.d Sat Aug 28 16:19:48 2010 +0200 @@ -62,7 +62,7 @@ this.linkage = linkage; } - Type syntaxCopy() + override Type syntaxCopy() { Type treturn = next ? next.syntaxCopy() : null; Arguments params = Argument.arraySyntaxCopy(parameters); @@ -113,7 +113,7 @@ return cloneTo(new TypeFunction(null, next, varargs, linkage)); } } - Type semantic(Loc loc, Scope sc) + override Type semantic(Loc loc, Scope sc) { if (deco) // if semantic() already run { @@ -222,7 +222,7 @@ return tf; } - void toDecoBuffer(OutBuffer buf, int flag) + override void toDecoBuffer(OutBuffer buf, int flag) { ubyte mc; @@ -270,7 +270,7 @@ inuse--; } - void toCBuffer(OutBuffer buf, Identifier ident, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, Identifier ident, HdrGenState* hgs) { //printf("TypeFunction.toCBuffer() this = %p\n", this); string p = null; @@ -327,7 +327,7 @@ inuse--; } - void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) + override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { //printf("TypeFunction::toCBuffer2() this = %p, ref = %d\n", this, isref); string p; @@ -379,17 +379,17 @@ inuse--; } - MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) + override MATCH deduceType(Scope sc, Type tparam, TemplateParameters parameters, Objects dedtypes) { assert(false); } - TypeInfoDeclaration getTypeInfoDeclaration() + override TypeInfoDeclaration getTypeInfoDeclaration() { assert(false); } - Type reliesOnTident() + override Type reliesOnTident() { if (parameters) { @@ -595,7 +595,7 @@ return MATCH.MATCHnomatch; } - type* toCtype() + override type* toCtype() { if (ctype) { return ctype; @@ -690,7 +690,7 @@ return RET.RETregs; } - TYM totym() + override TYM totym() { TYM tyf;