Mercurial > projects > ddmd
comparison dmd/ModuleInfoDeclaration.d @ 100:8e1e220cebb3
implemented missing methods
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 04:17:10 +0200 |
parents | 43073c7c7769 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
97:d78e4992d6ec | 100:8e1e220cebb3 |
---|---|
9 | 9 |
10 import dmd.backend.Symbol; | 10 import dmd.backend.Symbol; |
11 | 11 |
12 class ModuleInfoDeclaration : VarDeclaration | 12 class ModuleInfoDeclaration : VarDeclaration |
13 { | 13 { |
14 Module mod; | 14 Module mod; |
15 | 15 |
16 this(Module mod) | 16 this(Module mod) |
17 { | 17 { |
18 assert(false); | 18 super(Loc(0), Module.moduleinfo.type, mod.ident, null); |
19 super(Loc(0), null, null, null); | |
20 } | 19 } |
21 | 20 |
22 override Dsymbol syntaxCopy(Dsymbol) | 21 override Dsymbol syntaxCopy(Dsymbol) |
23 { | 22 { |
24 assert(false); | 23 assert(false); // should never be produced by syntax |
24 return null; | |
25 } | 25 } |
26 | 26 |
27 override void semantic(Scope sc) | 27 override void semantic(Scope sc) |
28 { | 28 { |
29 assert(false); | |
30 } | 29 } |
31 | 30 |
32 void emitComment(Scope *sc) | 31 void emitComment(Scope *sc) |
33 { | 32 { |
34 assert(false); | |
35 } | 33 } |
36 | 34 |
37 override void toJsonBuffer(OutBuffer buf) | 35 override void toJsonBuffer(OutBuffer buf) |
38 { | 36 { |
39 } | 37 } |
40 | 38 |
41 override Symbol* toSymbol() | 39 override Symbol* toSymbol() |
42 { | 40 { |
43 assert(false); | 41 assert(false); |
44 } | 42 } |
45 } | 43 } |