| 1268 | } |
| 1269 | |
| 1270 | bool BfMethodInstance::GetParamIsSplat(int paramIdx) |
| 1271 | { |
| 1272 | if (paramIdx == -1) |
| 1273 | { |
| 1274 | BF_ASSERT(!mMethodDef->mIsStatic); |
| 1275 | auto owner = mMethodInstanceGroup->mOwner; |
| 1276 | if ((owner->IsValueType()) && (mMethodDef->mIsMutating || !AllowsSplatting(paramIdx))) |
| 1277 | return false; |
| 1278 | return owner->mIsSplattable; |
| 1279 | } |
| 1280 | |
| 1281 | BfMethodParam* methodParam = &mParams[paramIdx]; |
| 1282 | if (methodParam->mDelegateParamIdx != -1) |
| 1283 | { |
| 1284 | BfMethodInstance* invokeMethodInstance = methodParam->GetDelegateParamInvoke(); |
| 1285 | if (invokeMethodInstance == NULL) |
| 1286 | return false; |
| 1287 | return invokeMethodInstance->GetParamIsSplat(methodParam->mDelegateParamIdx); |
| 1288 | } |
| 1289 | return methodParam->mIsSplat; |
| 1290 | } |
| 1291 | |
| 1292 | BfParamKind BfMethodInstance::GetParamKind(int paramIdx) |
| 1293 | { |
no test coverage detected