Mercurial > projects > ddmd
comparison dmd/StaticAssertStatement.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 | b7d29f613539 |
children | 43073c7c7769 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
15 { | 15 { |
16 super(sa.loc); | 16 super(sa.loc); |
17 this.sa = sa; | 17 this.sa = sa; |
18 } | 18 } |
19 | 19 |
20 Statement syntaxCopy() | 20 override Statement syntaxCopy() |
21 { | 21 { |
22 StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null)); | 22 StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null)); |
23 return s; | 23 return s; |
24 } | 24 } |
25 | 25 |
26 Statement semantic(Scope sc) | 26 override Statement semantic(Scope sc) |
27 { | 27 { |
28 sa.semantic2(sc); | 28 sa.semantic2(sc); |
29 return null; | 29 return null; |
30 } | 30 } |
31 | 31 |
32 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 32 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
33 { | 33 { |
34 assert(false); | 34 assert(false); |
35 } | 35 } |
36 } | 36 } |