# HG changeset patch # User Aziz K?ksal # Date 1200134740 -3600 # Node ID 5fa1886d6aaf9eac36aa6fbfccf775059ac4afb8 # Parent 20dddcc5462164ba1f141c1f499567e977f60512 Replaced a case statement with an if statement in ImportParser. diff -r 20dddcc54621 -r 5fa1886d6aaf trunk/src/dil/parser/ImportParser.d --- 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(); } }