MCPcopy Create free account
hub / github.com/beefytech/Beef / ~BfTypeInstance

Method ~BfTypeInstance

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:1806–1828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1804//////////////////////////////////////////////////////////////////////////
1805
1806BfTypeInstance::~BfTypeInstance()
1807{
1808 ReleaseData();
1809 delete mTypeInfoEx;
1810 delete mGenericTypeInfo;
1811 delete mCeTypeInfo;
1812 delete mCustomAttributes;
1813 delete mAttributeData;
1814 for (auto methodInst : mInternalMethods)
1815 delete methodInst;
1816 for (auto operatorInfo : mOperatorInfo)
1817 delete operatorInfo;
1818 for (auto localMethod : mOwnedLocalMethods)
1819 delete localMethod;
1820 delete mHotTypeData;
1821 delete mConstHolder;
1822 if ((mTypeDef != NULL) && (mTypeDef->mEmitParent != NULL))
1823 {
1824 mMethodInstanceGroups.Clear();
1825 BfLogSys(mModule->mSystem, "Type %p dtor deleting typeDef %p\n", this, mTypeDef);
1826 delete mTypeDef;
1827 }
1828}
1829
1830void BfTypeInstance::ReleaseData()
1831{

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected