comparison dmd2/aliasthis.h @ 1452:638d16625da2

LDC 2 compiles again.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 30 May 2009 17:23:32 +0100
parents
children
comparison
equal deleted inserted replaced
1423:42bd767ec5a4 1452:638d16625da2
1
2 // Compiler implementation of the D programming language
3 // Copyright (c) 2009-2009 by Digital Mars
4 // All Rights Reserved
5 // written by Walter Bright
6 // http://www.digitalmars.com
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
11 #ifndef DMD_ALIASTHIS_H
12 #define DMD_ALIASTHIS_H
13
14 #ifdef __DMC__
15 #pragma once
16 #endif /* __DMC__ */
17
18 #include "mars.h"
19 #include "dsymbol.h"
20
21 /**************************************************************/
22
23 #if DMDV2
24
25 struct AliasThis : Dsymbol
26 {
27 // alias Identifier this;
28 Identifier *ident;
29
30 AliasThis(Loc loc, Identifier *ident);
31
32 Dsymbol *syntaxCopy(Dsymbol *);
33 void semantic(Scope *sc);
34 const char *kind();
35 void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
36 AliasThis *isAliasThis() { return this; }
37 };
38
39 #endif
40
41 #endif