| 1120 | } |
| 1121 | |
| 1122 | BfType* BfMethodInstance::GetThisType() |
| 1123 | { |
| 1124 | BF_ASSERT(!mMethodDef->mIsStatic); |
| 1125 | if (mMethodDef->mHasExplicitThis) |
| 1126 | { |
| 1127 | auto thisType = mParams[0].mResolvedType; |
| 1128 | auto owner = GetOwner(); |
| 1129 | if ((thisType->IsValueType()) && ((mMethodDef->mIsMutating) || (!AllowsSplatting(-1))) && (!thisType->GetLoweredType(BfTypeUsage_Parameter))) |
| 1130 | return owner->mModule->mContext->mUnreifiedModule->CreatePointerType(thisType); |
| 1131 | return thisType; |
| 1132 | } |
| 1133 | return GetParamType(-1); |
| 1134 | } |
| 1135 | |
| 1136 | int BfMethodInstance::GetThisIdx() |
| 1137 | { |
no test coverage detected