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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.ModuleInfoDeclaration;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 100
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.VarDeclaration;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.Module;
169
e7769d53e750 Moves static variables from Module to Global
korDen
parents: 114
diff changeset
6 import dmd.Global;
79
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
7 import dmd.OutBuffer;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 import dmd.Dsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 import dmd.Scope;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 import dmd.Loc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 import dmd.backend.Symbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
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
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 class ModuleInfoDeclaration : VarDeclaration
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
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
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
20 Module mod;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
22 this(Module mod)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 {
178
e3afd1303184 Many small bugs fixed
korDen
parents: 169
diff changeset
24 register();
169
e7769d53e750 Moves static variables from Module to Global
korDen
parents: 114
diff changeset
25 super(Loc(0), global.moduleinfo.type, mod.ident, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
28 override Dsymbol syntaxCopy(Dsymbol)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 {
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
30 assert(false); // should never be produced by syntax
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
31 return null;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
34 override void semantic(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
38 void emitComment(Scope *sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
39 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
40 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41
79
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
42 override void toJsonBuffer(OutBuffer buf)
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
43 {
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
44 }
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
45
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
46 override Symbol* toSymbol()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
47 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
48 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
49 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
50 }