mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-07 00:56:55 +02:00
Merge the 2.063 frontend.
This commit is contained in:
+8
-6
@@ -22,7 +22,7 @@ struct Identifier;
|
||||
struct Type;
|
||||
struct Expression;
|
||||
struct HdrGenState;
|
||||
|
||||
struct VarDeclaration;
|
||||
|
||||
struct EnumDeclaration : ScopeDsymbol
|
||||
{ /* enum ident : memtype { ... }
|
||||
@@ -40,15 +40,13 @@ struct EnumDeclaration : ScopeDsymbol
|
||||
Expression *minval;
|
||||
Expression *defaultval; // default initializer
|
||||
#endif
|
||||
int isdeprecated;
|
||||
bool isdeprecated;
|
||||
int isdone; // 0: not done
|
||||
// 1: semantic() successfully completed
|
||||
#ifdef IN_GCC
|
||||
Expressions *attributes; // GCC decl/type attributes
|
||||
#endif
|
||||
|
||||
EnumDeclaration(Loc loc, Identifier *id, Type *memtype);
|
||||
Dsymbol *syntaxCopy(Dsymbol *s);
|
||||
int addMember(Scope *sc, ScopeDsymbol *sd, int memnum);
|
||||
void setScope(Scope *sc);
|
||||
void semantic0(Scope *sc);
|
||||
void semantic(Scope *sc);
|
||||
@@ -59,7 +57,7 @@ struct EnumDeclaration : ScopeDsymbol
|
||||
#if DMDV2
|
||||
Dsymbol *search(Loc, Identifier *ident, int flags);
|
||||
#endif
|
||||
int isDeprecated(); // is Dsymbol deprecated?
|
||||
bool isDeprecated(); // is Dsymbol deprecated?
|
||||
|
||||
void emitComment(Scope *sc);
|
||||
void toJson(JsonOut *json);
|
||||
@@ -85,13 +83,17 @@ struct EnumDeclaration : ScopeDsymbol
|
||||
|
||||
struct EnumMember : Dsymbol
|
||||
{
|
||||
EnumDeclaration *ed;
|
||||
Expression *value;
|
||||
Type *type;
|
||||
VarDeclaration *vd;
|
||||
|
||||
EnumMember(Loc loc, Identifier *id, Expression *value, Type *type);
|
||||
Dsymbol *syntaxCopy(Dsymbol *s);
|
||||
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
|
||||
const char *kind();
|
||||
void semantic(Scope *sc);
|
||||
Expression *getVarExp(Loc loc, Scope *sc);
|
||||
|
||||
void emitComment(Scope *sc);
|
||||
void toJson(JsonOut *json);
|
||||
|
||||
Reference in New Issue
Block a user