Fix import visibility bugs 313 and 314.

This commit is contained in:
Christian Kamm
2008-10-01 19:16:10 +02:00
parent cd99e773f0
commit 271012bcfc
4 changed files with 23 additions and 9 deletions

View File

@@ -34,6 +34,7 @@ struct Import : Dsymbol
Identifier *id; // module Identifier
Identifier *aliasId;
int isstatic; // !=0 if static import
enum PROT protection;
// Pairs of alias=name to bind into current namespace
Array names;
@@ -49,6 +50,7 @@ struct Import : Dsymbol
void addAlias(Identifier *name, Identifier *alias);
const char *kind();
enum PROT prot();
Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees
void load(Scope *sc);
void semantic(Scope *sc);