1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fix Property Go To Definition

This commit is contained in:
disarray2077 2021-12-23 19:06:38 -03:00 committed by GitHub
parent 6e869c5ac5
commit f7b6bf4ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4919,7 +4919,7 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
if ((autoComplete != NULL) && (autoComplete->IsAutocompleteNode(targetSrc)))
{
if (autoComplete->mIsGetDefinition)
autoComplete->SetDefinitionLocation(basePropDef->GetRefNode(), true);
autoComplete->SetDefinitionLocation(basePropDef->GetRefNode());
autoComplete->mDefProp = basePropDef;
autoComplete->mDefType = baseTypeInst->mTypeDef;
}