comparison 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
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
19 { 19 {
20 super(loc, TOKtobool, BoolExp.sizeof, e); 20 super(loc, TOKtobool, BoolExp.sizeof, e);
21 type = t; 21 type = t;
22 } 22 }
23 23
24 Expression semantic(Scope sc) 24 override Expression semantic(Scope sc)
25 { 25 {
26 UnaExp.semantic(sc); 26 UnaExp.semantic(sc);
27 e1 = resolveProperties(sc, e1); 27 e1 = resolveProperties(sc, e1);
28 e1 = e1.checkToBoolean(); 28 e1 = e1.checkToBoolean();
29 type = Type.tboolean; 29 type = Type.tboolean;
30 return this; 30 return this;
31 } 31 }
32 32
33 Expression optimize(int result) 33 override Expression optimize(int result)
34 { 34 {
35 assert(false); 35 assert(false);
36 } 36 }
37 37
38 Expression interpret(InterState istate) 38 override Expression interpret(InterState istate)
39 { 39 {
40 assert(false); 40 assert(false);
41 } 41 }
42 42
43 int isBit() 43 override int isBit()
44 { 44 {
45 return true; 45 return true;
46 } 46 }
47 47
48 elem* toElem(IRState* irs) 48 override elem* toElem(IRState* irs)
49 { 49 {
50 elem* e1 = this.e1.toElem(irs); 50 elem* e1 = this.e1.toElem(irs);
51 return el_una(OPbool,type.totym(),e1); 51 return el_una(OPbool,type.totym(),e1);
52 } 52 }
53 } 53 }