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

Add comment for SetDefinitionLocation change

This commit is contained in:
Brian Fiete 2021-12-27 14:03:08 -05:00
parent 9cbc638873
commit 1d30beb2d2

View file

@ -4919,7 +4919,10 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
if ((autoComplete != NULL) && (autoComplete->IsAutocompleteNode(targetSrc)))
{
if (autoComplete->mIsGetDefinition)
{
//NOTE: passing 'force=true' in here causes https://github.com/beefytech/Beef/issues/1064
autoComplete->SetDefinitionLocation(basePropDef->GetRefNode());
}
autoComplete->mDefProp = basePropDef;
autoComplete->mDefType = baseTypeInst->mTypeDef;
}