Mercurial > projects > ldc
comparison dmd2/import.h @ 1526:54b3c1394d62
Merged dmdfe 2.031.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 07 Jul 2009 02:26:11 +0100 |
parents | f04dde6e882c |
children |
comparison
equal
deleted
inserted
replaced
1525:d28cd7c45267 | 1526:54b3c1394d62 |
---|---|
32 { | 32 { |
33 Array *packages; // array of Identifier's representing packages | 33 Array *packages; // array of Identifier's representing packages |
34 Identifier *id; // module Identifier | 34 Identifier *id; // module Identifier |
35 Identifier *aliasId; | 35 Identifier *aliasId; |
36 int isstatic; // !=0 if static import | 36 int isstatic; // !=0 if static import |
37 #if IN_LLVM | |
37 enum PROT protection; | 38 enum PROT protection; |
39 #endif | |
38 | 40 |
39 // Pairs of alias=name to bind into current namespace | 41 // Pairs of alias=name to bind into current namespace |
40 Array names; | 42 Array names; |
41 Array aliases; | 43 Array aliases; |
42 | 44 |
48 Import(Loc loc, Array *packages, Identifier *id, Identifier *aliasId, | 50 Import(Loc loc, Array *packages, Identifier *id, Identifier *aliasId, |
49 int isstatic); | 51 int isstatic); |
50 void addAlias(Identifier *name, Identifier *alias); | 52 void addAlias(Identifier *name, Identifier *alias); |
51 | 53 |
52 const char *kind(); | 54 const char *kind(); |
55 #if IN_LLVM | |
53 enum PROT prot(); | 56 enum PROT prot(); |
57 #endif | |
54 Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees | 58 Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees |
55 void load(Scope *sc); | 59 void load(Scope *sc); |
56 void semantic(Scope *sc); | 60 void semantic(Scope *sc); |
57 void semantic2(Scope *sc); | 61 void semantic2(Scope *sc); |
58 Dsymbol *toAlias(); | 62 Dsymbol *toAlias(); |