diff ast/Decl.d @ 99:857f0d530789 new_gen

Imports and improved module statement Allow "module a.b.c" Supports most forms of D's import. import A, B; import A, B = C; import A, B : a = b, c;
author Anders Halager <halager@gmail.com>
date Tue, 06 May 2008 21:59:22 +0200
parents 621cedba53ea
children fea8d61a2451
line wrap: on
line diff
--- a/ast/Decl.d	Tue May 06 21:55:29 2008 +0200
+++ b/ast/Decl.d	Tue May 06 21:59:22 2008 +0200
@@ -14,6 +14,7 @@
 enum DeclType
 {
     VarDecl,
+    ImportDecl,
     FuncDecl,
     StructDecl,
 }
@@ -59,6 +60,22 @@
     Exp init;
 }
 
+class ImportDecl : Decl
+{
+    this()
+    {
+        super(DeclType.ImportDecl);
+    }
+
+    bool isStatic = false;
+
+    Identifier[] packages;
+    Identifier name;
+    Identifier aliasedName;
+
+    Identifier[2][] explicitSymbols;
+}
+
 class FuncDecl : Decl
 {
     this(Identifier type, Identifier identifier)