Home
last modified time | relevance | path

Searched refs:ad2 (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dopover.c587 AggregateDeclaration *ad2 = isAggregate(e->e2->type); in op_overload() local
589 if (e->op == TOKassign && ad1 == ad2) in op_overload()
607 if (ad2 && id_r) in op_overload()
609 s_r = search_function(ad2, id_r); in op_overload()
640 if (ad2) in op_overload()
642 s_r = search_function(ad2, Id::opBinaryRight); in op_overload()
750 if (ad2 && id) in op_overload()
752 s = search_function(ad2, id); in op_overload()
843 !(e->op == TOKassign && ad2 && ad1 == ad2)) // See Bugzilla 2943 in op_overload()
864 if (ad2 && ad2->aliasthis && in op_overload()
[all …]
H A Daliasthis.c136 AggregateDeclaration *ad2 = ((TypeStruct *)ad->type)->sym; in semantic() local
137 assert(ad2->type == Type::terror); in semantic()
138 ad->aliasthis = ad2->aliasthis; in semantic()
H A Dfunc.c1693 AggregateDeclaration *ad2 = isMember2(); in semantic3() local
1697 if (ad2 && isCtorDeclaration()) in semantic3()
1699 allocFieldinit(sc2, ad2->fields.dim); in semantic3()
1700 for (size_t i = 0; i < ad2->fields.dim; i++) in semantic3()
1702 VarDeclaration *v = ad2->fields[i]; in semantic3()
1781 else if (ad2 && isCtorDeclaration()) in semantic3()
1783 ClassDeclaration *cd = ad2->isClassDeclaration(); in semantic3()
1788 for (size_t i = 0; i < ad2->fields.dim; i++) in semantic3()
1790 VarDeclaration *v = ad2->fields[i]; in semantic3()
1883 else if (ad2 && isCtorDeclaration()) in semantic3()
H A Ddeclaration.c1271 AggregateDeclaration *ad2 = ti->tempdecl->isMember(); in semantic() local
1272 if (ad2 && storage_class != STCundefined) in semantic()
1274 error("cannot use template to add field to aggregate '%s'", ad2->toChars()); in semantic()
H A Dexpressionsem.c3138 ClassDeclaration *ad2 = b->sym; in visit() local
3139 ue->e1 = ue->e1->castTo(sc, ad2->type->addMod(ue->e1->type->mod)); in visit()
3142 int vi = exp->f->findVtblIndex((Dsymbols*)&ad2->vtbl, (int)ad2->vtbl.dim); in visit()
3144 exp->f = ad2->vtbl[vi]->isFuncDeclaration(); in visit()
5712 AggregateDeclaration *ad2 = isAggregate(e2x->type); in visit() local
5713 if (ad2 && ad2->aliasthis && !(exp->att2 && e2x->type == exp->att2)) in visit()
5721 exp->e2 = new DotIdExp(exp->e2->loc, exp->e2, ad2->aliasthis->ident); in visit()
H A Dexpression.c220 if (AggregateDeclaration *ad2 = s->isAggregateDeclaration()) in isNeedThisScope() local
222 if (ad2 == ad) in isNeedThisScope()
224 else if (ad2->isNested()) in isNeedThisScope()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dopover.d606 AggregateDeclaration ad2 = isAggregate(e.e2.type); in visitBin() local
607 if (e.op == EXP.assign && ad1 == ad2) in visitBin()
643 if (ad2) in visitBin()
645 s_r = search_function(ad2, Id.opBinaryRight); in visitBin()
679 if (ad2 && id_r) in visitBin()
681 s_r = search_function(ad2, id_r); in visitBin()
770 if (ad2 && id) in visitBin()
772 s = search_function(ad2, id); in visitBin()
840 … if (!(e.op == EXP.assign && ad2 && ad1 == ad2)) // https://issues.dlang.org/show_bug.cgi?id=2943 in visitBin()
876 … if (!(e.op == EXP.assign && ad1 && ad1 == ad2)) // https://issues.dlang.org/show_bug.cgi?id=2943 in visitBin()
[all …]
H A Dsemantic3.d587 auto ad2 = funcdecl.isMemberLocal(); in visit() local
591 if (ad2 && funcdecl.isCtorDeclaration()) in visit()
593 sc2.ctorflow.allocFieldinit(ad2.fields.dim); in visit()
594 foreach (v; ad2.fields) in visit()
674 else if (ad2 && funcdecl.isCtorDeclaration()) in visit()
676 ClassDeclaration cd = ad2.isClassDeclaration(); in visit()
681 foreach (i, v; ad2.fields) in visit()
717 Type tthis = ad2.type.addMod(funcdecl.vthis.type.mod); in visit()
778 else if (ad2 && funcdecl.isCtorDeclaration()) in visit()
H A Dexpressionsem.d3661 if (AggregateDeclaration ad2 = cd.isMember2()) in visit() local
3665 te = getRightThis(exp.loc, sc, ad2, te, cd); in visit()
3668 …exp.error("need `this` of type `%s` needed to `new` nested class `%s`", ad2.toChars(), cd.toChars(… in visit()
4672 auto ad2 = b.sym; in visit() local
4673 ue.e1 = ue.e1.castTo(sc, ad2.type.addMod(ue.e1.type.mod)); in visit()
4675 auto vi = exp.f.findVtblIndex(&ad2.vtbl, cast(int)ad2.vtbl.dim); in visit()
4677 exp.f = ad2.vtbl[vi].isFuncDeclaration(); in visit()
5163 if (AggregateDeclaration ad2 = exp.f.isMember2()) in visit() local
5167 te = getRightThis(exp.loc, sc, ad2, te, exp.f); in visit()
5170 … exp.error("need `this` of type `%s` to call function `%s`", ad2.toChars(), exp.f.toChars()); in visit()
[all …]
H A Ddsymbolsem.d775 AggregateDeclaration ad2 = ti.tempdecl.isMember(); in visit() local
776 if (ad2 && dsym.storage_class != STC.undefined_) in visit()
778 dsym.error("cannot use template to add field to aggregate `%s`", ad2.toChars()); in visit()
H A Dexpression.d221 if (AggregateDeclaration ad2 = s.isAggregateDeclaration()) in isNeedThisScope() local
223 if (ad2 == ad) in isNeedThisScope()
225 else if (ad2.isNested()) in isNeedThisScope()