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

Function AddForEachNode

NULLC/Callbacks.cpp:2674–2686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2672}
2673
2674void AddForEachNode(const char* pos)
2675{
2676 // Unite increment_part and body
2677 AddTwoExpressionNode(NULL);
2678 // Generate while cycle
2679 CodeInfo::nodeList.push_back(new NodeWhileExpr());
2680 CodeInfo::nodeList.back()->SetCodeInfo(pos);
2681 // Unite initialization_part and while
2682 AddTwoExpressionNode(NULL);
2683
2684 assert(cycleDepth.size() != 0);
2685 cycleDepth.back()--;
2686}
2687
2688void CallAllocationFunction(const char* pos, const char* name)
2689{

Callers 3

AddListGeneratorFunction · 0.85
ParseForExprFunction · 0.85

Calls 5

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

Tested by

no test coverage detected