| 11280 | } |
| 11281 | |
| 11282 | void 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 | |
| 11300 | static String NodeToString(BfAstNode* node) |
| 11301 | { |
no test coverage detected