Lines Matching refs:ex
348 Expression *ex = isExpression(o);
349 DsymbolExp *s = (ex && ex->op == TOKdsymbol) ? (DsymbolExp *)ex : NULL;
1613 ThrownExceptionExp *ex = (ThrownExceptionExp *)e;
1614 Type *extype = ex->thrown->originalClass()->type;
1628 setValue(ca->var, ex->thrown);
1703 Expression *ex = interpret(s->_body, istate);
1704 if (CTFEExp::isCantExp(ex))
1706 result = ex;
1709 while (CTFEExp::isGotoExp(ex))
1729 ex = bex;
1740 if (ex && ex->op == TOKthrownexception)
1741 ex = chainExceptions((ThrownExceptionExp *)ex, (ThrownExceptionExp *)ey);
1743 ex = ey;
1745 result = ex;
1809 Expression *ex = interpret(s->_body, &istatex);
1813 e = ex;
2292 Expression *ex = isExpression(o);
2293 DsymbolExp *ds = (ex && ex->op == TOKdsymbol) ? (DsymbolExp *)ex : NULL;
2398 if (Expression *ex = isExpression(e->obj))
2400 result = interpret(pue, ex, istate);
2401 if (exceptionOrCant(ex))
2406 e->error("null pointer dereference evaluating typeid. '%s' is null", ex->toChars());
2437 Expression *ex = interpret(exp, istate);
2438 if (exceptionOrCant(ex))
2444 if (ex->op == TOKvoidexp)
2452 if (ex != exp)
2455 (*expsx)[i] = ex;
2489 Expression *ex;
2492 ex = copyLiteral(basis).copy();
2499 ex = interpret(exp, istate);
2500 if (exceptionOrCant(ex))
2508 ex = copyLiteral(ex).copy();
2513 if (ex != exp)
2516 (*expsx)[i] = ex;
2662 Expression *ex = NULL;
2665 ex = voidInitLiteral(v->type, v).copy();
2669 ex = interpret(exp, istate);
2670 if (exceptionOrCant(ex))
2672 if ((v->type->ty != ex->type->ty) && v->type->ty == Tsarray)
2678 ex = createBlockDuplicatedArrayLiteral(&ue, ex->loc, v->type, ex, len);
2679 if (ex == ue.exp())
2680 ex = ue.copy();
2686 if (ex != exp)
2689 (*expsx)[i] = ex;
2797 Expression *ex = (*e->arguments)[i];
2798 ex = interpret(ex, istate);
2799 if (exceptionOrCant(ex))
2801 (*exps)[i] = ex;
2952 bool evalOperand(UnionExp *pue, Expression *e, Expression *ex, Expression *&er)
2954 er = interpret(pue, ex, istate);
2963 e->error("CTFE internal error: non-constant value %s", ex->toChars());
3388 Expression *ex = interpret(ultimateVar->type->defaultInitLiteral(e->loc), istate);
3389 if (exceptionOrCant(ex))
3391 setValue(ultimateVar, ex);
3603 Expression *ex = dve->e1;
3604 StructLiteralExp *sle = ex->op == TOKstructliteral ? ((StructLiteralExp *)ex)
3605 : ex->op == TOKclassreference ? ((ClassReferenceExp *)ex)->value
3624 if (Expression *ex = assignToLvalue(e, e1, newval))
3625 result = ex;
3664 Expression *ex = ((DotVarExp *)e1)->e1;
3666 ex->op == TOKstructliteral ? ((StructLiteralExp *)ex):
3667 ex->op == TOKclassreference ? ((ClassReferenceExp *)ex)->value
3681 int fieldi = ex->op == TOKstructliteral
3683 : ((ClassReferenceExp *)ex)->findFieldIndexByName(v);
3686 e->error("CTFE internal error: cannot find field %s in %s", v->toChars(), ex->toChars());
3789 if (Expression *ex = evaluatePostblit(istate, newelem))
3790 return ex;
3793 if (Expression *ex = evaluateDtor(istate, oldelem))
3794 return ex;
3807 if (Expression *ex = evaluatePostblit(istate, newval))
3808 return ex;
4175 if (Expression *ex = assignTo((ArrayLiteralExp *)(*w)[k]))
4176 return ex;
4195 if (Expression *ex = evaluatePostblit(istate, oldelem))
4196 return ex;
4201 if (Expression *ex = evaluateDtor(istate, tmpelem))
4202 return ex;
4225 if (Expression *ex = rb.assignTo(existingAE, lowerbound, upperbound))
4226 return ex;
4448 Expression *ex = e->e1;
4449 while (ex->op == TOKnot)
4452 ex = ((NotExp *)ex)->e1;
4454 const TOK cmpop = nott ? reverseRelation(ex->op) : ex->op;
5511 Expression *ex = evaluatePostblit(istate, (*ale->elements)[i]);
5512 if (exceptionOrCant(ex))
5935 Expression *ex = interpret(ade->e1, istate);
5936 if (exceptionOrCant(ex))
5938 if (ex->op == TOKstructliteral)
5940 StructLiteralExp *se = (StructLiteralExp *)ex;
5995 Expression *ex = interpret(e->e1, istate);
5996 if (exceptionOrCant(ex))
6001 if (ex == e->e1)
6005 new(pue) DotVarExp(e->loc, ex, f, false);
6020 if (ex->op == TOKnull)
6022 if (ex->type->toBasetype()->ty == Tclass)
6029 if (ex->op != TOKstructliteral && ex->op != TOKclassreference)
6040 if (ex->op == TOKclassreference)
6042 se = ((ClassReferenceExp *)ex)->value;
6043 i = ((ClassReferenceExp *)ex)->findFieldIndexByName(v);
6047 se = (StructLiteralExp *)ex;
6063 if (e->e1 == ex)
6067 new(pue) DotVarExp(e->loc, ex, v);
6109 result = createBlockDuplicatedArrayLiteral(&ue, ex->loc, v->type, ex, len);
6190 Expression *ex = v.result;
6191 assert(goal == ctfeNeedNothing || ex != NULL);
6192 return ex;
6247 if (Expression *ex = scrubStructLiteral(loc, sle))
6248 return ex;
6261 if (Expression *ex = scrubStructLiteral(loc, sle))
6262 return ex;
6272 if (Expression *ex = scrubArray(loc, ale->elements))
6273 return ex;
6279 if (Expression *ex = scrubArray(loc, aae->keys))
6280 return ex;
6281 if (Expression *ex = scrubArray(loc, aae->values))
6282 return ex;
6293 if (Expression *ex = scrubArray(loc, ale->elements))
6294 return ex;
6370 if (Expression *ex = scrubArray(loc, sle->elements, true))
6371 return ex;
6388 if (Expression *ex = scrubStructLiteralCache(sle))
6389 return ex;
6394 if (Expression *ex = scrubStructLiteralCache(sle))
6395 return ex;
6405 if (Expression *ex = scrubArrayCache(ale->elements))
6406 return ex;
6412 if (Expression *ex = scrubArrayCache(aae->keys))
6413 return ex;
6414 if (Expression *ex = scrubArrayCache(aae->values))
6415 return ex;
6425 if (Expression *ex = scrubArrayCache(ale->elements))
6426 return ex;
6449 if (Expression *ex = scrubArrayCache(sle->elements))
6450 return ex;