Mercurial > projects > dil
diff src/cmd/Compile.d @ 820:1d06b4aed7cf
Revised code in the first pass.
Added code to handle anonymous unions and structs. Hope the idea will work.
Added type to class Aggregate and isAnonymous to some other Symbol classes.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 14 Mar 2008 15:42:08 +0100 |
parents | 35d238d502cb |
children |
line wrap: on
line diff
--- a/src/cmd/Compile.d Thu Mar 13 18:59:54 2008 +0100 +++ b/src/cmd/Compile.d Fri Mar 14 15:42:08 2008 +0100 @@ -52,10 +52,10 @@ void printMTree(Package pckg, string indent) { Stdout(indent)(pckg.pckgName)("/").newline; - foreach (p; pckg.packages) + foreach (p; pckg.packages) // TODO: sort packages alphabetically by name? printMTree(p, indent ~ " "); - foreach (m; pckg.modules) - Stdout(indent ~ " ")(m.moduleName)(".d").newline; + foreach (m; pckg.modules) // TODO: sort modules alphabetically by name? + Stdout(indent ~ " ")(m.moduleName)(".")(m.fileExtension()).newline; } /// Runs the first pass on modul.