Mercurial > projects > ddmd
annotate dmd/ModuleInfoDeclaration.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | e3afd1303184 |
children |
rev | line source |
---|---|
0 | 1 module dmd.ModuleInfoDeclaration; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.VarDeclaration; |
5 import dmd.Module; | |
169 | 6 import dmd.Global; |
79 | 7 import dmd.OutBuffer; |
0 | 8 import dmd.Dsymbol; |
9 import dmd.Scope; | |
10 import dmd.Loc; | |
11 | |
12 import dmd.backend.Symbol; | |
13 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
14 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
|
15 |
0 | 16 class ModuleInfoDeclaration : VarDeclaration |
17 { | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
18 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
|
19 |
100 | 20 Module mod; |
0 | 21 |
100 | 22 this(Module mod) |
0 | 23 { |
178 | 24 register(); |
169 | 25 super(Loc(0), global.moduleinfo.type, mod.ident, null); |
0 | 26 } |
27 | |
100 | 28 override Dsymbol syntaxCopy(Dsymbol) |
0 | 29 { |
100 | 30 assert(false); // should never be produced by syntax |
31 return null; | |
0 | 32 } |
33 | |
100 | 34 override void semantic(Scope sc) |
0 | 35 { |
36 } | |
37 | |
100 | 38 void emitComment(Scope *sc) |
0 | 39 { |
40 } | |
41 | |
79 | 42 override void toJsonBuffer(OutBuffer buf) |
43 { | |
44 } | |
45 | |
100 | 46 override Symbol* toSymbol() |
0 | 47 { |
48 assert(false); | |
49 } | |
72 | 50 } |