Mercurial > projects > ddmd
diff dmd/OnScopeStatement.d @ 174:af724d3510d7
lot os toCBuffer methods implemented
moved shared Type.* stuff into Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:47:23 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/OnScopeStatement.d Sun Oct 10 01:55:35 2010 +0400 +++ b/dmd/OnScopeStatement.d Sun Oct 10 03:47:23 2010 +0400 @@ -11,6 +11,7 @@ import dmd.BE; import dmd.Identifier; import dmd.ExpInitializer; +import dmd.Token; import dmd.IntegerExp; import dmd.VarDeclaration; import dmd.Type; @@ -31,7 +32,7 @@ this(Loc loc, TOK tok, Statement statement) { super(loc); - + this.tok = tok; this.statement = statement; } @@ -51,7 +52,9 @@ override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { - assert(false); + buf.writestring(Token.toChars(tok)); + buf.writebyte(' '); + statement.toCBuffer(buf, hgs); } override Statement semantic(Scope sc)