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

Method GetParamIsSplat

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:1270–1290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268}
1269
1270bool 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
1292BfParamKind BfMethodInstance::GetParamKind(int paramIdx)
1293{

Callers 10

AddDeferredCallEntryMethod · 0.80
CreateTypeDataMethod · 0.80
TryConstCalcAppendMethod · 0.80
EmitGCMarkMembersMethod · 0.80
DoMethodDeclarationMethod · 0.80
ExecuteMethod · 0.80
CreateCallMethod · 0.80

Calls 2

IsValueTypeMethod · 0.45

Tested by

no test coverage detected