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

Function PrepareConstructorCall

NULLC/Callbacks.cpp:2756–2770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2754}
2755
2756NodeZeroOP* PrepareConstructorCall(const char* pos)
2757{
2758 AddInplaceVariable(pos);
2759 // This node will return pointer
2760 NodeZeroOP *getPointer = CodeInfo::nodeList.back();
2761 CodeInfo::nodeList.pop_back();
2762
2763 // Place pointer on stack twice
2764 NodeOneOP *wrap = new NodeOneOP();
2765 wrap->SetFirstNode(getPointer);
2766 CodeInfo::nodeList.push_back(wrap);
2767 AddGetVariableNode(pos);
2768
2769 return getPointer;
2770}
2771
2772void FinishConstructorCall(const char* pos)
2773{

Callers 1

ParseTerminalFunction · 0.85

Calls 5

AddInplaceVariableFunction · 0.85
AddGetVariableNodeFunction · 0.85
SetFirstNodeMethod · 0.80
pop_backMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected