/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
H A D | dsymbolsem.d | 5711 void templateInstanceSemantic(TemplateInstance tempinst, Scope* sc, Expressions* fargs) in templateInstanceSemantic() argument 5716 for (Dsymbol s = tempinst; s; s = s.parent) in templateInstanceSemantic() 5729 … printf("\n+TemplateInstance.dsymbolSemantic('%s', this=%p)\n", tempinst.toChars(), tempinst); in templateInstanceSemantic() 5731 if (tempinst.inst) // if semantic() was already run in templateInstanceSemantic() 5736 tempinst.inst.toChars(), tempinst.inst); in templateInstanceSemantic() 5740 if (tempinst.semanticRun != PASS.initial) in templateInstanceSemantic() 5747 if (!tempinst.gagged) in templateInstanceSemantic() 5749 tempinst.error(tempinst.loc, "recursive template expansion"); in templateInstanceSemantic() 5750 if (tempinst.gagged) in templateInstanceSemantic() 5751 tempinst.semanticRun = PASS.initial; in templateInstanceSemantic() [all …]
|
H A D | semantic2.d | 137 override void visit(TemplateInstance tempinst) in visit() argument 139 if (tempinst.semanticRun >= PASS.semantic2) in visit() 141 tempinst.semanticRun = PASS.semantic2; in visit() 144 printf("+TemplateInstance.semantic2('%s')\n", tempinst.toChars()); in visit() 145 scope(exit) printf("-TemplateInstance.semantic2('%s')\n", tempinst.toChars()); in visit() 147 if (tempinst.errors || !tempinst.members) in visit() 150 TemplateDeclaration tempdecl = tempinst.tempdecl.isTemplateDeclaration(); in visit() 155 sc = sc.push(tempinst.argsym); in visit() 156 sc = sc.push(tempinst); in visit() 157 sc.tinst = tempinst; in visit() [all …]
|
H A D | semantic3.d | 97 override void visit(TemplateInstance tempinst) in visit() argument 101 …rintf("TemplateInstance.semantic3('%s'), semanticRun = %d\n", tempinst.toChars(), tempinst.semanti… in visit() 104 if (tempinst.semanticRun >= PASS.semantic3) in visit() 106 tempinst.semanticRun = PASS.semantic3; in visit() 107 if (tempinst.errors || !tempinst.members) in visit() 110 TemplateDeclaration tempdecl = tempinst.tempdecl.isTemplateDeclaration(); in visit() 114 sc = sc.push(tempinst.argsym); in visit() 115 sc = sc.push(tempinst); in visit() 116 sc.tinst = tempinst; in visit() 117 sc.minst = tempinst.minst; in visit() [all …]
|
H A D | dtemplate.d | 4036 if (tparam && tparam.ty == Tinstance && t.tempinst.tempdecl) in visit() 4038 TemplateDeclaration tempdecl = t.tempinst.tempdecl.isTemplateDeclaration(); in visit() 4045 if (!tp.tempinst.tempdecl) in visit() 4052 size_t i = templateIdentifierLookup(tp.tempinst.name, parameters); in visit() 4059 auto tid = new TypeIdentifier(tp.loc, tp.tempinst.name); in visit() 4100 else if (tempdecl != tp.tempinst.tempdecl) in visit() 4108 if (i < t.tempinst.tiargs.dim) in visit() 4109 o1 = (*t.tempinst.tiargs)[i]; in visit() 4110 else if (i < t.tempinst.tdtypes.dim && i < tp.tempinst.tiargs.dim) in visit() 4113 o1 = t.tempinst.tdtypes[i]; in visit() [all …]
|
H A D | dscope.d | 410 sds = (cast(TypeInstance)t).tempinst; in checkAliasThis()
|
H A D | parse.d | 1682 auto tempinst = new AST.TemplateInstance(loc, id, tiargs); in parseMixin() local 1684 tqual = new AST.TypeInstance(loc, tempinst); in parseMixin() 1686 tqual.addInst(tempinst); in parseMixin() 3635 auto tempinst = new AST.TemplateInstance(loc, id, parseTemplateArguments()); 3636 … t = parseBasicTypeStartingAt(new AST.TypeInstance(loc, tempinst), dontLookDotIdents); 3784 auto tempinst = new AST.TemplateInstance(loc, id, parseTemplateArguments()); 3785 tid.addInst(tempinst); 7863 auto tempinst = new AST.TemplateInstance(loc, id, parseTemplateArguments()); in parsePrimaryExp() local 7864 e = new AST.ScopeExp(loc, tempinst); in parsePrimaryExp()
|
H A D | mtype.h | 730 TemplateInstance *tempinst;
|
H A D | typesem.d | 440 if (!ti.tempinst.errors) 581 return typeToExpressionHelper(t, new ScopeExp(t.loc, t.tempinst)); in typeToExpression() 3071 mt.tempinst.dsymbolSemantic(sc); in visitInstance() 3072 if (!global.gag && mt.tempinst.errors) in visitInstance() 3075 mt.resolveHelper(loc, sc, mt.tempinst, null, pe, pt, ps, intypeid); in visitInstance()
|
H A D | cppmangle.d | 1978 assert(t.tempinst !is null); in visit() 1979 t.tempinst.accept(this); in visit()
|
H A D | transitivevisitor.d | 444 t.tempinst.accept(this); in ParseVisitMethods()
|
H A D | mtype.d | 5487 TemplateInstance tempinst; variable 5489 extern (D) this(const ref Loc loc, TemplateInstance tempinst) in this() argument 5492 this.tempinst = tempinst; in this() 5503 auto t = new TypeInstance(loc, tempinst.syntaxCopy(null)); in syntaxCopy()
|
H A D | dtoh.d | 2050 visitTi(t.tempinst);
|
H A D | hdrgen.d | 3872 t.tempinst.dsymbolToBuffer(buf, hgs); in typeToBufferx()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
H A D | typesem.c | 64 result = typeToExpressionHelper(t, new ScopeExp(t->loc, t->tempinst)); in visit()
|
H A D | dtemplate.c | 3681 if (tparam && tparam->ty == Tinstance && t->tempinst->tempdecl) in deduceType() 3683 TemplateDeclaration *tempdecl = t->tempinst->tempdecl->isTemplateDeclaration(); in deduceType() 3690 if (!tp->tempinst->tempdecl) in deduceType() 3697 size_t i = templateIdentifierLookup(tp->tempinst->name, parameters); in deduceType() 3703 TypeIdentifier *tid = new TypeIdentifier(tp->loc, tp->tempinst->name); in deduceType() 3743 else if (tempdecl != tp->tempinst->tempdecl) in deduceType() 3752 if (i < t->tempinst->tiargs->dim) in deduceType() 3753 o1 = (*t->tempinst->tiargs)[i]; in deduceType() 3754 else if (i < t->tempinst->tdtypes.dim && i < tp->tempinst->tiargs->dim) in deduceType() 3757 o1 = t->tempinst->tdtypes[i]; in deduceType() [all …]
|
H A D | parse.c | 2684 TemplateInstance *tempinst = new TemplateInstance(loc, id); in parseMixin() local 2685 tempinst->tiargs = tiargs; in parseMixin() 2687 tqual = new TypeInstance(loc, tempinst); in parseMixin() 2689 tqual->addInst(tempinst); in parseMixin() 3128 TemplateInstance *tempinst = new TemplateInstance(loc, id); in parseBasicType() local 3129 tempinst->tiargs = parseTemplateArguments(); in parseBasicType() 3130 t = parseBasicTypeStartingAt(new TypeInstance(loc, tempinst), dontLookDotIdents); in parseBasicType() 3268 TemplateInstance *tempinst = new TemplateInstance(loc, id); in parseBasicTypeStartingAt() local 3269 tempinst->tiargs = parseTemplateArguments(); in parseBasicTypeStartingAt() 3270 tid->addInst(tempinst); in parseBasicTypeStartingAt() [all …]
|
H A D | mtype.h | 723 TemplateInstance *tempinst; 725 TypeInstance(Loc loc, TemplateInstance *tempinst);
|
H A D | mtype.c | 7044 if (!((TypeInstance *)t)->tempinst->errors) in resolveHelper() 7198 TypeInstance::TypeInstance(Loc loc, TemplateInstance *tempinst) in TypeInstance() argument 7201 this->tempinst = tempinst; in TypeInstance() 7212 TypeInstance *t = new TypeInstance(loc, (TemplateInstance *)tempinst->syntaxCopy(NULL)); in syntaxCopy() 7225 tempinst->semantic(sc); in resolve() 7226 if (!global.gag && tempinst->errors) in resolve() 7232 resolveHelper(loc, sc, tempinst, NULL, pe, pt, ps, intypeid); in resolve()
|
H A D | hdrgen.c | 1041 t->tempinst->accept(this); in visit()
|