Mercurial > projects > ddmd
annotate dmd/ClassInfoDeclaration.d @ 192:eb38fdcb3e62 default tip
updated to compile with dmd2.062
author | korDen |
---|---|
date | Sat, 02 Mar 2013 01:25:52 -0800 |
parents | b0d41ff5e0df |
children |
rev | line source |
---|---|
0 | 1 module dmd.ClassInfoDeclaration; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.VarDeclaration; |
5 import dmd.ClassDeclaration; | |
166
d8565fbd755c
Moved object and classinfo from ClassDeclaration to Global (as part of getting rid of the global state)
korDen
parents:
114
diff
changeset
|
6 import dmd.Global; |
0 | 7 import dmd.Dsymbol; |
8 import dmd.Scope; | |
9 import dmd.Loc; | |
79 | 10 import dmd.OutBuffer; |
0 | 11 import dmd.Id; |
12 import dmd.STC; | |
13 | |
14 import dmd.backend.Symbol; | |
15 import dmd.backend.Classsym; | |
16 import dmd.backend.FL; | |
17 import dmd.backend.SFL; | |
18 import dmd.codegen.Util; | |
19 import dmd.backend.SC; | |
20 import dmd.backend.Util; | |
21 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
22 import dmd.DDMDExtensions; |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
23 |
0 | 24 class ClassInfoDeclaration : VarDeclaration |
25 { | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
26 mixin insertMemberExtension!(typeof(this)); |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
27 |
100 | 28 ClassDeclaration cd; |
0 | 29 |
100 | 30 this(ClassDeclaration cd) |
0 | 31 { |
178 | 32 register(); |
33 | |
166
d8565fbd755c
Moved object and classinfo from ClassDeclaration to Global (as part of getting rid of the global state)
korDen
parents:
114
diff
changeset
|
34 super(Loc(0), global.classinfo.type, cd.ident, null); |
0 | 35 |
36 this.cd = cd; | |
37 storage_class = STC.STCstatic | STC.STCgshared; | |
38 } | |
39 | |
100 | 40 override Dsymbol syntaxCopy(Dsymbol) |
0 | 41 { |
100 | 42 assert(false); // should never be produced by syntax |
43 return null; | |
0 | 44 } |
45 | |
100 | 46 override void semantic(Scope sc) |
0 | 47 { |
48 } | |
49 | |
100 | 50 override void emitComment(Scope sc) |
0 | 51 { |
52 } | |
53 | |
79 | 54 override void toJsonBuffer(OutBuffer buf) |
55 { | |
56 } | |
100 | 57 |
58 override Symbol* toSymbol() | |
0 | 59 { |
60 return cd.toSymbol(); | |
61 } | |
72 | 62 } |