1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed Go To Definition for delegate/function invocation

This commit is contained in:
Brian Fiete 2021-07-15 12:33:49 -07:00
parent d06ab26856
commit 1a7900c564

View file

@ -9003,7 +9003,8 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
auto identifierNode = BfNodeDynCast<BfIdentifierNode>(targetSrc);
while (auto qualifiedNameNode = BfNodeDynCast<BfQualifiedNameNode>(identifierNode))
identifierNode = qualifiedNameNode->mRight;
if ((identifierNode != NULL) && (methodDef->mIdx >= 0) && (!isIndirectMethodCall))
if ((identifierNode != NULL) && (methodDef->mIdx >= 0) && (!isIndirectMethodCall) &&
((targetTypeInst == NULL) || (!targetTypeInst->IsDelegateOrFunction())))
{
mModule->mCompiler->mResolvePassData->HandleMethodReference(identifierNode, moduleMethodInstance.mMethodInstance->GetOwner()->mTypeDef, methodDef);
auto autoComplete = GetAutoComplete();