Mercurial > projects > dil
comparison trunk/src/dil/parser/ImportParser.d @ 673:64fec49651cf
Renamed VariableDeclaration to VariablesDeclaration.
Removed TryCast and CastTo template functions.
Renamed Node.iS() to Node.Is().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 18 Jan 2008 16:44:20 +0100 |
parents | 5fa1886d6aaf |
children | ff6971637f88 |
comparison
equal
deleted
inserted
replaced
672:d422e5f2f3ea | 673:64fec49651cf |
---|---|
195 break; | 195 break; |
196 case T.Import: | 196 case T.Import: |
197 case_Import: | 197 case_Import: |
198 auto decl = parseImportDeclaration(); | 198 auto decl = parseImportDeclaration(); |
199 decl.setProtection(prot); // Set the protection attribute. | 199 decl.setProtection(prot); // Set the protection attribute. |
200 imports ~= CastTo!(ImportDeclaration)(decl); | 200 imports ~= decl.to!(ImportDeclaration); |
201 break; | 201 break; |
202 case T.Enum: | 202 case T.Enum: |
203 nT(); | 203 nT(); |
204 token.type == T.Identifier && nT(); | 204 token.type == T.Identifier && nT(); |
205 if (token.type == T.Colon) | 205 if (token.type == T.Colon) |