Mercurial > projects > ddmd
diff dmd/EnumDeclaration.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 | 460959608115 |
children | ad4792a1cfd6 |
line wrap: on
line diff
--- a/dmd/EnumDeclaration.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/EnumDeclaration.d Sat Aug 28 16:19:48 2010 +0200 @@ -63,7 +63,7 @@ this.memtype = memtype; } - Dsymbol syntaxCopy(Dsymbol s) + override Dsymbol syntaxCopy(Dsymbol s) { Type t = null; if (memtype) @@ -80,7 +80,7 @@ return ed; } - void semantic(Scope sc) + override void semantic(Scope sc) { Type t; Scope sce; @@ -296,14 +296,14 @@ //members.print(); } - bool oneMember(Dsymbol* ps) + override bool oneMember(Dsymbol* ps) { if (isAnonymous()) return Dsymbol.oneMembers(members, ps); return Dsymbol.oneMember(ps); } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { int i; @@ -340,18 +340,18 @@ buf.writenl(); } - Type getType() + override Type getType() { return type; } - string kind() + override string kind() { return "enum"; } version (DMDV2) { - Dsymbol search(Loc, Identifier ident, int flags) + override Dsymbol search(Loc, Identifier ident, int flags) { //printf("%s.EnumDeclaration.search('%s')\n", toChars(), ident.toChars()); if (scope_) @@ -368,24 +368,24 @@ return ScopeDsymbol.search(loc, ident, flags); } } - bool isDeprecated() // is Dsymbol deprecated? + override bool isDeprecated() // is Dsymbol deprecated? { return isdeprecated; } - void emitComment(Scope sc) + override void emitComment(Scope sc) { assert(false); } - void toDocBuffer(OutBuffer buf) + override void toDocBuffer(OutBuffer buf) { assert(false); } - EnumDeclaration isEnumDeclaration() { return this; } + override EnumDeclaration isEnumDeclaration() { return this; } - void toObjFile(int multiobj) // compile to .obj file + override void toObjFile(int multiobj) // compile to .obj file { //printf("EnumDeclaration.toObjFile('%s')\n", toChars()); version (DMDV2) { @@ -432,7 +432,7 @@ assert(false); } - int cvMember(ubyte* p) + override int cvMember(ubyte* p) { assert(false); }