MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ToParams

Method ToParams

source/script_object.cpp:289–299  ·  view source on GitHub ↗

Copies this array's elements into the parameter list. Caller has ensured param_list can fit aParamCount + Length().

Source from the content-addressed store, hash-verified

287// Copies this array's elements into the parameter list.
288// Caller has ensured param_list can fit aParamCount + Length().
289void Array::ToParams(ExprTokenType *token, ExprTokenType **param_list, ExprTokenType **aParam, int aParamCount)
290{
291 for (index_t i = 0; i < mLength; ++i)
292 mItem[i].ToToken(token[i]);
293
294 ExprTokenType **param_ptr = param_list;
295 for (int i = 0; i < aParamCount; ++i)
296 *param_ptr++ = aParam[i]; // Caller-supplied param token.
297 for (index_t i = 0; i < mLength; ++i)
298 *param_ptr++ = &token[i]; // New param.
299}
300
301ResultType GetEnumerator(IObject *&aEnumerator, ExprTokenType &aEnumerable, int aVarCount, bool aDisplayError)
302{

Callers 2

VariadicCallFunction · 0.80
CallMethod · 0.80

Calls 1

ToTokenMethod · 0.45

Tested by

no test coverage detected