comparison dmd/CatExp.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
30 this(Loc loc, Expression e1, Expression e2) 30 this(Loc loc, Expression e1, Expression e2)
31 { 31 {
32 super(loc, TOK.TOKcat, CatExp.sizeof, e1, e2); 32 super(loc, TOK.TOKcat, CatExp.sizeof, e1, e2);
33 } 33 }
34 34
35 Expression semantic(Scope sc) 35 override Expression semantic(Scope sc)
36 { 36 {
37 Expression e; 37 Expression e;
38 38
39 //printf("CatExp.semantic() %s\n", toChars()); 39 //printf("CatExp.semantic() %s\n", toChars());
40 if (!type) 40 if (!type)
139 return e; 139 return e;
140 } 140 }
141 return this; 141 return this;
142 } 142 }
143 143
144 Expression optimize(int result) 144 override Expression optimize(int result)
145 { 145 {
146 //printf("CatExp::optimize(%d) %s\n", result, toChars()); 146 //printf("CatExp::optimize(%d) %s\n", result, toChars());
147 e1 = e1.optimize(result); 147 e1 = e1.optimize(result);
148 e2 = e2.optimize(result); 148 e2 = e2.optimize(result);
149 Expression e = Cat(type, e1, e2); 149 Expression e = Cat(type, e1, e2);
151 e = this; 151 e = this;
152 152
153 return e; 153 return e;
154 } 154 }
155 155
156 Expression interpret(InterState istate) 156 override Expression interpret(InterState istate)
157 { 157 {
158 Expression e; 158 Expression e;
159 Expression e1; 159 Expression e1;
160 Expression e2; 160 Expression e2;
161 161
177 printf("CatExp.interpret() %.*s CANT\n", toChars()); 177 printf("CatExp.interpret() %.*s CANT\n", toChars());
178 } 178 }
179 return EXP_CANT_INTERPRET; 179 return EXP_CANT_INTERPRET;
180 } 180 }
181 181
182 Identifier opId() 182 override Identifier opId()
183 { 183 {
184 return Id.cat; 184 return Id.cat;
185 } 185 }
186 186
187 Identifier opId_r() 187 override Identifier opId_r()
188 { 188 {
189 return Id.cat_r; 189 return Id.cat_r;
190 } 190 }
191 191
192 elem* toElem(IRState* irs) 192 override elem* toElem(IRState* irs)
193 { 193 {
194 elem *e; 194 elem *e;
195 195
196 static if (false) { 196 static if (false) {
197 printf("CatExp::toElem()\n"); 197 printf("CatExp::toElem()\n");