| 4668 | CodeInfo::nodeList.back()->SetCodeInfo(pos); |
| 4669 | } |
| 4670 | void AddIfElseNode(const char* pos) |
| 4671 | { |
| 4672 | CodeInfo::lastKnownStartPos = pos; |
| 4673 | assert(CodeInfo::nodeList.size() >= 3); |
| 4674 | |
| 4675 | if(OptimizeIfElse(true)) |
| 4676 | return; |
| 4677 | |
| 4678 | NodeZeroOP *bodyE = CodeInfo::nodeList.back(); CodeInfo::nodeList.pop_back(); |
| 4679 | NodeZeroOP *bodyT = CodeInfo::nodeList.back(); CodeInfo::nodeList.pop_back(); |
| 4680 | |
| 4681 | if(CodeInfo::nodeList.back()->typeInfo->type == TypeInfo::TYPE_COMPLEX && CodeInfo::nodeList.back()->typeInfo != typeObject) |
| 4682 | AddFunctionCallNode(pos, "bool", 1, true); |
| 4683 | |
| 4684 | CodeInfo::nodeList.push_back(bodyT); |
| 4685 | CodeInfo::nodeList.push_back(bodyE); |
| 4686 | |
| 4687 | CodeInfo::nodeList.push_back(new NodeIfElseExpr(true)); |
| 4688 | CodeInfo::nodeList.back()->SetCodeInfo(pos); |
| 4689 | } |
| 4690 | void AddIfElseTermNode(const char* pos) |
| 4691 | { |
| 4692 | CodeInfo::lastKnownStartPos = pos; |
no test coverage detected