/netbsd-current/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
H A D | aliasthis.c | 34 Type *tthis = (e->op == TOKtype ? e->type : NULL); local 37 if (tthis && ad->aliasthis->needThis()) 45 if (FuncDeclaration *f = fd->overloadModMatch(loc, tthis, hasOverloads))
|
H A D | clone.c | 422 Type *tthis = NULL; // dead-store to prevent spurious warning local 425 case 0: tthis = ad->type; break; 426 case 1: tthis = ad->type->constOf(); break; 427 case 2: tthis = ad->type->immutableOf(); break; 428 case 3: tthis = ad->type->sharedOf(); break; 429 case 4: tthis = ad->type->sharedConstOf(); break; 442 a[0]->type = tthis; 443 f = resolveFuncCall(ad->loc, sc, eq, NULL, tthis, &a, 1);
|
H A D | template.h | 96 MATCH deduceFunctionTemplateMatch(TemplateInstance *ti, Scope *sc, FuncDeclaration *&fd, Type *tthis, Expressions *fargs); 98 FuncDeclaration *doHeaderInstantiation(TemplateInstance *ti, Scope *sc, FuncDeclaration *fd, Type *tthis, Expressions *fargs);
|
H A D | func.c | 955 //printf("vi = %d,\tthis = %p %s %s @ [%s]\n\tfdc = %p %s %s @ [%s]\n\tfdv = %p %s %s @ [%s]\n", 3146 * 1. If the 'tthis' matches only one candidate, it's an "exact match". 3148 * eg. If 'tthis" is mutable and there's only one mutable method. 3152 * eg. If 'tthis' is mutable, and there's both mutable and const methods, 3156 * eg. If 'tthis' is mutable, and there's two or more mutable methods. 3158 * e.g. If 'tthis' is const but there's no const methods. 3160 FuncDeclaration *FuncDeclaration::overloadModMatch(Loc loc, Type *tthis, bool &hasOverloads) argument 3170 Type *tthis; member in struct:ParamMod 3188 if (tthis) // non-static functions are preferred than static ones 3191 match = f->isCtorDeclaration() ? MATCHexact : MODmethodConv(tthis 3485 resolveFuncCall(Loc loc, Scope *sc, Dsymbol *s, Objects *tiargs, Type *tthis, Expressions *fargs, int flags) argument 4087 Type *tthis = ad->getType()->addMod(tf->mod); local [all...] |
H A D | dtemplate.c | 1093 * tthis 'this' argument if !NULL 1106 FuncDeclaration *&fd, Type *tthis, Expressions *fargs) 1258 tthis = NULL; 1259 if (tthis) 1263 // Match 'tthis' to any TemplateThisParameter's 1272 MATCH m = deduceType(tthis, paramscope, t, parameters, dedtypes); 1280 // Match attributes of tthis against attributes of fd 1305 unsigned char thismod = tthis->mod; 1966 fd = doHeaderInstantiation(ti, sc2, fd, tthis, fargs); 2128 * tthis i 1104 deduceFunctionTemplateMatch( TemplateInstance *ti, Scope *sc, FuncDeclaration *&fd, Type *tthis, Expressions *fargs) argument 2132 functionResolve(Match *m, Dsymbol *dstart, Loc loc, Scope *sc, Objects *tiargs, Type *tthis, Expressions *fargs) argument 2140 Type *tthis; member in struct:ParamDeduce 2647 doHeaderInstantiation( TemplateInstance *ti, Scope *sc2, FuncDeclaration *fd, Type *tthis, Expressions *fargs) argument [all...] |
H A D | expression.c | 250 Type *tthis; local 257 tthis = de->e1->type; 265 tthis = NULL; 282 FuncDeclaration *f = resolveFuncCall(loc, sc, os->a[i], tiargs, tthis, &a, 1); 300 FuncDeclaration *f = resolveFuncCall(loc, sc, os->a[i], tiargs, tthis, NULL, 1); 331 tthis = dti->e1->type; 342 tthis = dte->e1->type; 355 tthis = NULL; 366 tthis = NULL; 374 tthis 1376 functionParameters(Loc loc, Scope *sc, TypeFunction *tf, Type *tthis, Expressions *arguments, FuncDeclaration *fd, Type **prettype, Expression **peprefix) argument [all...] |
H A D | declaration.h | 110 void functionResolve(Match *m, Dsymbol *fd, Loc loc, Scope *sc, Objects *tiargs, Type *tthis, Expressions *fargs); 619 FuncDeclaration *overloadModMatch(Loc loc, Type *tthis, bool &hasOverloads); 681 Type *tthis,
|
H A D | expressionsem.c | 57 bool functionParameters(Loc loc, Scope *sc, TypeFunction *tf, Type *tthis, Expressions *arguments, FuncDeclaration *fd, Type **prettype, Expression **peprefix); 165 OverloadSet *os, Objects* tiargs, Type *tthis, Expressions *arguments) 173 if (FuncDeclaration *f2 = resolveFuncCall(loc, sc, s, tiargs, tthis, arguments, 1)) 2744 Type *tthis = NULL; local 2958 tthis = de->e1->type; 3157 tthis = ue->e1->type; 3263 tthis = cd->type->addMod(sc->func->type->mod); 3265 exp->f = resolveOverloadSet(exp->loc, sc, os, NULL, tthis, exp->arguments); 3267 exp->f = resolveFuncCall(exp->loc, sc, cd->baseClass->ctor, NULL, tthis, exp->arguments, 0); 3301 tthis 164 resolveOverloadSet(Loc loc, Scope *sc, OverloadSet *os, Objects* tiargs, Type *tthis, Expressions *arguments) argument [all...] |
H A D | mtype.h | 633 MATCH callMatch(Type *tthis, Expressions *toargs, int flag = 0);
|
H A D | mtype.c | 5953 MATCH TypeFunction::callMatch(Type *tthis, Expressions *args, int flag) argument 5959 if (tthis) 5961 Type *t = tthis;
|
/netbsd-current/external/gpl3/gcc/dist/gcc/d/dmd/ |
H A D | aliasthis.d | 94 Type tthis = (e.op == EXP.type ? e.type : null); 101 if (tthis && ad.aliasthis.sym.needThis()) 110 if (auto f = fd.overloadModMatch(loc, tthis, hasOverloads))
|
H A D | func.d | 541 Type tthis = addModStc(dualCtx ? 544 vthis = new VarDeclaration(loc, tthis, dualCtx ? Id.this2 : Id.capture, null); 857 * 1. If the 'tthis' matches only one candidate, it's an "exact match". 859 * eg. If 'tthis" is mutable and there's only one mutable method. 863 * eg. If 'tthis' is mutable, and there's both mutable and const methods, 867 * eg. If 'tthis' is mutable, and there's two or more mutable methods. 869 * e.g. If 'tthis' is const but there's no const methods. 871 extern (D) final FuncDeclaration overloadModMatch(const ref Loc loc, Type tthis, ref bool hasOverloads) 885 if (tthis) // non-static functions are preferred than static ones 888 match = f.isCtorDeclaration() ? MATCH.exact : MODmethodConv(tthis [all...] |
H A D | expressionsem.d | 1123 Type tthis; 1129 tthis = de.e1.type; 1137 tthis = null; 1154 if (FuncDeclaration f = resolveFuncCall(loc, sc, os.a[i], tiargs, tthis, &a, FuncResolveFlag.quiet)) 1171 if (FuncDeclaration f = resolveFuncCall(loc, sc, os.a[i], tiargs, tthis, null, FuncResolveFlag.quiet)) 1203 tthis = dti.e1.type; 1213 tthis = dte.e1.type; 1226 tthis = null; 1237 tthis = null; 1245 tthis [all...] |
H A D | dtemplate.d | 1307 * tthis 'this' argument if !NULL 1315 extern (D) MATCHpair deduceFunctionTemplateMatch(TemplateInstance ti, Scope* sc, ref FuncDeclaration fd, Type tthis, Expressions* fargs) 1343 if (tthis) 1344 printf("tthis = %s\n", tthis.toChars()); 1515 tthis = null; 1516 if (tthis) 1520 // Match 'tthis' to any TemplateThisParameter's 1528 MATCH m = deduceType(tthis, paramscope, t, parameters, dedtypes); 1536 // Match attributes of tthis agains [all...] |
H A D | clone.d | 466 bool hasIt(Type tthis) 476 a[0].type = tthis; 477 return resolveFuncCall(ad.loc, sc, eq, null, tthis, &a, FuncResolveFlag.quiet);
|
H A D | escape.d | 490 Type tthis = ce.type.toBasetype(); 491 assert(tthis.ty == Tstruct); 492 if (!tthis.hasPointers())
|
H A D | semantic3.d | 717 Type tthis = ad2.type.addMod(funcdecl.vthis.type.mod); 718 FuncDeclaration fd = resolveFuncCall(Loc.initial, sc2, cd.baseClass.ctor, null, tthis, null, FuncResolveFlag.quiet);
|
H A D | mtype.d | 4369 * tthis = type of `this` parameter, null if none 4374 StorageClass parameterStorageClass(Type tthis, Parameter p) 4423 if (tthis && tthis.isMutable()) 4425 auto tb = tthis.toBasetype(); 4582 * tthis = type of `this` pointer, null if not member function 4590 extern (D) MATCH callMatch(Type tthis, Expression[] args, int flag = 0, const(char)** pMessage = null, Scope* sc = null) 4596 if (tthis) 4598 Type t = tthis;
|