MCPcopy Create free account
hub / github.com/beefytech/Beef / Close

Method Close

IDEHelper/Compiler/BfSource.cpp:132–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void BfSource::Close()
133{
134// if (mAlloc->mSource == NULL)
135// {
136// BF_ASSERT(mErrorRootNode == NULL);
137// BF_ASSERT(mPendingErrorNodes.size() == 0);
138// return;
139// }
140 mAstScratch = mAlloc->AllocBytes(SCRATCH_SIZE, sizeof(void*));
141
142 FinishSideNodes();
143
144 if (!mPendingErrorNodes.IsEmpty())
145 {
146 mErrorRootNode->Init(mPendingErrorNodes, mAlloc);
147 qsort(mErrorRootNode->mChildArr.mVals, mErrorRootNode->mChildArr.mSize, sizeof(ASTREF(BfAstNode*)), NodeCompare);
148 mPendingErrorNodes.clear();
149 }
150
151 mIsClosed = true;
152}

Callers 15

InitMethod · 0.45
EvaluateMethod · 0.45
EvaluateToAddressMethod · 0.45
DoTransferMethod · 0.45
PerformMethod · 0.45
NetManager.cppFile · 0.45
GetEmitSourceMethod · 0.45
WriteMethod · 0.45
WriteEmitDataMethod · 0.45
InitMethod · 0.45
EvaluateMethod · 0.45

Calls 4

AllocBytesMethod · 0.45
IsEmptyMethod · 0.45
InitMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected