Lines Matching refs:ConstantExpression
160 std::unique_ptr<ConstantExpression> ConstantExpression::Zero(ScalarType::Kind kind) { in Zero()
164 std::unique_ptr<ConstantExpression> ConstantExpression::One(ScalarType::Kind kind) { in One()
168 std::unique_ptr<ConstantExpression> ConstantExpression::ValueOf(ScalarType::Kind kind, in ValueOf()
173 ConstantExpression::ConstantExpression(const std::string& expr) : mExpr(expr) {} in ConstantExpression() function in android::ConstantExpression
175 bool ConstantExpression::isEvaluated() const { in isEvaluated()
181 : ConstantExpression(expr) { in LiteralConstantExpression()
353 ConstantExpression* expr = mReference->constExpr(); in evaluate()
393 std::unique_ptr<ConstantExpression> ConstantExpression::addOne(ScalarType::Kind baseKind) { in addOne()
395 this, "+", ConstantExpression::One(baseKind).release()); in addOne()
399 std::string ConstantExpression::value() const { in value()
403 std::string ConstantExpression::value(ScalarType::Kind castKind) const { in value()
408 std::string ConstantExpression::cppValue() const { in cppValue()
412 std::string ConstantExpression::cppValue(ScalarType::Kind castKind) const { in cppValue()
436 std::string ConstantExpression::javaValue() const { in javaValue()
440 std::string ConstantExpression::javaValue(ScalarType::Kind castKind) const { in javaValue()
471 const std::string& ConstantExpression::expression() const { in expression()
475 std::string ConstantExpression::rawValue() const { in rawValue()
479 std::string ConstantExpression::rawValue(ScalarType::Kind castKind) const { in rawValue()
488 T ConstantExpression::cast() const { in cast()
496 std::string ConstantExpression::descriptionSuffix() const { in descriptionSuffix()
507 size_t ConstantExpression::castSizeT() const { in castSizeT()
512 bool ConstantExpression::isReferenceConstantExpression() const { in isReferenceConstantExpression()
516 status_t ConstantExpression::validate() const { in validate()
520 std::vector<ConstantExpression*> ConstantExpression::getConstantExpressions() { in getConstantExpressions()
521 const auto& constRet = static_cast<const ConstantExpression*>(this)->getConstantExpressions(); in getConstantExpressions()
522 std::vector<ConstantExpression*> ret(constRet.size()); in getConstantExpressions()
524 [](const auto* ce) { return const_cast<ConstantExpression*>(ce); }); in getConstantExpressions()
528 std::vector<Reference<LocalIdentifier>*> ConstantExpression::getReferences() { in getReferences()
529 const auto& constRet = static_cast<const ConstantExpression*>(this)->getReferences(); in getReferences()
536 std::vector<const Reference<LocalIdentifier>*> ConstantExpression::getReferences() const { in getReferences()
540 std::vector<Reference<Type>*> ConstantExpression::getTypeReferences() { in getTypeReferences()
541 const auto& constRet = static_cast<const ConstantExpression*>(this)->getTypeReferences(); in getTypeReferences()
548 std::vector<const Reference<Type>*> ConstantExpression::getTypeReferences() const { in getTypeReferences()
552 status_t ConstantExpression::recursivePass(const std::function<status_t(ConstantExpression*)>& func, in recursivePass()
553 std::unordered_set<const ConstantExpression*>* visited, in recursivePass()
585 status_t ConstantExpression::recursivePass( in recursivePass()
586 const std::function<status_t(const ConstantExpression*)>& func, in recursivePass()
587 std::unordered_set<const ConstantExpression*>* visited, bool processBeforeDependencies) const { in recursivePass()
618 ConstantExpression::CheckAcyclicStatus::CheckAcyclicStatus( in CheckAcyclicStatus()
619 status_t status, const ConstantExpression* cycleEnd, in CheckAcyclicStatus()
626 ConstantExpression::CheckAcyclicStatus ConstantExpression::checkAcyclic( in checkAcyclic()
627 std::unordered_set<const ConstantExpression*>* visited, in checkAcyclic()
628 std::unordered_set<const ConstantExpression*>* stack) const { in checkAcyclic()
678 void ConstantExpression::setPostParseCompleted() { in setPostParseCompleted()
683 void ConstantExpression::surroundWithParens() { in surroundWithParens()
687 std::vector<const ConstantExpression*> LiteralConstantExpression::getConstantExpressions() const { in getConstantExpressions()
691 UnaryConstantExpression::UnaryConstantExpression(const std::string& op, ConstantExpression* value) in UnaryConstantExpression()
692 : ConstantExpression(op + value->mExpr), mUnary(value), mOp(op) {} in UnaryConstantExpression()
694 std::vector<const ConstantExpression*> UnaryConstantExpression::getConstantExpressions() const { in getConstantExpressions()
698 BinaryConstantExpression::BinaryConstantExpression(ConstantExpression* lval, const std::string& op, in BinaryConstantExpression()
699 ConstantExpression* rval) in BinaryConstantExpression()
700 : ConstantExpression(lval->mExpr + " " + op + " " + rval->mExpr), in BinaryConstantExpression()
705 std::vector<const ConstantExpression*> BinaryConstantExpression::getConstantExpressions() const { in getConstantExpressions()
709 TernaryConstantExpression::TernaryConstantExpression(ConstantExpression* cond, in TernaryConstantExpression()
710 ConstantExpression* trueVal, in TernaryConstantExpression()
711 ConstantExpression* falseVal) in TernaryConstantExpression()
712 : ConstantExpression(cond->mExpr + "?" + trueVal->mExpr + ":" + falseVal->mExpr), in TernaryConstantExpression()
717 std::vector<const ConstantExpression*> TernaryConstantExpression::getConstantExpressions() const { in getConstantExpressions()
723 : ConstantExpression(expr), mReference(value) { in ReferenceConstantExpression()
731 std::vector<const ConstantExpression*> ReferenceConstantExpression::getConstantExpressions() const { in getConstantExpressions()
743 : ConstantExpression(fqname + "#" + tag), mReference(value), mTag(tag) {} in AttributeConstantExpression()
745 std::vector<const ConstantExpression*> AttributeConstantExpression::getConstantExpressions() const { in getConstantExpressions()