| 692 | } |
| 693 | |
| 694 | BfMethodInstance* 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 | |
| 709 | BfMethodInfoEx::~BfMethodInfoEx() |
| 710 | { |
no test coverage detected