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

Method NodeFuncDef

NULLC/SyntaxTree.cpp:423–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421// Nodes that compiles function
422
423NodeFuncDef::NodeFuncDef(FunctionInfo *info, unsigned int varShift)
424{
425 // Function description
426 funcInfo = info;
427 // Size of all local variables
428 shift = info->type == FunctionInfo::COROUTINE ? (funcInfo->allParamSize + NULLC_PTR_SIZE) : varShift;
429
430 disabled = false;
431
432 first = TakeLastNode();
433
434 nodeType = typeNodeFuncDef;
435}
436NodeFuncDef::~NodeFuncDef()
437{
438}

Callers

nothing calls this directly

Calls 1

TakeLastNodeFunction · 0.85

Tested by

no test coverage detected