Mercurial > projects > dil
diff trunk/src/dil/Module.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/Module.d Fri Aug 31 12:14:03 2007 +0000 +++ b/trunk/src/dil/Module.d Fri Aug 31 23:07:05 2007 +0000 @@ -20,6 +20,8 @@ ModuleDeclaration moduleDecl; private Parser parser; + Module[] modules; + this(string fileName) { this.fileName = fileName; @@ -60,4 +62,9 @@ result ~= import_.getModuleFQNs(std.path.sep[0]); return result; } + + string getFQN() + { + return packageName ~ std.path.sep ~ moduleName; + } }