Mercurial > projects > ddmd
diff dmd/BoolExp.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 | cab4c37afb89 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/BoolExp.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/BoolExp.d Sat Aug 28 16:19:48 2010 +0200 @@ -1,18 +1,18 @@ -module dmd.BoolExp; - -import dmd.Expression; -import dmd.backend.elem; -import dmd.UnaExp; -import dmd.InterState; -import dmd.Type; -import dmd.Loc; -import dmd.Scope; +module dmd.BoolExp; + +import dmd.Expression; +import dmd.backend.elem; +import dmd.UnaExp; +import dmd.InterState; +import dmd.Type; +import dmd.Loc; +import dmd.Scope; import dmd.IRState; -import dmd.TOK; +import dmd.TOK; import dmd.backend.OPER; import dmd.backend.Util; - + class BoolExp : UnaExp { this(Loc loc, Expression e, Type t) @@ -21,7 +21,7 @@ type = t; } - Expression semantic(Scope sc) + override Expression semantic(Scope sc) { UnaExp.semantic(sc); e1 = resolveProperties(sc, e1); @@ -30,22 +30,22 @@ return this; } - Expression optimize(int result) + override Expression optimize(int result) { assert(false); } - Expression interpret(InterState istate) + override Expression interpret(InterState istate) { assert(false); } - int isBit() + override int isBit() { return true; } - elem* toElem(IRState* irs) + override elem* toElem(IRState* irs) { elem* e1 = this.e1.toElem(irs); return el_una(OPbool,type.totym(),e1);