MCPcopy Create free account
hub / github.com/WheretIB/nullc / ~Compiler

Method ~Compiler

NULLC/Compiler.cpp:446–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446Compiler::~Compiler()
447{
448 ParseReset();
449
450 CallbackReset();
451
452 CodeInfo::varInfo.clear();
453 CodeInfo::funcInfo.clear();
454 CodeInfo::typeInfo.clear();
455
456 NodeBreakOp::fixQueue.reset();
457 NodeContinueOp::fixQueue.reset();
458 NodeSwitchExpr::fixQueue.reset();
459
460 NodeFuncCall::memoList.reset();
461 NodeFuncCall::memoPool.~ChunkedStackPool();
462
463 NodeZeroOP::ResetNodes();
464
465 typeMap.reset();
466 funcMap.reset();
467
468 NULLC::dealloc(CompilerError::errLocal);
469 NULLC::dealloc(CompilerError::errGlobal);
470}
471
472void Compiler::ClearState()
473{

Callers

nothing calls this directly

Calls 5

ParseResetFunction · 0.85
CallbackResetFunction · 0.85
clearMethod · 0.45
resetMethod · 0.45
~ChunkedStackPoolMethod · 0.45

Tested by

no test coverage detected