Home
last modified time | relevance | path

Searched refs:bothConst (Results 1 - 2 of 2) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Darithmetic.cpp215 auto [promotedType, bothConst] = in CheckBinaryOperatorMulDivMod()
225 if (promotedType == nullptr && !bothConst) { in CheckBinaryOperatorMulDivMod()
230 if (bothConst) { in CheckBinaryOperatorMulDivMod()
289 auto [promotedType, bothConst] = in CheckBinaryOperatorPlus()
295 if (promotedType == nullptr && !bothConst) { in CheckBinaryOperatorPlus()
304 if (bothConst) { in CheckBinaryOperatorPlus()
395 auto [promotedType, bothConst] = in CheckBinaryOperatorBitwise()
401 if (promotedType == nullptr && !bothConst) { in CheckBinaryOperatorBitwise()
406 if (bothConst) { in CheckBinaryOperatorBitwise()
671 auto [promotedType, bothConst] in CheckBinaryOperatorLessGreater()
[all...]
H A Dhelpers.cpp295 bool const bothConst = unboxedL->HasTypeFlag(TypeFlag::CONSTANT) && unboxedR->HasTypeFlag(TypeFlag::CONSTANT); in ApplyBinaryOperatorPromotion() local
298 auto const numericPromotion = [this, unboxedL, unboxedR, bothConst]() -> std::tuple<checker::Type *, bool> { in ApplyBinaryOperatorPromotion()
300 return {GlobalDoubleType(), bothConst}; in ApplyBinaryOperatorPromotion()
304 return {GlobalFloatType(), bothConst}; in ApplyBinaryOperatorPromotion()
308 return {GlobalLongType(), bothConst}; in ApplyBinaryOperatorPromotion()
312 return {GlobalCharType(), bothConst}; in ApplyBinaryOperatorPromotion()
315 return {GlobalIntType(), bothConst}; in ApplyBinaryOperatorPromotion()
325 return {unboxedL, bothConst}; in ApplyBinaryOperatorPromotion()
329 return {unboxedR, bothConst}; in ApplyBinaryOperatorPromotion()

Completed in 6 milliseconds