mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fix Initializer Go To Definition
This commit is contained in:
parent
6e869c5ac5
commit
2ccfd9e2d8
1 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue