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

Method GetDelegateParamInvoke

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:694–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694BfMethodInstance* BfMethodParam::GetDelegateParamInvoke()
695{
696 if (mResolvedType->IsMethodRef())
697 {
698 auto methodRefType = (BfMethodRefType*)mResolvedType;
699 return methodRefType->mMethodRef;
700 }
701 else if (mResolvedType->IsTuple())
702 return NULL;
703 BF_ASSERT(mResolvedType->IsDelegate() || mResolvedType->IsFunction());
704 auto bfModule = BfModule::GetModuleFor(mResolvedType);
705 BfMethodInstance* invokeMethodInstance = bfModule->GetRawMethodInstanceAtIdx(mResolvedType->ToTypeInstance(), 0, "Invoke");
706 return invokeMethodInstance;
707}
708
709BfMethodInfoEx::~BfMethodInfoEx()
710{

Callers 4

DoMethodDeclarationMethod · 0.80
GetParamNameMethod · 0.80
GetParamTypeMethod · 0.80
GetParamIsSplatMethod · 0.80

Calls 6

IsMethodRefMethod · 0.45
IsTupleMethod · 0.45
IsDelegateMethod · 0.45
IsFunctionMethod · 0.45
ToTypeInstanceMethod · 0.45

Tested by

no test coverage detected