| 268 | |
| 269 | |
| 270 | static void getnumchildren(const Token *tok, std::list<MathLib::bigint> &numchildren) |
| 271 | { |
| 272 | if (tok->astOperand1() && tok->astOperand1()->isNumber()) |
| 273 | numchildren.push_back(MathLib::toBigNumber(tok->astOperand1())); |
| 274 | else if (tok->astOperand1() && tok->str() == tok->astOperand1()->str()) |
| 275 | getnumchildren(tok->astOperand1(), numchildren); |
| 276 | if (tok->astOperand2() && tok->astOperand2()->isNumber()) |
| 277 | numchildren.push_back(MathLib::toBigNumber(tok->astOperand2())); |
| 278 | else if (tok->astOperand2() && tok->str() == tok->astOperand2()->str()) |
| 279 | getnumchildren(tok->astOperand2(), numchildren); |
| 280 | } |
| 281 | |
| 282 | /* Return whether tok is in the body for a function returning a boolean. */ |
| 283 | static bool inBooleanFunction(const Token *tok) |
no test coverage detected