mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Named arguments
This commit is contained in:
parent
d204922403
commit
79320652e3
15 changed files with 341 additions and 37 deletions
|
@ -542,6 +542,7 @@ void BfMethodDef::FreeMembers()
|
|||
for (auto genericParam : mGenericParams)
|
||||
delete genericParam;
|
||||
mGenericParams.Clear();
|
||||
delete mParamNameMap;
|
||||
}
|
||||
|
||||
BfMethodDeclaration* BfMethodDef::GetMethodDeclaration()
|
||||
|
@ -660,6 +661,16 @@ int BfMethodDef::GetExplicitParamCount()
|
|||
return (int)mParams.size();
|
||||
}
|
||||
|
||||
void BfMethodDef::BuildParamNameMap()
|
||||
{
|
||||
if (mParamNameMap != NULL)
|
||||
return;
|
||||
|
||||
mParamNameMap = new Dictionary<StringView, int>();
|
||||
for (int i = 0; i < mParams.mSize; i++)
|
||||
(*mParamNameMap)[mParams[i]->mName] = i;
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
void BfTypeDef::Reset()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue