1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Named arguments

This commit is contained in:
Brian Fiete 2022-06-24 18:41:54 -07:00
parent d204922403
commit 79320652e3
15 changed files with 341 additions and 37 deletions

View file

@ -873,6 +873,7 @@ public:
Array<BfParameterDef*> mParams;
Array<BfGenericParamDef*> mGenericParams;
Array<BfExternalConstraintDef> mExternalConstraints;
Dictionary<StringView, int>* mParamNameMap;
BfMethodDef* mNextWithSameName;
Val128 mFullHash;
@ -934,8 +935,8 @@ public:
mAddedAfterEmit = false;
mBody = NULL;
mExplicitInterface = NULL;
mReturnTypeRef = NULL;
mMethodDeclaration = NULL;
mReturnTypeRef = NULL;
mMethodDeclaration = NULL;
mCodeChanged = false;
mWantsBody = true;
mCommutableKind = BfCommutableKind_None;
@ -944,7 +945,8 @@ public:
mMethodType = BfMethodType_Normal;
mCallingConvention = BfCallingConvention_Unspecified;
mHasAppend = false;
mAlwaysInline = false;
mAlwaysInline = false;
mParamNameMap = NULL;
mNextWithSameName = NULL;
}
@ -965,6 +967,7 @@ public:
bool IsCtorOrInit();
String ToString();
int GetExplicitParamCount();
void BuildParamNameMap();
};
class BfOperatorDef : public BfMethodDef