Mercurial > projects > ddmd
comparison dmd/ModuleInfoDeclaration.d @ 169:e7769d53e750
Moves static variables from Module to Global
author | korDen |
---|---|
date | Thu, 30 Sep 2010 13:29:54 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
168:ceed63f310fb | 169:e7769d53e750 |
---|---|
1 module dmd.ModuleInfoDeclaration; | 1 module dmd.ModuleInfoDeclaration; |
2 | 2 |
3 import dmd.common; | 3 import dmd.common; |
4 import dmd.VarDeclaration; | 4 import dmd.VarDeclaration; |
5 import dmd.Module; | 5 import dmd.Module; |
6 import dmd.Global; | |
6 import dmd.OutBuffer; | 7 import dmd.OutBuffer; |
7 import dmd.Dsymbol; | 8 import dmd.Dsymbol; |
8 import dmd.Scope; | 9 import dmd.Scope; |
9 import dmd.Loc; | 10 import dmd.Loc; |
10 | 11 |
14 { | 15 { |
15 Module mod; | 16 Module mod; |
16 | 17 |
17 this(Module mod) | 18 this(Module mod) |
18 { | 19 { |
19 super(Loc(0), Module.moduleinfo.type, mod.ident, null); | 20 super(Loc(0), global.moduleinfo.type, mod.ident, null); |
20 } | 21 } |
21 | 22 |
22 override Dsymbol syntaxCopy(Dsymbol) | 23 override Dsymbol syntaxCopy(Dsymbol) |
23 { | 24 { |
24 assert(false); // should never be produced by syntax | 25 assert(false); // should never be produced by syntax |