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

Method HandleRoot

IDEHelper/Compiler/BfReducer.cpp:11282–11298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11280}
11281
11282void BfReducer::HandleRoot(BfRootNode* rootNode)
11283{
11284 String fileName;
11285 auto parser = rootNode->GetSourceData()->ToParserData();
11286 if (parser != NULL)
11287 fileName = parser->mFileName;
11288 BP_ZONE_F("BfReducer::HandleRoot %s", fileName.c_str());
11289
11290 mAlloc = &rootNode->GetSourceData()->mAlloc;
11291 mSystem = mSource->mSystem;
11292 HandleTopLevel(rootNode);
11293 BfSizedArrayInitIndirect(mSource->mSourceData->mExteriorNodes, mExteriorNodes, mAlloc);
11294 mAlloc = NULL;
11295
11296 if (mPassInstance->HasFailed())
11297 mSource->mParsingFailed = true;
11298}
11299
11300static String NodeToString(BfAstNode* node)
11301{

Callers 1

BfParser_ReduceFunction · 0.80

Calls 5

BfSizedArrayInitIndirectFunction · 0.85
GetSourceDataMethod · 0.80
HasFailedMethod · 0.80
ToParserDataMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected