MCPcopy Create free account
hub / github.com/WheretIB/nullc / AddDoWhileNode

Function AddDoWhileNode

NULLC/Callbacks.cpp:4758–4771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4756 cycleDepth.back()--;
4757}
4758void AddDoWhileNode(const char* pos)
4759{
4760 CodeInfo::lastKnownStartPos = pos;
4761 assert(CodeInfo::nodeList.size() >= 2);
4762
4763 if(CodeInfo::nodeList.back()->typeInfo->type == TypeInfo::TYPE_COMPLEX && CodeInfo::nodeList.back()->typeInfo != typeObject)
4764 AddFunctionCallNode(pos, "bool", 1, true);
4765
4766 CodeInfo::nodeList.push_back(new NodeDoWhileExpr());
4767 CodeInfo::nodeList.back()->SetCodeInfo(pos);
4768
4769 assert(cycleDepth.size() != 0);
4770 cycleDepth.back()--;
4771}
4772
4773void BeginSwitch(const char* pos)
4774{

Callers 1

ParseDoWhileExprFunction · 0.85

Calls 5

assertFunction · 0.85
AddFunctionCallNodeFunction · 0.85
SetCodeInfoMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected