diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 9bd0fa6f..4f803a74 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -10200,6 +10200,17 @@ void BfExprEvaluator::Visit(BfInitializerExpression* initExpr) if ((fieldResult) || (mPropDef != NULL)) { + if (mResultFieldInstance != NULL) + { + auto autoComplete = GetAutoComplete(); + if ((autoComplete != NULL) && (autoComplete->IsAutocompleteNode(identifierNode))) + { + auto fieldDef = mResultFieldInstance->GetFieldDef(); + if (fieldDef != NULL) + autoComplete->SetDefinitionLocation(fieldDef->GetRefNode()); + } + } + mResult = fieldResult; PerformAssignment(assignExpr, true, BfTypedValue()); mResult = BfTypedValue();