comparison dmd/ClassInfoDeclaration.d @ 166:d8565fbd755c

Moved object and classinfo from ClassDeclaration to Global (as part of getting rid of the global state)
author korDen
date Thu, 30 Sep 2010 10:30:15 +0400
parents e28b18c23469
children e3afd1303184
comparison
equal deleted inserted replaced
165:25ede4f66bda 166:d8565fbd755c
1 module dmd.ClassInfoDeclaration; 1 module dmd.ClassInfoDeclaration;
2 2
3 import dmd.common; 3 import dmd.common;
4 import dmd.VarDeclaration; 4 import dmd.VarDeclaration;
5 import dmd.ClassDeclaration; 5 import dmd.ClassDeclaration;
6 import dmd.Global;
6 import dmd.Dsymbol; 7 import dmd.Dsymbol;
7 import dmd.Scope; 8 import dmd.Scope;
8 import dmd.Loc; 9 import dmd.Loc;
9 import dmd.OutBuffer; 10 import dmd.OutBuffer;
10 import dmd.Id; 11 import dmd.Id;
22 { 23 {
23 ClassDeclaration cd; 24 ClassDeclaration cd;
24 25
25 this(ClassDeclaration cd) 26 this(ClassDeclaration cd)
26 { 27 {
27 super(Loc(0), ClassDeclaration.classinfo.type, cd.ident, null); 28 super(Loc(0), global.classinfo.type, cd.ident, null);
28 29
29 this.cd = cd; 30 this.cd = cd;
30 storage_class = STC.STCstatic | STC.STCgshared; 31 storage_class = STC.STCstatic | STC.STCgshared;
31 } 32 }
32 33