mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Go To Definition improvements
This commit is contained in:
parent
0bed50cf7c
commit
e245c922db
2 changed files with 12 additions and 0 deletions
|
@ -21492,6 +21492,16 @@ void BfExprEvaluator::DoMemberReference(BfMemberReferenceExpression* memberRefEx
|
|||
autoComplete->AddSelfResultTypeMembers(expectingTypeInst, expectingTypeInst, filter, allowPrivate);
|
||||
}
|
||||
}
|
||||
else if ((expectingTypeInst != NULL) && (autoComplete->IsAutocompleteNode(memberRefExpr->mDotToken)) && (autoComplete->mIsGetDefinition))
|
||||
{
|
||||
if ((autoComplete->mDefType == NULL) &&
|
||||
(autoComplete->mDefMethod == NULL) && (autoComplete->mDefField == NULL) &&
|
||||
(autoComplete->mDefProp == NULL) && (expectingTypeInst->mTypeDef->mTypeDeclaration != NULL))
|
||||
{
|
||||
autoComplete->mDefType = expectingTypeInst->mTypeDef;
|
||||
autoComplete->SetDefinitionLocation(expectingTypeInst->mTypeDef->mTypeDeclaration->mNameNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue