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

Function BeginBlock

NULLC/Callbacks.cpp:404–408  ·  view source on GitHub ↗

Saves number of defined variables and functions

Source from the content-addressed store, hash-verified

402
403// Saves number of defined variables and functions
404void BeginBlock()
405{
406 varInfoTop.push_back(VarTopInfo((unsigned int)CodeInfo::varInfo.size(), varTop));
407 funcInfoTop.push_back((unsigned int)CodeInfo::funcInfo.size());
408}
409// Restores previous number of defined variables and functions to hide those that lost visibility
410void EndBlock(bool hideFunctions, bool saveLocals)
411{

Callers 8

FunctionStartFunction · 0.85
BeginSwitchFunction · 0.85
TypeBeginFunction · 0.85
TypeContinueFunction · 0.85
AddListGeneratorFunction · 0.85
ParseForExprFunction · 0.85
ParseBlockFunction · 0.85

Calls 3

VarTopInfoClass · 0.85
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected