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

Method GetParamKind

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:1292–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290}
1291
1292BfParamKind BfMethodInstance::GetParamKind(int paramIdx)
1293{
1294 if (paramIdx == -1)
1295 return BfParamKind_Normal;
1296 BfMethodParam* methodParam = &mParams[paramIdx];
1297 if (methodParam->mParamDefIdx == -1)
1298 return BfParamKind_ImplicitCapture;
1299 BfParameterDef* paramDef = mMethodDef->mParams[methodParam->mParamDefIdx];
1300 if (methodParam->mDelegateParamIdx != -1)
1301 return BfParamKind_DelegateParam;
1302 return paramDef->mParamKind;
1303}
1304
1305bool BfMethodInstance::WasGenericParam(int paramIdx)
1306{

Callers 15

CreateTypeDataMethod · 0.80
MethodToStringMethod · 0.80
TryConstCalcAppendMethod · 0.80
GetMethodInfoMethod · 0.80
FixitAddConstructorMethod · 0.80
CastMethod · 0.80
GetTestMethodsMethod · 0.80
EmitTestMethodMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected