Mercurial > projects > ddmd
view 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 |
line wrap: on
line source
module dmd.StaticAssertStatement; import dmd.Statement; import dmd.StaticAssert; import dmd.OutBuffer; import dmd.HdrGenState; import dmd.Scope; import dmd.Loc; class StaticAssertStatement : Statement { StaticAssert sa; this(StaticAssert sa) { super(sa.loc); this.sa = sa; } override Statement syntaxCopy() { StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null)); return s; } override Statement semantic(Scope sc) { sa.semantic2(sc); return null; } override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } }