comparison dmd/NotExp.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
20 this(Loc loc, Expression e) 20 this(Loc loc, Expression e)
21 { 21 {
22 super(loc, TOK.TOKnot, NotExp.sizeof, e); 22 super(loc, TOK.TOKnot, NotExp.sizeof, e);
23 } 23 }
24 24
25 Expression semantic(Scope sc) 25 override Expression semantic(Scope sc)
26 { 26 {
27 UnaExp.semantic(sc); 27 UnaExp.semantic(sc);
28 e1 = resolveProperties(sc, e1); 28 e1 = resolveProperties(sc, e1);
29 e1 = e1.checkToBoolean(); 29 e1 = e1.checkToBoolean();
30 type = Type.tboolean; 30 type = Type.tboolean;
31 return this; 31 return this;
32 } 32 }
33 33
34 Expression optimize(int result) 34 override Expression optimize(int result)
35 { 35 {
36 Expression e; 36 Expression e;
37 37
38 e1 = e1.optimize(result); 38 e1 = e1.optimize(result);
39 if (e1.isConst() == 1) 39 if (e1.isConst() == 1)
42 e = this; 42 e = this;
43 43
44 return e; 44 return e;
45 } 45 }
46 46
47 Expression interpret(InterState istate) 47 override Expression interpret(InterState istate)
48 { 48 {
49 assert(false); 49 assert(false);
50 } 50 }
51 51
52 int isBit() 52 override int isBit()
53 { 53 {
54 assert(false); 54 assert(false);
55 } 55 }
56 56
57 elem* toElem(IRState* irs) 57 override elem* toElem(IRState* irs)
58 { 58 {
59 elem* e = el_una(OPnot, type.totym(), e1.toElem(irs)); 59 elem* e = el_una(OPnot, type.totym(), e1.toElem(irs));
60 el_setLoc(e,loc); 60 el_setLoc(e,loc);
61 return e; 61 return e;
62 } 62 }