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

Method CopyFrom

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:769–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769void BfMethodInstance::CopyFrom(BfMethodInstance* methodInstance)
770{
771 *this = *methodInstance;
772 if (mMethodInfoEx != NULL)
773 {
774 mMethodInfoEx = new BfMethodInfoEx();
775 *mMethodInfoEx = *(methodInstance->mMethodInfoEx);
776 for (auto genericParam : mMethodInfoEx->mGenericParams)
777 genericParam->AddRef();
778 mMethodInfoEx->mMethodCustomAttributes = NULL;
779
780 if (mMethodInfoEx->mClosureInstanceInfo != NULL)
781 {
782 mMethodInfoEx->mClosureInstanceInfo = new BfClosureInstanceInfo();
783 *mMethodInfoEx->mClosureInstanceInfo = *methodInstance->mMethodInfoEx->mClosureInstanceInfo;
784 }
785 }
786 mHasMethodRefType = false;
787 mHasBeenProcessed = false;
788 mIRFunction = BfIRValue();
789 mMethodProcessRequest = NULL;
790 mHotMethod = NULL;
791}
792
793BfImportKind BfMethodInstance::GetImportKind()
794{

Callers 2

ProcessWorkListMethod · 0.45
BuildMethod · 0.45

Calls 2

BfIRValueClass · 0.85
AddRefMethod · 0.45

Tested by

no test coverage detected