diff options
Diffstat (limited to 'gcc/d/dmd/import.h')
-rw-r--r-- | gcc/d/dmd/import.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/d/dmd/import.h b/gcc/d/dmd/import.h index 07fb32aa070..34c5a05a8cd 100644 --- a/gcc/d/dmd/import.h +++ b/gcc/d/dmd/import.h @@ -16,7 +16,6 @@ class Identifier; struct Scope; class Module; class Package; -class AliasDeclaration; class Import : public Dsymbol { @@ -24,11 +23,11 @@ public: /* static import aliasId = pkg1.pkg2.id : alias1 = name1, alias2 = name2; */ - Identifiers *packages; // array of Identifier's representing packages + DArray<Identifier*> packages; // array of Identifier's representing packages Identifier *id; // module Identifier Identifier *aliasId; int isstatic; // !=0 if static import - Prot protection; + Visibility visibility; // Pairs of alias=name to bind into current namespace Identifiers names; @@ -39,15 +38,11 @@ public: AliasDeclarations aliasdecls; // corresponding AliasDeclarations for alias=name pairs - Import(Loc loc, Identifiers *packages, Identifier *id, Identifier *aliasId, - int isstatic); - void addAlias(Identifier *name, Identifier *alias); const char *kind() const; - Prot prot(); - Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees + Visibility visible(); + Import *syntaxCopy(Dsymbol *s); // copy only syntax trees void load(Scope *sc); void importAll(Scope *sc); - void addPackageAccess(ScopeDsymbol *scopesym); Dsymbol *toAlias(); void addMember(Scope *sc, ScopeDsymbol *sds); void setScope(Scope* sc); |