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

Method ClearVersionsAfter

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:5510–5523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5508}
5509
5510void BfHotTypeData::ClearVersionsAfter(int hotIdx)
5511{
5512 while (!mTypeVersions.IsEmpty())
5513 {
5514 auto hotTypeVersion = mTypeVersions.back();
5515 if (hotTypeVersion->mDeclHotCompileIdx > hotIdx)
5516 {
5517 hotTypeVersion->Deref();
5518 mTypeVersions.pop_back();
5519 }
5520 else
5521 break;
5522 }
5523}
5524
5525void BfHotDepData::Deref()
5526{

Callers 1

DoPopulateTypeMethod · 0.80

Calls 4

IsEmptyMethod · 0.45
backMethod · 0.45
DerefMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected