comparison dmd/IdentityExp.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 ef02e2e203c2
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
23 this(TOK op, Loc loc, Expression e1, Expression e2) 23 this(TOK op, Loc loc, Expression e1, Expression e2)
24 { 24 {
25 super(loc, op, IdentityExp.sizeof, e1, e2); 25 super(loc, op, IdentityExp.sizeof, e1, e2);
26 } 26 }
27 27
28 Expression semantic(Scope sc) 28 override Expression semantic(Scope sc)
29 { 29 {
30 if (type) 30 if (type)
31 return this; 31 return this;
32 32
33 BinExp.semanticp(sc); 33 BinExp.semanticp(sc);
42 } 42 }
43 43
44 return this; 44 return this;
45 } 45 }
46 46
47 int isBit() 47 override int isBit()
48 { 48 {
49 assert(false); 49 assert(false);
50 } 50 }
51 51
52 Expression optimize(int result) 52 override Expression optimize(int result)
53 { 53 {
54 Expression e; 54 Expression e;
55 55
56 //printf("IdentityExp.optimize(result = %d) %s\n", result, toChars()); 56 //printf("IdentityExp.optimize(result = %d) %s\n", result, toChars());
57 e1 = e1.optimize(WANT.WANTvalue | (result & WANT.WANTinterpret)); 57 e1 = e1.optimize(WANT.WANTvalue | (result & WANT.WANTinterpret));
64 } 64 }
65 65
66 return e; 66 return e;
67 } 67 }
68 68
69 Expression interpret(InterState istate) 69 override Expression interpret(InterState istate)
70 { 70 {
71 assert(false); 71 assert(false);
72 } 72 }
73 73
74 elem* toElem(IRState* irs) 74 override elem* toElem(IRState* irs)
75 { 75 {
76 elem *e; 76 elem *e;
77 OPER eop; 77 OPER eop;
78 Type t1 = e1.type.toBasetype(); 78 Type t1 = e1.type.toBasetype();
79 Type t2 = e2.type.toBasetype(); 79 Type t2 = e2.type.toBasetype();