Mercurial > projects > dil
changeset 633:5fa1886d6aaf
Replaced a case statement with an if statement in ImportParser.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 12 Jan 2008 11:45:40 +0100 |
parents | 20dddcc54621 |
children | 14e99ce74d06 |
files | trunk/src/dil/parser/ImportParser.d |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/parser/ImportParser.d Sat Jan 12 02:55:17 2008 +0100 +++ b/trunk/src/dil/parser/ImportParser.d Sat Jan 12 11:45:40 2008 +0100 @@ -318,13 +318,6 @@ break; // Declaration case T.Identifier, T.Dot, T.Typeof: - // IntegralType - case T.Char, T.Wchar, T.Dchar, T.Bool, - T.Byte, T.Ubyte, T.Short, T.Ushort, - T.Int, T.Uint, T.Long, T.Ulong, - T.Float, T.Double, T.Real, - T.Ifloat, T.Idouble, T.Ireal, - T.Cfloat, T.Cdouble, T.Creal, T.Void: case_Declaration: while (token.type != T.Semicolon && token.type != T.EOF) if (token.type == T.LParen) @@ -336,6 +329,8 @@ skip(T.Semicolon); break; default: + if (token.isIntegralType) + goto case_Declaration; nT(); } }