Mercurial > projects > dil
comparison src/dil/semantic/Pass2.d @ 810:525ee3f848d9
Added modules cmd.Compile and dil.ModuleManager.
Added options -I, -release and -unittest to the compile command.
Tidied main.d up a bit.
Renamed start() methods of SemanticPass1 and 2 to run().
Moved function findModuleFilePath() to class ModuleManager.
Added msg CouldntLoadModule. Corrected two others.
Added member semanticPass to class Module.
Implemented visit(ImportDeclaration) in SemanticPass1.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 11 Mar 2008 02:48:01 +0100 |
parents | bcb74c9b895c |
children | 1d06b4aed7cf 09a64d96967a |
comparison
equal
deleted
inserted
replaced
809:7e84472f4e91 | 810:525ee3f848d9 |
---|---|
42 { | 42 { |
43 this.modul = modul; | 43 this.modul = modul; |
44 } | 44 } |
45 | 45 |
46 /// Start semantic analysis. | 46 /// Start semantic analysis. |
47 void start() | 47 void run() |
48 { | 48 { |
49 assert(modul.root !is null); | 49 assert(modul.root !is null); |
50 // Create module scope. | 50 // Create module scope. |
51 scop = new Scope(null, modul); | 51 scop = new Scope(null, modul); |
52 modul.semanticPass = 2; | |
52 visit(modul.root); | 53 visit(modul.root); |
53 } | 54 } |
54 | 55 |
55 /// Enters a new scope. | 56 /// Enters a new scope. |
56 void enterScope(ScopeSymbol s) | 57 void enterScope(ScopeSymbol s) |