Skip to content
Newer
Older
100644 67 lines (52 sloc) 1.78 KB
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
1
9032204 @braddr dmd 0.169
braddr authored Jul 3, 2009
2 // Compiler implementation of the D programming language
ef1ec29 @MartinNowak Revert "fix Issue 7373 - (Regression git) Renamed imports conflict wi…
MartinNowak authored Feb 11, 2012
3 // Copyright (c) 1999-2007 by Digital Mars
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
4 // All Rights Reserved
5 // written by Walter Bright
fcf188d @braddr dmd 1.011
braddr authored Jul 3, 2009
6 // http://www.digitalmars.com
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
7 // License for redistribution is by either the Artistic License
8 // in artistic.txt, or the GNU General Public License in gnu.txt.
9 // See the included readme.txt for details.
10
7a3c678 @braddr dmd 0.61
braddr authored Jul 2, 2009
11 #ifndef DMD_IMPORT_H
12 #define DMD_IMPORT_H
13
14 #ifdef __DMC__
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
15 #pragma once
7a3c678 @braddr dmd 0.61
braddr authored Jul 2, 2009
16 #endif /* __DMC__ */
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
17
18 #include "dsymbol.h"
19
20
21 struct Identifier;
22 struct Scope;
23 struct OutBuffer;
24 struct Module;
25 struct Package;
fd61ac1 @braddr dmd 0.163
braddr authored Jul 3, 2009
26 struct AliasDeclaration;
8c4dd91 @braddr dmd 0.141
braddr authored Jul 2, 2009
27 struct HdrGenState;
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
28
29 struct Import : Dsymbol
30 {
8b3bb0d @michelf Added ArrayOf macro, renamed Array to ArrayBase, changed all direct u…
michelf authored Jun 26, 2011
31 Identifiers *packages; // array of Identifier's representing packages
3addcfb remove tabs, any trailing spaces
Walter Bright authored Mar 31, 2010
32 Identifier *id; // module Identifier
fd61ac1 @braddr dmd 0.163
braddr authored Jul 3, 2009
33 Identifier *aliasId;
3addcfb remove tabs, any trailing spaces
Walter Bright authored Mar 31, 2010
34 int isstatic; // !=0 if static import
f79953b @MartinNowak apply protection to import and it's aliases
MartinNowak authored Feb 11, 2012
35 enum PROT protection;
fd61ac1 @braddr dmd 0.163
braddr authored Jul 3, 2009
36
37 // Pairs of alias=name to bind into current namespace
8b3bb0d @michelf Added ArrayOf macro, renamed Array to ArrayBase, changed all direct u…
michelf authored Jun 26, 2011
38 Identifiers names;
39 Identifiers aliases;
fd61ac1 @braddr dmd 0.163
braddr authored Jul 3, 2009
40
c022036 @MartinNowak Revert "Merge pull request #591 from ckamm/bug314"
MartinNowak authored Feb 11, 2012
41 AliasDeclarations aliasdecls; // AliasDeclarations for names/aliases
42
05d595b @braddr dmd 0.161
braddr authored Jul 3, 2009
43 Module *mod;
3addcfb remove tabs, any trailing spaces
Walter Bright authored Mar 31, 2010
44 Package *pkg; // leftmost package/module
05d595b @braddr dmd 0.161
braddr authored Jul 3, 2009
45
8b3bb0d @michelf Added ArrayOf macro, renamed Array to ArrayBase, changed all direct u…
michelf authored Jun 26, 2011
46 Import(Loc loc, Identifiers *packages, Identifier *id, Identifier *aliasId,
3addcfb remove tabs, any trailing spaces
Walter Bright authored Mar 31, 2010
47 int isstatic);
fd61ac1 @braddr dmd 0.163
braddr authored Jul 3, 2009
48 void addAlias(Identifier *name, Identifier *alias);
49
b35589b @braddr dmd 2.016
braddr authored Jul 3, 2009
50 const char *kind();
f79953b @MartinNowak apply protection to import and it's aliases
MartinNowak authored Feb 11, 2012
51 enum PROT prot();
3addcfb remove tabs, any trailing spaces
Walter Bright authored Mar 31, 2010
52 Dsymbol *syntaxCopy(Dsymbol *s); // copy only syntax trees
8594c66 @braddr dmd 1.001
braddr authored Jul 3, 2009
53 void load(Scope *sc);
216396c 1.049 and 2.034
Walter Bright authored Oct 11, 2009
54 void importAll(Scope *sc);
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
55 void semantic(Scope *sc);
56 void semantic2(Scope *sc);
c022036 @MartinNowak Revert "Merge pull request #591 from ckamm/bug314"
MartinNowak authored Feb 11, 2012
57 Dsymbol *toAlias();
58 int addMember(Scope *sc, ScopeDsymbol *s, int memnum);
9032204 @braddr dmd 0.169
braddr authored Jul 3, 2009
59 Dsymbol *search(Loc loc, Identifier *ident, int flags);
c022036 @MartinNowak Revert "Merge pull request #591 from ckamm/bug314"
MartinNowak authored Feb 11, 2012
60 int overloadInsert(Dsymbol *s);
0ecd702 @braddr dmd 0.142
braddr authored Jul 3, 2009
61 void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
7a3c678 @braddr dmd 0.61
braddr authored Jul 2, 2009
62
63 Import *isImport() { return this; }
bde0943 @braddr dmd 0.50
braddr authored Jul 2, 2009
64 };
65
7a3c678 @braddr dmd 0.61
braddr authored Jul 2, 2009
66 #endif /* DMD_IMPORT_H */
Something went wrong with that request. Please try again.