mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Better support for @ name prefixes
This commit is contained in:
parent
7691c414c3
commit
aa56542fae
12 changed files with 158 additions and 40 deletions
|
@ -17695,7 +17695,9 @@ void BfModule::ProcessMethod_SetupParams(BfMethodInstance* methodInstance, BfTyp
|
|||
prevIgnoreErrors.Restore();
|
||||
PopulateType(resolvedType, BfPopulateType_Declaration);
|
||||
paramVar->mResolvedType = resolvedType;
|
||||
paramVar->mName = methodInstance->GetParamName(paramIdx);
|
||||
int namePrefixCount = 0;
|
||||
paramVar->mName = methodInstance->GetParamName(paramIdx, namePrefixCount);
|
||||
paramVar->mNamePrefixCount = (uint8)namePrefixCount;
|
||||
paramVar->mNameNode = methodInstance->GetParamNameNode(paramIdx);
|
||||
if (!isParamSkipped)
|
||||
{
|
||||
|
@ -17818,6 +17820,7 @@ void BfModule::ProcessMethod_SetupParams(BfMethodInstance* methodInstance, BfTyp
|
|||
auto paramInst = &methodInstance->mParams[paramIdx];
|
||||
auto paramDef = methodDef->mParams[paramInst->mParamDefIdx];
|
||||
localVar->mName = paramDef->mName;
|
||||
localVar->mNamePrefixCount = paramDef->mNamePrefixCount;
|
||||
localVar->mResolvedType = ResolveTypeRef(paramDef->mTypeRef, BfPopulateType_Declaration, BfResolveTypeRefFlag_NoResolveGenericParam);
|
||||
localVar->mCompositeCount = 0;
|
||||
DoAddLocalVariable(localVar);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue