Mercurial > projects > dil
comparison trunk/src/dil/Module.d @ 492:9c208925a3d4
Added module ImportParser and new stuff from DMD2.008.
Moved ImportParser from module Parser to its own module. Added a few methods
from class Parser and simplified them. Now protection attributes are taken into
consideration as well.
Added class TemplateThisParameter. Adapted TypeofType so that typeof(return)
can be recognized.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Thu, 06 Dec 2007 22:19:55 +0100 |
parents | 33b566df6af4 |
children | fa63ef408790 |
comparison
equal
deleted
inserted
replaced
491:b991f49628a8 | 492:9c208925a3d4 |
---|---|
4 +/ | 4 +/ |
5 module dil.Module; | 5 module dil.Module; |
6 import dil.SyntaxTree; | 6 import dil.SyntaxTree; |
7 import dil.Declarations; | 7 import dil.Declarations; |
8 import dil.Parser; | 8 import dil.Parser; |
9 import dil.ImportParser; | |
9 import dil.Lexer; | 10 import dil.Lexer; |
10 import dil.File; | 11 import dil.File; |
11 import tango.io.FilePath; | 12 import tango.io.FilePath; |
12 import tango.io.FileConst; | 13 import tango.io.FileConst; |
13 import common; | 14 import common; |
26 ModuleDeclaration moduleDecl; | 27 ModuleDeclaration moduleDecl; |
27 private Parser parser; | 28 private Parser parser; |
28 | 29 |
29 Module[] modules; | 30 Module[] modules; |
30 | 31 |
31 this(string filePath, bool isLight = false) | 32 this(string filePath, bool isLightweight = false) |
32 { | 33 { |
33 this.filePath = filePath; | 34 this.filePath = filePath; |
34 this.isLightweight = isLightweight; | 35 this.isLightweight = isLightweight; |
35 } | 36 } |
36 | 37 |