1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Added ability to rename labels and goto definition on labels

This commit is contained in:
Brian Fiete 2020-05-29 16:58:47 -07:00
parent a7e9182d4b
commit c9da45715b
6 changed files with 86 additions and 29 deletions

View file

@ -12964,7 +12964,14 @@ void BfExprEvaluator::InjectMixin(BfAstNode* targetSrc, BfTypedValue target, boo
{
auto targetScope = mModule->FindScope(scopedInvocationTarget->mScopeName, curMethodState->mMixinState);
if (targetScope != NULL)
{
mixinState->mTargetScope = targetScope;
if (autoComplete != NULL)
{
if (auto identifer = BfNodeDynCast<BfIdentifierNode>(scopedInvocationTarget->mScopeName))
autoComplete->CheckLabel(identifer, NULL, targetScope);
}
}
}
mModule->mBfIRBuilder->SaveDebugLocation();