Mercurial > projects > ldc
diff dmd/template.h @ 1587:def7a1d494fd
Merge DMD 1.051
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 06 Nov 2009 23:58:01 +0100 |
parents | 8026319762be |
children | 1d0220dd613a |
line wrap: on
line diff
--- a/dmd/template.h Fri Nov 06 21:51:41 2009 +0100 +++ b/dmd/template.h Fri Nov 06 23:58:01 2009 +0100 @@ -60,7 +60,8 @@ TemplateDeclaration *overnext; // next overloaded TemplateDeclaration TemplateDeclaration *overroot; // first in overnext list - Scope *scope; + int semanticRun; // 1 semantic() run + Dsymbol *onemember; // if !=NULL then one member of this template TemplateDeclaration(Loc loc, Identifier *id, TemplateParameters *parameters, @@ -73,6 +74,7 @@ char *toChars(); void emitComment(Scope *sc); + void toJsonBuffer(OutBuffer *buf); // void toDocBuffer(OutBuffer *buf); MATCH matchWithInstance(TemplateInstance *ti, Objects *atypes, int flag); @@ -282,7 +284,7 @@ AliasDeclaration *aliasdecl; // !=NULL if instance is an alias for its // sole member WithScopeSymbol *withsym; // if a member of a with statement - int semanticdone; // has semantic() been done? + int semanticRun; // has semantic() been done? int semantictiargsdone; // has semanticTiargs() been done? int nest; // for recursion detection int havetempdecl; // 1 if used second constructor @@ -341,8 +343,6 @@ Array *idents; Type *tqual; - Scope *scope; // for forward referencing - TemplateMixin(Loc loc, Identifier *ident, Type *tqual, Array *idents, Objects *tiargs); Dsymbol *syntaxCopy(Dsymbol *s); void semantic(Scope *sc);