Mercurial > projects > ddmd
comparison dmd/DotTypeExp.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 | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
22 super(loc, TOK.TOKdottype, DotTypeExp.sizeof, e); | 22 super(loc, TOK.TOKdottype, DotTypeExp.sizeof, e); |
23 this.sym = s; | 23 this.sym = s; |
24 this.type = s.getType(); | 24 this.type = s.getType(); |
25 } | 25 } |
26 | 26 |
27 Expression semantic(Scope sc) | 27 override Expression semantic(Scope sc) |
28 { | 28 { |
29 version (LOGSEMANTIC) { | 29 version (LOGSEMANTIC) { |
30 printf("DotTypeExp.semantic('%s')\n", toChars()); | 30 printf("DotTypeExp.semantic('%s')\n", toChars()); |
31 } | 31 } |
32 UnaExp.semantic(sc); | 32 UnaExp.semantic(sc); |
33 return this; | 33 return this; |
34 } | 34 } |
35 | 35 |
36 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 36 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
37 { | 37 { |
38 expToCBuffer(buf, hgs, e1, PREC.PREC_primary); | 38 expToCBuffer(buf, hgs, e1, PREC.PREC_primary); |
39 buf.writeByte('.'); | 39 buf.writeByte('.'); |
40 buf.writestring(sym.toChars()); | 40 buf.writestring(sym.toChars()); |
41 } | 41 } |
42 | 42 |
43 elem* toElem(IRState* irs) | 43 override elem* toElem(IRState* irs) |
44 { | 44 { |
45 assert(false); | 45 assert(false); |
46 } | 46 } |
47 } | 47 } |
48 | 48 |