| 1522 | // Node for compilation of while(){} |
| 1523 | |
| 1524 | NodeWhileExpr::NodeWhileExpr() |
| 1525 | { |
| 1526 | second = TakeLastNode(); |
| 1527 | first = TakeLastNode(); |
| 1528 | |
| 1529 | if((first->typeInfo->type == TypeInfo::TYPE_COMPLEX && first->typeInfo != typeObject) || first->typeInfo->type == TypeInfo::TYPE_VOID) |
| 1530 | ThrowError(CodeInfo::lastKnownStartPos, "ERROR: condition type cannot be '%s' and function for conversion to bool is undefined", first->typeInfo->GetFullTypeName()); |
| 1531 | |
| 1532 | nodeType = typeNodeWhileExpr; |
| 1533 | } |
| 1534 | NodeWhileExpr::~NodeWhileExpr() |
| 1535 | { |
| 1536 | } |
nothing calls this directly
no test coverage detected