Mercurial > projects > ldc
comparison dmd/import.h @ 626:e83ba4ae4878
Fix import visibility bugs 313 and 314.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 01 Oct 2008 19:16:10 +0200 |
parents | aaade6ded589 |
children | def7a1d494fd |
comparison
equal
deleted
inserted
replaced
625:7e0a766fef47 | 626:e83ba4ae4878 |
---|---|
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 enum PROT protection; | |
37 | 38 |
38 // Pairs of alias=name to bind into current namespace | 39 // Pairs of alias=name to bind into current namespace |
39 Array names; | 40 Array names; |
40 Array aliases; | 41 Array aliases; |
41 | 42 |
47 Import(Loc loc, Array *packages, Identifier *id, Identifier *aliasId, | 48 Import(Loc loc, Array *packages, Identifier *id, Identifier *aliasId, |
48 int isstatic); | 49 int isstatic); |
49 void addAlias(Identifier *name, Identifier *alias); | 50 void addAlias(Identifier *name, Identifier *alias); |
50 | 51 |
51 const char *kind(); | 52 const char *kind(); |
53 enum PROT prot(); | |
52 Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees | 54 Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees |
53 void load(Scope *sc); | 55 void load(Scope *sc); |
54 void semantic(Scope *sc); | 56 void semantic(Scope *sc); |
55 void semantic2(Scope *sc); | 57 void semantic2(Scope *sc); |
56 Dsymbol *toAlias(); | 58 Dsymbol *toAlias(); |