Mercurial > projects > ddmd
comparison dmd/IsExp.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 | adf6f7f216ea |
children | 3a0b150c9841 ceda59b4d255 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
52 this.tspec = tspec; | 52 this.tspec = tspec; |
53 this.tok2 = tok2; | 53 this.tok2 = tok2; |
54 this.parameters = parameters; | 54 this.parameters = parameters; |
55 } | 55 } |
56 | 56 |
57 Expression syntaxCopy() | 57 override Expression syntaxCopy() |
58 { | 58 { |
59 // This section is identical to that in TemplateDeclaration.syntaxCopy() | 59 // This section is identical to that in TemplateDeclaration.syntaxCopy() |
60 TemplateParameters p = null; | 60 TemplateParameters p = null; |
61 if (parameters) | 61 if (parameters) |
62 { | 62 { |
76 tspec ? tspec.syntaxCopy() : null, | 76 tspec ? tspec.syntaxCopy() : null, |
77 tok2, | 77 tok2, |
78 p); | 78 p); |
79 } | 79 } |
80 | 80 |
81 Expression semantic(Scope sc) | 81 override Expression semantic(Scope sc) |
82 { | 82 { |
83 Type tded; | 83 Type tded; |
84 | 84 |
85 /* is(targ id tok tspec) | 85 /* is(targ id tok tspec) |
86 * is(targ id == tok2) | 86 * is(targ id == tok2) |
333 Lno: | 333 Lno: |
334 //printf("Lno\n"); | 334 //printf("Lno\n"); |
335 return new IntegerExp(loc, 0, Type.tbool); | 335 return new IntegerExp(loc, 0, Type.tbool); |
336 } | 336 } |
337 | 337 |
338 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 338 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
339 { | 339 { |
340 buf.writestring("is("); | 340 buf.writestring("is("); |
341 targ.toCBuffer(buf, id, hgs); | 341 targ.toCBuffer(buf, id, hgs); |
342 if (tok2 != TOKreserved) | 342 if (tok2 != TOKreserved) |
343 { | 343 { |