Lines Matching refs:value
28 const Expression* value = ConstantFolder::GetConstantValueForVariable(originalExpr);
29 switch (value->kind()) {
32 double negated = -value->as<Literal>().value();
33 // Don't simplify the expression if the type can't hold the negated value.
34 const Type& type = value->type();
35 if (type.checkForOutOfRangeLiteral(context, negated, value->fLine)) {
42 const PrefixExpression& prefix = value->as<PrefixExpression>();
50 if (value->isCompileTimeConstant()) {
51 const ConstructorArray& ctor = value->as<ConstructorArray>();
59 if (value->isCompileTimeConstant()) {
60 const ConstructorDiagonalMatrix& ctor = value->as<ConstructorDiagonalMatrix>();
71 if (value->isCompileTimeConstant()) {
72 const ConstructorSplat& ctor = value->as<ConstructorSplat>();
83 if (value->isCompileTimeConstant()) {
84 const ConstructorCompound& ctor = value->as<ConstructorCompound>();
112 std::unique_ptr<Expression> value) {
114 if (std::unique_ptr<Expression> simplified = simplify_negation(context, *value)) {
119 return std::make_unique<PrefixExpression>(Token::Kind::TK_MINUS, std::move(value));
124 const Expression* value = ConstantFolder::GetConstantValueForVariable(*operand);
125 switch (value->kind()) {
128 SkASSERT(value->type().isBoolean());
129 const Literal& b = value->as<Literal>();