diff dang/compiler.d @ 100:5f258eaf9517 new_gen

Loading modules in. Just need to add them to the scope of the "main" Module now.
author Anders Johnsen <skabet@gmail.com>
date Tue, 06 May 2008 22:49:43 +0200
parents 198ad05f3ace
children fea8d61a2451
line wrap: on
line diff
--- a/dang/compiler.d	Tue May 06 21:59:22 2008 +0200
+++ b/dang/compiler.d	Tue May 06 22:49:43 2008 +0200
@@ -23,6 +23,7 @@
 import gen.CodeGen;
 
 import sema.Visitor,
+      sema.LoadModule,
        sema.AstAction,
        sema.ScopeBuilder,
        sema.ScopeCheck,
@@ -207,6 +208,7 @@
         StopWatch watch2;
         watch.start;
         watch2.start;
+        Module[] mods = (new LoadModule).visit(m, src_mgr, messages);
         (new ScopeBuilder).visit(m);
         auto scope_builder = watch2.stop;
         watch2.start;