diff trunk/src/dil/Parser.d @ 367:dda55fae37de

- ImportGraph.execute() can parse all modules depending on the imports of the root module. - Added function findModule(). - Renamed option includes to import_paths. - Fix in ctor of ModuleDeclaration: check for pname.length before removing last separator. - Fixed scanning binary numbers. - Added member modules and method getFQN() to class Module. - Fix in parseIfStatement(): AttributeStatement mustn't have a null parameter. - Parsing import_paths in GlobalSettings.load().
author aziz
date Fri, 31 Aug 2007 23:07:05 +0000
parents dcbd3bf9bf74
children 2adf808343d6
line wrap: on
line diff
--- a/trunk/src/dil/Parser.d	Fri Aug 31 12:14:03 2007 +0000
+++ b/trunk/src/dil/Parser.d	Fri Aug 31 23:07:05 2007 +0000
@@ -1905,13 +1905,11 @@
     // auto Identifier = Expression
     if (token.type == T.Auto)
     {
-      auto a = new AttributeStatement(token.type, null);
       nT();
       ident = requireId();
       require(T.Assign);
       auto init = parseExpression();
-      a.statement = new DeclarationStatement(new VariableDeclaration(null, [ident], [init]));
-      variable = a;
+      variable = new AttributeStatement(T.Auto, new DeclarationStatement(new VariableDeclaration(null, [ident], [init])));
     }
     else
     {