annotate dmd/ModuleInfoDeclaration.d @ 114:e28b18c23469

added a module dmd.common for commonly used stuff it currently holds code for consistency checking of predefined versions also added a VisualD project file
author Trass3r
date Wed, 01 Sep 2010 18:21:58 +0200
parents 8e1e220cebb3
children e7769d53e750
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;
79
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
6 import dmd.OutBuffer;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.Dsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 import dmd.Scope;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 import dmd.Loc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 import dmd.backend.Symbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 class ModuleInfoDeclaration : VarDeclaration
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 {
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
15 Module mod;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
17 this(Module mod)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 {
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
19 super(Loc(0), Module.moduleinfo.type, mod.ident, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
22 override Dsymbol syntaxCopy(Dsymbol)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 {
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
24 assert(false); // should never be produced by syntax
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
25 return 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 void semantic(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
32 void emitComment(Scope *sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
34 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35
79
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
36 override void toJsonBuffer(OutBuffer buf)
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
37 {
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
38 }
43073c7c7769 updated to 2.035
Trass3r
parents: 72
diff changeset
39
100
8e1e220cebb3 implemented missing methods
Trass3r
parents: 79
diff changeset
40 override Symbol* toSymbol()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
44 }