| /netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
| H A D | typesem.d | 1271 static bool defaultArgSemantic (ref Parameter fparam, Scope* sc) in typeSemantic() 1273 Expression e = fparam.defaultArg; in typeSemantic() 1274 const isRefOrOut = fparam.isReference(); in typeSemantic() 1275 const isAuto = fparam.storageClass & (STC.auto_ | STC.autoref); in typeSemantic() 1283 e = inferType(e, fparam.type); in typeSemantic() 1285 iz = iz.initializerSemantic(sc, fparam.type, INITnointerpret); in typeSemantic() 1299 && !MODimplicitConv(e.type.mod, fparam.type.mod)) in typeSemantic() 1301 const(char)* errTxt = fparam.storageClass & STC.ref_ ? "ref" : "out"; in typeSemantic() 1303 … e.toChars(), e.type.toChars(), errTxt, fparam.type.toChars(), fparam.toChars()); in typeSemantic() 1305 e = e.implicitCastTo(sc, fparam.type); in typeSemantic() [all …]
|
| H A D | dtemplate.d | 853 foreach (i, fparam; tf.parameterList) in evaluateConstraint() 855 … fparam.storageClass &= (STC.IOR | STC.lazy_ | STC.final_ | STC.TYPECTOR | STC.nodtor); in evaluateConstraint() 856 fparam.storageClass |= STC.parameter; in evaluateConstraint() 859 fparam.storageClass |= STC.variadic; in evaluateConstraint() 865 foreach (fparam; *fparameters) in evaluateConstraint() 867 if (!fparam.ident) in evaluateConstraint() 870 auto v = new VarDeclaration(loc, fparam.type, fparam.ident, null); in evaluateConstraint() 871 fparam.storageClass |= STC.parameter; in evaluateConstraint() 872 v.storage_class = fparam.storageClass; in evaluateConstraint() 1497 … auto fparam = (*fparameters.parameters)[fptupindex]; // fparameters[fptupindex] ? in deduceFunctionTemplateMatch() local [all …]
|
| H A D | lambdacomp.d | 148 foreach (i, fparam; tf.parameterList) in visit() 150 if (fparam.ident !is null) in visit() 155 auto key = fparam.ident.toString(); in visit() 161 fparam.accept(this); in visit()
|
| H A D | semantic3.d | 454 foreach (i, fparam; f.parameterList) in visit() 456 Identifier id = fparam.ident; in visit() 463 fparam.ident = id = Identifier.generateId("_param_", i); in visit() 466 Type vtype = fparam.type; in visit() 483 … if ((funcdecl.flags & FUNCFLAG.inferScope) && !(fparam.storageClass & STC.scope_)) in visit() 486 …stc |= fparam.storageClass & (STC.IOR | STC.return_ | STC.scope_ | STC.lazy_ | STC.final_ | STC.TY… in visit() 498 if (fparam.userAttribDecl) in visit() 499 v.userAttribDecl = fparam.userAttribDecl; in visit() 506 foreach (fparam; *f.parameterList.parameters) in visit() 508 if (!fparam.ident) in visit() [all …]
|
| H A D | doc.d | 229 Parameter fparam = isFunctionParameter(a, namestart, namelen); in write() local 230 if (!fparam) in write() 234 fparam = isEponymousFunctionParameter(a, namestart, namelen); in write() 241 else if (fparam && fparam.type && fparam.ident) in write() 243 .toCBuffer(fparam.type, buf, fparam.ident, &hgs); in write() 252 else if (!fparam) in write() 2668 foreach (fparam; *tf.parameterList.parameters) in isFunctionParameter() 2670 if (fparam.ident && p[0 .. len] == fparam.ident.toString()) in isFunctionParameter() 2672 return fparam; in isFunctionParameter() 2685 Parameter fparam = isFunctionParameter((*a)[i], p, len); in isFunctionParameter() local [all …]
|
| H A D | importc.d | 300 foreach (i, fparam ; tf1.parameterList) in cFuncEquivalence() 302 Type t1 = fparam.type; in cFuncEquivalence()
|
| H A D | dtoh.d | 755 if (tf) foreach (i, fparam; tf.parameterList) 757 if (!isSupportedType(fparam.type)) 760 fd.toPrettyChars(), fparam.type.toChars()); 1953 foreach (i, fparam; tf.parameterList) 1957 fparam.accept(this); 2284 foreach (i, fparam; tf.parameterList) 2288 if (fparam.type == AST.Type.tsize_t && originalType) 2290 fparam = originalType.parameterList[i]; 2292 fparam.accept(this);
|
| H A D | objc.d | 119 foreach (i, fparam; ftype.parameterList) in create() 121 mangleToBuffer(fparam.type, &buf); in create()
|
| H A D | cppmangle.d | 1316 foreach (n, fparam; parameterList) in mangleFunctionParameters() 1318 Type t = fparam.type.merge2(); in mangleFunctionParameters() 1319 if (fparam.isReference()) in mangleFunctionParameters() 1321 else if (fparam.storageClass & STC.lazy_) in mangleFunctionParameters()
|
| H A D | dcast.d | 919 Parameter fparam = tf.parameterList[i - j]; in implicitConvTo() local 920 if (fparam.storageClass & STC.lazy_) in implicitConvTo() 922 Type tparam = fparam.type; in implicitConvTo() 925 if (fparam.isReference()) in implicitConvTo() 1232 Parameter fparam = tf.parameterList[i - j]; in implicitConvTo() local 1233 if (fparam.storageClass & STC.lazy_) in implicitConvTo() 1235 Type tparam = fparam.type; in implicitConvTo() 1238 if (fparam.isReference()) in implicitConvTo()
|
| H A D | transitivevisitor.d | 359 AST.Parameter fparam = AST.Parameter.getNth(parameters, i); in ParseVisitMethods() local 360 fparam.accept(this); in ParseVisitMethods()
|
| H A D | mtype.d | 4320 foreach (i, fparam; tf.parameterList) in purityLevel() 4322 Type t = fparam.type; in purityLevel() 4326 if (fparam.storageClass & (STC.lazy_ | STC.out_)) in purityLevel() 4331 const pref = (fparam.storageClass & STC.ref_) != 0; in purityLevel() 4344 foreach (i, fparam; parameterList) in hasLazyParameters() 4346 if (fparam.storageClass & STC.lazy_) in hasLazyParameters() 4399 foreach (i, fparam; parameterList) in parameterStorageClass() 4401 if (fparam == p) in parameterStorageClass() 4403 Type t = fparam.type; in parameterStorageClass() 4409 if (fparam.isReference()) in parameterStorageClass()
|
| H A D | dinterpret.d | 480 Parameter fparam = tf.parameterList[i]; in interpretFunction() local 482 if (fparam.isReference()) in interpretFunction() 484 if (!istate && (fparam.storageClass & STC.out_)) in interpretFunction() 495 else if (fparam.storageClass & STC.lazy_) in interpretFunction() 502 Type ta = fparam.type.toBasetype(); in interpretFunction() 519 … if (earg.op == EXP.structLiteral && !(fparam.storageClass & (STC.const_ | STC.immutable_))) in interpretFunction() 567 Parameter fparam = tf.parameterList[i]; in interpretFunction() local 575 if (fparam.isReference() && earg.op == EXP.variable && in interpretFunction() 6947 Parameter fparam = fd.type.isTypeFunction().parameterList[numParams - 1]; in interpret_aaApply() local 6948 const wantRefValue = fparam.isReference(); in interpret_aaApply()
|
| H A D | statementsem.d | 764 Parameter fparam = fparameters[0]; in package() local 765 if ((fparam.type.ty == Tpointer || in package() 766 fparam.type.ty == Tdelegate) && in package() 767 fparam.type.nextOf().ty == Tfunction) in package() 769 TypeFunction tf = cast(TypeFunction)fparam.type.nextOf(); in package()
|
| H A D | func.d | 1702 foreach (i, fparam; tf.parameterList) in isTypeIsolatedIndirect() 1704 Type tp = fparam.type; in isTypeIsolatedIndirect() 1708 if (fparam.storageClass & (STC.lazy_ | STC.out_ | STC.ref_)) in isTypeIsolatedIndirect()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | doc.c | 145 Parameter *fparam = (*tf->parameters)[k]; in isFunctionParameter() local 146 if (fparam->ident && cmp(fparam->ident->toChars(), p, len) == 0) in isFunctionParameter() 148 return fparam; in isFunctionParameter() 208 Parameter *fparam = isFunctionParameter(sym, p, len); in isEponymousFunctionParameter() local 209 if (fparam) in isEponymousFunctionParameter() 211 return fparam; in isEponymousFunctionParameter() 1659 Parameter *fparam = isFunctionParameter(a, namestart, namelen); in write() local 1660 if (!fparam) in write() 1664 fparam = isEponymousFunctionParameter(a, namestart, namelen); in write() 1671 else if (fparam && fparam->type && fparam->ident) in write() [all …]
|
| H A D | mtype.c | 5545 Parameter *fparam = Parameter::getNth(tf->parameters, i); in semantic() local 5547 fparam->type = fparam->type->semantic(loc, argsc); in semantic() 5550 if (fparam->type->ty == Terror) in semantic() 5556 fparam->type = fparam->type->addStorageClass(fparam->storageClass); in semantic() 5558 if (fparam->storageClass & (STCauto | STCalias | STCstatic)) in semantic() 5560 if (!fparam->type) in semantic() 5564 Type *t = fparam->type->toBasetype(); in semantic() 5568 error(loc, "cannot have parameter of function type %s", fparam->type->toChars()); in semantic() 5571 else if (!(fparam->storageClass & (STCref | STCout)) && in semantic() 5578 … error(loc, "cannot have parameter of opaque type %s by value", fparam->type->toChars()); in semantic() [all …]
|
| H A D | dtemplate.c | 796 Parameter *fparam = Parameter::getNth(fparameters, i); in evaluateConstraint() local 797 … fparam->storageClass &= (STCin | STCout | STCref | STClazy | STCfinal | STC_TYPECTOR | STCnodtor); in evaluateConstraint() 798 fparam->storageClass |= STCparameter; in evaluateConstraint() 800 fparam->storageClass |= STCvariadic; in evaluateConstraint() 804 Parameter *fparam = (*fparameters)[i]; in evaluateConstraint() local 805 if (!fparam->ident) in evaluateConstraint() 807 VarDeclaration *v = new VarDeclaration(loc, fparam->type, fparam->ident, NULL); in evaluateConstraint() 808 v->storage_class = fparam->storageClass; in evaluateConstraint() 1239 Parameter *fparam = (*fparameters)[fptupindex]; in deduceFunctionTemplateMatch() local 1240 if (fparam->type->ty != Tident) in deduceFunctionTemplateMatch() [all …]
|
| H A D | func.c | 1579 Parameter *fparam = Parameter::getNth(f->parameters, i); in semantic3() local 1580 Identifier *id = fparam->ident; in semantic3() 1587 fparam->ident = id = Identifier::generateId("_param_", i); in semantic3() 1590 Type *vtype = fparam->type; in semantic3() 1596 if (flags & FUNCFLAGinferScope && !(fparam->storageClass & STCscope)) in semantic3() 1598 …stc |= fparam->storageClass & (STCin | STCout | STCref | STCreturn | STCscope | STClazy | STCfinal… in semantic3() 1616 Parameter *fparam = (*f->parameters)[i]; in semantic3() local 1618 if (!fparam->ident) in semantic3() 1620 if (fparam->type->ty == Ttuple) in semantic3() 1622 TypeTuple *t = (TypeTuple *)fparam->type; in semantic3() [all …]
|
| H A D | cppmangle.c | 671 static int dg(void *ctx, size_t, Parameter *fparam) in mangleFunctionParameters() 675 Type *t = Target::cppParameterType(fparam); in mangleFunctionParameters()
|
| H A D | dcast.c | 858 Parameter *fparam = Parameter::getNth(tf->parameters, i - j); in implicitConvTo() local 859 if (fparam->storageClass & STClazy) in implicitConvTo() 861 Type *tparam = fparam->type; in implicitConvTo() 864 if (fparam->storageClass & (STCout | STCref)) in implicitConvTo() 1135 Parameter *fparam = Parameter::getNth(tf->parameters, i - j); in implicitConvTo() local 1136 if (fparam->storageClass & STClazy) in implicitConvTo() 1138 Type *tparam = fparam->type; in implicitConvTo() 1141 if (fparam->storageClass & (STCout | STCref)) in implicitConvTo()
|
| H A D | dinterpret.c | 807 Parameter *fparam = Parameter::getNth(tf->parameters, i); in interpretFunction() local 809 if (fparam->storageClass & (STCout | STCref)) in interpretFunction() 811 if (!istate && (fparam->storageClass & STCout)) in interpretFunction() 822 else if (fparam->storageClass & STClazy) in interpretFunction() 829 Type *ta = fparam->type->toBasetype(); in interpretFunction() 843 if (earg->op == TOKstructliteral && !(fparam->storageClass & (STCconst | STCimmutable))) in interpretFunction() 871 Parameter *fparam = Parameter::getNth(tf->parameters, i); in interpretFunction() local 875 if ((fparam->storageClass & (STCout | STCref)) && in interpretFunction() 6567 Parameter *fparam = Parameter::getNth(((TypeFunction *)fd->type)->parameters, numParams - 1); in interpret_aaApply() local 6568 bool wantRefValue = 0 != (fparam->storageClass & (STCout | STCref)); in interpret_aaApply()
|
| H A D | statementsem.c | 904 Parameter *fparam = Parameter::getNth(fparameters, 0); in visit() local 905 if ((fparam->type->ty == Tpointer || fparam->type->ty == Tdelegate) && in visit() 906 fparam->type->nextOf()->ty == Tfunction) in visit() 908 TypeFunction *tf = (TypeFunction *)fparam->type->nextOf(); in visit()
|
| H A D | hdrgen.c | 3156 Parameter *fparam = Parameter::getNth(parameters, i); in parametersToBuffer() local 3157 fparam->accept(this); in parametersToBuffer()
|