diff trunk/src/dil/Module.d @ 503:fa63ef408790

Added module dil.Package and semantic() to class Module.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 11 Dec 2007 15:05:08 +0100
parents 9c208925a3d4
children dd3ce87b3569
line wrap: on
line diff
--- a/trunk/src/dil/Module.d	Tue Dec 11 14:19:30 2007 +0100
+++ b/trunk/src/dil/Module.d	Tue Dec 11 15:05:08 2007 +0100
@@ -9,6 +9,7 @@
 import dil.ImportParser;
 import dil.Lexer;
 import dil.File;
+import dil.Scope;
 import tango.io.FilePath;
 import tango.io.FileConst;
 import common;
@@ -69,6 +70,12 @@
     }
   }
 
+  void semantic()
+  {
+    auto scop = new Scope();
+    this.root.semantic(scop);
+  }
+
   string[] getImports()
   {
     string[] result;