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:
parent
d06ab26856
commit
1a7900c564
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue