comparison dmd/CatAssignExp.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 6da99741178e
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
26 this(Loc loc, Expression e1, Expression e2) 26 this(Loc loc, Expression e1, Expression e2)
27 { 27 {
28 super(loc, TOK.TOKcatass, CatAssignExp.sizeof, e1, e2); 28 super(loc, TOK.TOKcatass, CatAssignExp.sizeof, e1, e2);
29 } 29 }
30 30
31 Expression semantic(Scope sc) 31 override Expression semantic(Scope sc)
32 { 32 {
33 Expression e; 33 Expression e;
34 34
35 BinExp.semantic(sc); 35 BinExp.semantic(sc);
36 e2 = resolveProperties(sc, e2); 36 e2 = resolveProperties(sc, e2);
79 e = this; 79 e = this;
80 } 80 }
81 return e; 81 return e;
82 } 82 }
83 83
84 Expression interpret(InterState istate) 84 override Expression interpret(InterState istate)
85 { 85 {
86 assert(false); 86 assert(false);
87 } 87 }
88 88
89 Identifier opId() /* For operator overloading */ 89 override Identifier opId() /* For operator overloading */
90 { 90 {
91 return Id.catass; 91 return Id.catass;
92 } 92 }
93 93
94 elem* toElem(IRState* irs) 94 override elem* toElem(IRState* irs)
95 { 95 {
96 //printf("CatAssignExp.toElem('%s')\n", toChars()); 96 //printf("CatAssignExp.toElem('%s')\n", toChars());
97 elem* e; 97 elem* e;
98 Type tb1 = e1.type.toBasetype(); 98 Type tb1 = e1.type.toBasetype();
99 Type tb2 = e2.type.toBasetype(); 99 Type tb2 = e2.type.toBasetype();