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

Method DwMethodMatcher

IDEHelper/DbgExprEvaluator.cpp:22–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20//////////////////////////////////////////////////////////////////////////
21
22DwMethodMatcher::DwMethodMatcher(BfAstNode* targetSrc, DbgExprEvaluator* exprEvaluator, const StringImpl& methodName, SizedArrayImpl<DbgTypedValue>& arguments, BfSizedArray<ASTREF(BfAstNode*)>* methodGenericArguments) :
23 mArguments(arguments)
24{
25 mTargetSrc = targetSrc;
26 mExprEvaluator = exprEvaluator;
27 mMethodName = methodName;
28 mArguments = arguments;
29 mBestMethodDef = NULL;
30 mBackupMethodDef = NULL;
31 mBestMethodTypeInstance = NULL;
32 mExplicitInterfaceCheck = NULL;
33 mHadExplicitGenericArguments = false;
34 mTargetIsConst = false;
35
36 if (methodGenericArguments != NULL)
37 {
38 for (auto genericArg : *methodGenericArguments)
39 {
40 if (genericArg == NULL)
41 return;
42 auto genericArgType = mExprEvaluator->ResolveTypeRef(genericArg);
43 if (genericArgType == NULL)
44 return;
45 mBestMethodGenericArguments.push_back(genericArgType);
46 //mBestMethodGenericArgumentSrcs.push_back(genericArg);
47 }
48 mHadExplicitGenericArguments = true;
49 }
50}
51
52/*bool DwMethodMatcher::InferGenericArgument(DbgType* argType, DbgType* wantType)
53{

Callers

nothing calls this directly

Calls 2

ResolveTypeRefMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected