Mercurial > projects > ddmd
comparison dmd/DsymbolExp.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 | 10317f0c89a5 |
children | ef02e2e203c2 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
43 super(loc, TOK.TOKdsymbol, DsymbolExp.sizeof); | 43 super(loc, TOK.TOKdsymbol, DsymbolExp.sizeof); |
44 this.s = s; | 44 this.s = s; |
45 this.hasOverloads = hasOverloads; | 45 this.hasOverloads = hasOverloads; |
46 } | 46 } |
47 | 47 |
48 Expression semantic(Scope sc) | 48 override Expression semantic(Scope sc) |
49 { | 49 { |
50 version (LOGSEMANTIC) { | 50 version (LOGSEMANTIC) { |
51 printf("DsymbolExp.semantic('%s')\n", s.toChars()); | 51 printf("DsymbolExp.semantic('%s')\n", s.toChars()); |
52 } | 52 } |
53 | 53 |
221 error("%s '%s' is not a variable", s.kind(), s.toChars()); | 221 error("%s '%s' is not a variable", s.kind(), s.toChars()); |
222 type = Type.terror; | 222 type = Type.terror; |
223 return this; | 223 return this; |
224 } | 224 } |
225 | 225 |
226 string toChars() | 226 override string toChars() |
227 { | 227 { |
228 assert(false); | 228 assert(false); |
229 } | 229 } |
230 | 230 |
231 void dump(int indent) | 231 override void dump(int indent) |
232 { | 232 { |
233 assert(false); | 233 assert(false); |
234 } | 234 } |
235 | 235 |
236 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 236 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
237 { | 237 { |
238 assert(false); | 238 assert(false); |
239 } | 239 } |
240 | 240 |
241 int isLvalue() | 241 override int isLvalue() |
242 { | 242 { |
243 assert(false); | 243 assert(false); |
244 } | 244 } |
245 | 245 |
246 Expression toLvalue(Scope sc, Expression e) | 246 override Expression toLvalue(Scope sc, Expression e) |
247 { | 247 { |
248 assert(false); | 248 assert(false); |
249 } | 249 } |
250 } | 250 } |
251 | 251 |